@donmahallem/eslint-config 0.5.3 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -9
- package/dist/cjs/index.js +80 -83
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +78 -78
- package/dist/esm/index.js.map +1 -1
- package/package.json +42 -26
- package/src/index.spec.ts +1 -1
- package/src/index.ts +3 -3
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<!-- ⚠️ This README has been generated from the file(s) "
|
|
1
|
+
<!-- ⚠️ This README has been generated from the file(s) "package_readme_blueprint.md" ⚠️-->
|
|
2
2
|
[](#h1-aligncenterdonmahallemeslint-configh1)
|
|
3
3
|
|
|
4
4
|
# ➤ <h1 align="center">@donmahallem/eslint-config</h1>
|
|
5
5
|
<p align="center">
|
|
6
|
-
<a href="https://github.com/donmahallem/
|
|
7
|
-
<a href="https://codecov.io/gh/donmahallem/
|
|
8
|
-
<a href="https://badge.fury.io/js/%40donmahallem%
|
|
9
|
-
<a href="https://github.com/donmahallem/
|
|
10
|
-
<a href="https://david-dm.org/donmahallem/
|
|
11
|
-
<a href="https://david-dm.org/donmahallem/
|
|
12
|
-
<a href="https://github.com/donmahallem/
|
|
6
|
+
<a href="https://github.com/donmahallem/rollup-config/actions?query=workflow%3ATest+branch%3Amaster"><img alt="Test" src="https://github.com/donmahallem/rollup-config/workflows/Test/badge.svg?branch=master&event=push" height="20"/></a>
|
|
7
|
+
<a href="https://codecov.io/gh/donmahallem/rollup-config"><img alt="codecov" src="https://codecov.io/gh/donmahallem/rollup-config/branch/master/graph/badge.svg" height="20"/></a>
|
|
8
|
+
<a href="https://badge.fury.io/js/%40donmahallem%2Frollup-config"><img alt="npm version" src="https://badge.fury.io/js/%40donmahallem%2Frollup-config.svg" height="20"/></a>
|
|
9
|
+
<a href="https://github.com/donmahallem/rollup-config/blob/master/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/donmahallem/rollup-config" height="20"/></a>
|
|
10
|
+
<a href="https://david-dm.org/donmahallem/rollup-config"><img alt="dependencies Status" src="https://david-dm.org/donmahallem/rollup-config/status.svg" height="20"/></a>
|
|
11
|
+
<a href="https://david-dm.org/donmahallem/rollup-config?type=dev"><img alt="devDependencies Status" src="https://david-dm.org/donmahallem/rollup-config/dev-status.svg?" height="20"/></a>
|
|
12
|
+
<a href="https://github.com/donmahallem/rollup-config/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors-anon/donmahallem/rollup-config" height="20"/></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<b>My personal eslint
|
|
17
|
+
<b>My personal eslint. You better not use it!</b></br>
|
|
18
18
|
<sub><sub>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
@@ -31,3 +31,11 @@ Run the following command to install the package:
|
|
|
31
31
|
```
|
|
32
32
|
npm install @donmahallem/eslint-config
|
|
33
33
|
```
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
[](#usage)
|
|
38
|
+
|
|
39
|
+
## ➤ Usage
|
|
40
|
+
|
|
41
|
+
This is a helper package used by me to build packages with rollup. Use at your own risk!
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,84 +1,81 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Package @donmahallem/eslint-config
|
|
4
|
-
* Source https://
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'eslint
|
|
26
|
-
'plugin
|
|
27
|
-
'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
],
|
|
70
|
-
'
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Package @donmahallem/eslint-config
|
|
4
|
+
* Source https://github.com/donmahallem/eslint-config
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
/* eslint-env es6*/
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
10
|
+
const packageInfo = require((0, path_1.join)(process.cwd(), 'package.json'));
|
|
11
|
+
/**
|
|
12
|
+
* Missing rules
|
|
13
|
+
* 'import-spacing','static-this':,'switch-final-break','typedef','whitespace'
|
|
14
|
+
*/
|
|
15
|
+
module.exports = {
|
|
16
|
+
env: {
|
|
17
|
+
browser: true,
|
|
18
|
+
es6: true,
|
|
19
|
+
node: true,
|
|
20
|
+
},
|
|
21
|
+
extends: [
|
|
22
|
+
'eslint:recommended',
|
|
23
|
+
'plugin:jsdoc/recommended',
|
|
24
|
+
'plugin:@typescript-eslint/eslint-recommended',
|
|
25
|
+
'plugin:@typescript-eslint/recommended',
|
|
26
|
+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
27
|
+
'prettier',
|
|
28
|
+
],
|
|
29
|
+
parser: '@typescript-eslint/parser',
|
|
30
|
+
parserOptions: {
|
|
31
|
+
project: 'tsconfig.json',
|
|
32
|
+
sourceType: 'module',
|
|
33
|
+
},
|
|
34
|
+
plugins: ['jsdoc', 'eslint-plugin-prefer-arrow', 'eslint-plugin-import', 'eslint-plugin-no-null', 'header', '@typescript-eslint'],
|
|
35
|
+
rules: {
|
|
36
|
+
'@typescript-eslint/naming-convention': [
|
|
37
|
+
'error',
|
|
38
|
+
{
|
|
39
|
+
format: ['UPPER_CASE'],
|
|
40
|
+
selector: 'enumMember',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
'@typescript-eslint/unbound-method': 'off',
|
|
44
|
+
'header/header': [
|
|
45
|
+
2,
|
|
46
|
+
'block',
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
48
|
+
['', ` * Package ${packageInfo.name}`, ` * Source ${packageInfo.homepage}`, ' '],
|
|
49
|
+
2,
|
|
50
|
+
],
|
|
51
|
+
'import/order': [
|
|
52
|
+
'error',
|
|
53
|
+
{
|
|
54
|
+
alphabetize: {
|
|
55
|
+
caseInsensitive: false,
|
|
56
|
+
order: 'asc',
|
|
57
|
+
},
|
|
58
|
+
groups: [['external', 'builtin'], ['sibling', 'parent', 'internal'], 'index', 'object', 'type'],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
'max-len': [
|
|
62
|
+
'error',
|
|
63
|
+
{
|
|
64
|
+
code: 140,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 1 }],
|
|
68
|
+
'quote-props': ['error', 'as-needed'],
|
|
69
|
+
quotes: ['error', 'single', { allowTemplateLiterals: true }],
|
|
70
|
+
'sort-keys': [
|
|
71
|
+
'error',
|
|
72
|
+
'asc',
|
|
73
|
+
{
|
|
74
|
+
caseSensitive: true,
|
|
75
|
+
minKeys: 2,
|
|
76
|
+
natural: false,
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
};
|
|
84
81
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAEH,mBAAmB;AACnB,+BAAwC;AACxC,sGAAsG;AACtG,MAAM,WAAW,GAAG,OAAO,CAAC,IAAA,WAAQ,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;AAErE;;;GAGG;AACH,MAAM,CAAC,OAAO,GAAG;IACb,GAAG,EAAE;QACD,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,IAAI;KACb;IACD,OAAO,EAAE;QACL,oBAAoB;QACpB,0BAA0B;QAC1B,8CAA8C;QAC9C,uCAAuC;QACvC,+DAA+D;QAC/D,UAAU;KACb;IACD,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACX,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE,QAAQ;KACvB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,QAAQ,EAAE,oBAAoB,CAAC;IACjI,KAAK,EAAE;QACH,sCAAsC,EAAE;YACpC,OAAO;YACP;gBACI,MAAM,EAAE,CAAC,YAAY,CAAC;gBACtB,QAAQ,EAAE,YAAY;aACzB;SACJ;QACD,mCAAmC,EAAE,KAAK;QAC1C,eAAe,EAAE;YACb,CAAC;YACD,OAAO;YACP,sEAAsE;YACtE,CAAC,EAAE,EAAE,cAAc,WAAW,CAAC,IAAc,EAAE,EAAE,aAAa,WAAW,CAAC,QAAkB,EAAE,EAAE,GAAG,CAAC;YACpG,CAAC;SACJ;QACD,cAAc,EAAE;YACZ,OAAO;YACP;gBACI,WAAW,EAAE;oBACT,eAAe,EAAE,KAAK;oBACtB,KAAK,EAAE,KAAK;iBACf;gBACD,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC;aAClG;SACJ;QACD,SAAS,EAAE;YACP,OAAO;YACP;gBACI,IAAI,EAAE,GAAG;aACZ;SACJ;QACD,yBAAyB,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;QAC3D,aAAa,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;QACrC,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC;QAC5D,WAAW,EAAE;YACT,OAAO;YACP,KAAK;YACL;gBACI,aAAa,EAAE,IAAI;gBACnB,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,KAAK;aACjB;SACJ;KACJ;CACJ,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Package @donmahallem/eslint-config
|
|
3
|
-
* Source https://
|
|
4
|
-
*/
|
|
5
|
-
/* eslint-env es6*/
|
|
6
|
-
import
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
8
|
-
const packageInfo = require(
|
|
9
|
-
/**
|
|
10
|
-
* Missing rules
|
|
11
|
-
* 'import-spacing','static-this':,'switch-final-break','typedef','whitespace'
|
|
12
|
-
*/
|
|
13
|
-
module.exports = {
|
|
14
|
-
env: {
|
|
15
|
-
browser: true,
|
|
16
|
-
es6: true,
|
|
17
|
-
node: true,
|
|
18
|
-
},
|
|
19
|
-
extends: [
|
|
20
|
-
'eslint:recommended',
|
|
21
|
-
'plugin:jsdoc/recommended',
|
|
22
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
23
|
-
'plugin:@typescript-eslint/recommended',
|
|
24
|
-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
25
|
-
'prettier',
|
|
26
|
-
],
|
|
27
|
-
parser: '@typescript-eslint/parser',
|
|
28
|
-
parserOptions: {
|
|
29
|
-
project: 'tsconfig.json',
|
|
30
|
-
sourceType: 'module',
|
|
31
|
-
},
|
|
32
|
-
plugins: ['jsdoc', 'eslint-plugin-prefer-arrow', 'eslint-plugin-import', 'eslint-plugin-no-null', 'header', '@typescript-eslint'],
|
|
33
|
-
rules: {
|
|
34
|
-
'@typescript-eslint/naming-convention': [
|
|
35
|
-
'error',
|
|
36
|
-
{
|
|
37
|
-
format: ['UPPER_CASE'],
|
|
38
|
-
selector: 'enumMember',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
'@typescript-eslint/unbound-method': 'off',
|
|
42
|
-
'header/header': [
|
|
43
|
-
2,
|
|
44
|
-
'block',
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
46
|
-
['', ` * Package ${packageInfo.name}`, ` * Source ${packageInfo.homepage}`, ' '],
|
|
47
|
-
2,
|
|
48
|
-
],
|
|
49
|
-
'import/order': [
|
|
50
|
-
'error',
|
|
51
|
-
{
|
|
52
|
-
alphabetize: {
|
|
53
|
-
caseInsensitive: false,
|
|
54
|
-
order: 'asc',
|
|
55
|
-
},
|
|
56
|
-
groups: [['external', 'builtin'], ['sibling', 'parent', 'internal'], 'index', 'object', 'type'],
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
'max-len': [
|
|
60
|
-
'error',
|
|
61
|
-
{
|
|
62
|
-
code: 140,
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 1 }],
|
|
66
|
-
'quote-props': ['error', 'as-needed'],
|
|
67
|
-
quotes: ['error', 'single', { allowTemplateLiterals: true }],
|
|
68
|
-
'sort-keys': [
|
|
69
|
-
'error',
|
|
70
|
-
'asc',
|
|
71
|
-
{
|
|
72
|
-
caseSensitive: true,
|
|
73
|
-
minKeys: 2,
|
|
74
|
-
natural: false,
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
};
|
|
1
|
+
/*
|
|
2
|
+
* Package @donmahallem/eslint-config
|
|
3
|
+
* Source https://github.com/donmahallem/eslint-config
|
|
4
|
+
*/
|
|
5
|
+
/* eslint-env es6*/
|
|
6
|
+
import { join as pathJoin } from 'path';
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
8
|
+
const packageInfo = require(pathJoin(process.cwd(), 'package.json'));
|
|
9
|
+
/**
|
|
10
|
+
* Missing rules
|
|
11
|
+
* 'import-spacing','static-this':,'switch-final-break','typedef','whitespace'
|
|
12
|
+
*/
|
|
13
|
+
module.exports = {
|
|
14
|
+
env: {
|
|
15
|
+
browser: true,
|
|
16
|
+
es6: true,
|
|
17
|
+
node: true,
|
|
18
|
+
},
|
|
19
|
+
extends: [
|
|
20
|
+
'eslint:recommended',
|
|
21
|
+
'plugin:jsdoc/recommended',
|
|
22
|
+
'plugin:@typescript-eslint/eslint-recommended',
|
|
23
|
+
'plugin:@typescript-eslint/recommended',
|
|
24
|
+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
25
|
+
'prettier',
|
|
26
|
+
],
|
|
27
|
+
parser: '@typescript-eslint/parser',
|
|
28
|
+
parserOptions: {
|
|
29
|
+
project: 'tsconfig.json',
|
|
30
|
+
sourceType: 'module',
|
|
31
|
+
},
|
|
32
|
+
plugins: ['jsdoc', 'eslint-plugin-prefer-arrow', 'eslint-plugin-import', 'eslint-plugin-no-null', 'header', '@typescript-eslint'],
|
|
33
|
+
rules: {
|
|
34
|
+
'@typescript-eslint/naming-convention': [
|
|
35
|
+
'error',
|
|
36
|
+
{
|
|
37
|
+
format: ['UPPER_CASE'],
|
|
38
|
+
selector: 'enumMember',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
'@typescript-eslint/unbound-method': 'off',
|
|
42
|
+
'header/header': [
|
|
43
|
+
2,
|
|
44
|
+
'block',
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
46
|
+
['', ` * Package ${packageInfo.name}`, ` * Source ${packageInfo.homepage}`, ' '],
|
|
47
|
+
2,
|
|
48
|
+
],
|
|
49
|
+
'import/order': [
|
|
50
|
+
'error',
|
|
51
|
+
{
|
|
52
|
+
alphabetize: {
|
|
53
|
+
caseInsensitive: false,
|
|
54
|
+
order: 'asc',
|
|
55
|
+
},
|
|
56
|
+
groups: [['external', 'builtin'], ['sibling', 'parent', 'internal'], 'index', 'object', 'type'],
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
'max-len': [
|
|
60
|
+
'error',
|
|
61
|
+
{
|
|
62
|
+
code: 140,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 1 }],
|
|
66
|
+
'quote-props': ['error', 'as-needed'],
|
|
67
|
+
quotes: ['error', 'single', { allowTemplateLiterals: true }],
|
|
68
|
+
'sort-keys': [
|
|
69
|
+
'error',
|
|
70
|
+
'asc',
|
|
71
|
+
{
|
|
72
|
+
caseSensitive: true,
|
|
73
|
+
minKeys: 2,
|
|
74
|
+
natural: false,
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
79
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,mBAAmB;AACnB,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,mBAAmB;AACnB,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,sGAAsG;AACtG,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;AAErE;;;GAGG;AACH,MAAM,CAAC,OAAO,GAAG;IACb,GAAG,EAAE;QACD,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,IAAI;KACb;IACD,OAAO,EAAE;QACL,oBAAoB;QACpB,0BAA0B;QAC1B,8CAA8C;QAC9C,uCAAuC;QACvC,+DAA+D;QAC/D,UAAU;KACb;IACD,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACX,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE,QAAQ;KACvB;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,QAAQ,EAAE,oBAAoB,CAAC;IACjI,KAAK,EAAE;QACH,sCAAsC,EAAE;YACpC,OAAO;YACP;gBACI,MAAM,EAAE,CAAC,YAAY,CAAC;gBACtB,QAAQ,EAAE,YAAY;aACzB;SACJ;QACD,mCAAmC,EAAE,KAAK;QAC1C,eAAe,EAAE;YACb,CAAC;YACD,OAAO;YACP,sEAAsE;YACtE,CAAC,EAAE,EAAE,cAAc,WAAW,CAAC,IAAc,EAAE,EAAE,aAAa,WAAW,CAAC,QAAkB,EAAE,EAAE,GAAG,CAAC;YACpG,CAAC;SACJ;QACD,cAAc,EAAE;YACZ,OAAO;YACP;gBACI,WAAW,EAAE;oBACT,eAAe,EAAE,KAAK;oBACtB,KAAK,EAAE,KAAK;iBACf;gBACD,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC;aAClG;SACJ;QACD,SAAS,EAAE;YACP,OAAO;YACP;gBACI,IAAI,EAAE,GAAG;aACZ;SACJ;QACD,yBAAyB,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;QAC3D,aAAa,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;QACrC,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC;QAC5D,WAAW,EAAE;YACT,OAAO;YACP,KAAK;YACL;gBACI,aAAa,EAAE,IAAI;gBACnB,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,KAAK;aACjB;SACJ;KACJ;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donmahallem/eslint-config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "My personal eslint
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "My personal eslint. You better not use it!",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
@@ -10,24 +10,23 @@
|
|
|
10
10
|
"build": "npm run build:esm && npm run build:cjs",
|
|
11
11
|
"build:esm": "tsc --project ./tsconfig.app.json --outDir ./dist/esm --module esnext",
|
|
12
12
|
"build:cjs": "tsc --project ./tsconfig.app.json --outDir ./dist/cjs --module commonjs",
|
|
13
|
-
"build:readme": "npx @appnest/readme generate --input
|
|
14
|
-
"test": "mocha --config
|
|
15
|
-
"test:coverage": "nyc --nycrc-path
|
|
13
|
+
"build:readme": "npx @appnest/readme generate --input package_readme_blueprint.md --config readme_config.json",
|
|
14
|
+
"test": "mocha --config ./.mocharc.yml",
|
|
15
|
+
"test:coverage": "nyc --nycrc-path ./.nycrc.json npm run test",
|
|
16
16
|
"prelint": "npm run build",
|
|
17
17
|
"lint": "eslint -c ./dist/cjs/index.js --ext .ts ./src",
|
|
18
|
-
"postlint": "prettier --config
|
|
18
|
+
"postlint": "prettier --config ./.prettierrc src/**/*.ts --check",
|
|
19
19
|
"lint:fix": "eslint -c ./dist/cjs/index.js --ext .ts ./src --fix",
|
|
20
|
-
"postlint:fix": "prettier --config
|
|
21
|
-
"docs": "typedoc --options ./typedoc.
|
|
20
|
+
"postlint:fix": "prettier --config ./.prettierrc src/**/*.ts --write",
|
|
21
|
+
"docs": "typedoc --options ./typedoc.json",
|
|
22
22
|
"prepublishOnly": "npm run test && npm run docs && npm run build",
|
|
23
|
-
"version": "npm run build:readme
|
|
24
|
-
"prepare": "npm run build"
|
|
23
|
+
"version": "npm run build:readme"
|
|
25
24
|
},
|
|
26
25
|
"files": [
|
|
27
26
|
"dist/*",
|
|
28
27
|
"src/*"
|
|
29
28
|
],
|
|
30
|
-
"homepage": "https://
|
|
29
|
+
"homepage": "https://github.com/donmahallem/eslint-config",
|
|
31
30
|
"author": {
|
|
32
31
|
"name": "donmahallem",
|
|
33
32
|
"email": "donmahallem@users.noreply.github.com",
|
|
@@ -35,11 +34,11 @@
|
|
|
35
34
|
},
|
|
36
35
|
"license": "Apache-2.0",
|
|
37
36
|
"bugs": {
|
|
38
|
-
"url": "https://github.com/donmahallem/
|
|
37
|
+
"url": "https://github.com/donmahallem/eslint-config/issues"
|
|
39
38
|
},
|
|
40
39
|
"repository": {
|
|
41
40
|
"type": "git",
|
|
42
|
-
"url": "https://github.com/donmahallem/
|
|
41
|
+
"url": "https://github.com/donmahallem/eslint-config.git"
|
|
43
42
|
},
|
|
44
43
|
"engines": {
|
|
45
44
|
"node": ">=14"
|
|
@@ -48,18 +47,35 @@
|
|
|
48
47
|
"access": "public"
|
|
49
48
|
},
|
|
50
49
|
"dependencies": {
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
52
|
-
"@typescript-eslint/eslint-plugin-tslint": "5.
|
|
53
|
-
"@typescript-eslint/parser": "5.
|
|
54
|
-
"ajv": "8.8.2",
|
|
55
|
-
"eslint": "8.6.0",
|
|
56
|
-
"eslint-config-prettier": "8.3.0",
|
|
57
|
-
"eslint-plugin-header": "3.1.1",
|
|
58
|
-
"eslint-plugin-import": "2.25.4",
|
|
59
|
-
"eslint-plugin-jsdoc": "37.
|
|
60
|
-
"eslint-plugin-no-null": "1.0.2",
|
|
61
|
-
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
62
|
-
"prettier": "2.5.1"
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "~5.9.0",
|
|
51
|
+
"@typescript-eslint/eslint-plugin-tslint": "~5.9.0",
|
|
52
|
+
"@typescript-eslint/parser": "~5.9.0",
|
|
53
|
+
"ajv": "~8.8.2",
|
|
54
|
+
"eslint": "~8.6.0",
|
|
55
|
+
"eslint-config-prettier": "~8.3.0",
|
|
56
|
+
"eslint-plugin-header": "~3.1.1",
|
|
57
|
+
"eslint-plugin-import": "~2.25.4",
|
|
58
|
+
"eslint-plugin-jsdoc": "~37.6.1",
|
|
59
|
+
"eslint-plugin-no-null": "~1.0.2",
|
|
60
|
+
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
61
|
+
"prettier": "~2.5.1"
|
|
63
62
|
},
|
|
64
|
-
"
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@appnest/readme": "1.2.7",
|
|
65
|
+
"@semantic-release/changelog": "6.0.1",
|
|
66
|
+
"@semantic-release/git": "10.0.1",
|
|
67
|
+
"@types/chai": "4.3.0",
|
|
68
|
+
"@types/mocha": "9.0.0",
|
|
69
|
+
"@types/node": "17.0.8",
|
|
70
|
+
"@types/sinon": "10.0.6",
|
|
71
|
+
"chai": "4.3.4",
|
|
72
|
+
"colors": "1.4.0",
|
|
73
|
+
"mocha": "9.1.3",
|
|
74
|
+
"nyc": "15.1.0",
|
|
75
|
+
"sinon": "12.0.1",
|
|
76
|
+
"ts-node": "10.4.0",
|
|
77
|
+
"tslib": "2.3.1",
|
|
78
|
+
"typedoc": "0.22.10",
|
|
79
|
+
"typescript": "4.5.4"
|
|
80
|
+
}
|
|
65
81
|
}
|
package/src/index.spec.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Package @donmahallem/eslint-config
|
|
3
|
-
* Source https://
|
|
3
|
+
* Source https://github.com/donmahallem/eslint-config
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/* eslint-env es6*/
|
|
7
|
-
import
|
|
7
|
+
import { join as pathJoin } from 'path';
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/no-var-requires,@typescript-eslint/no-unsafe-assignment
|
|
9
|
-
const packageInfo = require(
|
|
9
|
+
const packageInfo = require(pathJoin(process.cwd(), 'package.json'));
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Missing rules
|