@futdevpro/dynamo-eslint 1.12.1
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/.eslintrc.json +16 -0
- package/.github/workflows/main.yml +393 -0
- package/INTEGRATION.md +74 -0
- package/POC-README.md +147 -0
- package/README.md +36 -0
- package/build/configs/base.d.ts +81 -0
- package/build/configs/base.d.ts.map +1 -0
- package/build/configs/base.js +51 -0
- package/build/configs/base.js.map +1 -0
- package/build/configs/fsm.d.ts +82 -0
- package/build/configs/fsm.d.ts.map +1 -0
- package/build/configs/fsm.js +7 -0
- package/build/configs/fsm.js.map +1 -0
- package/build/configs/ngx-package.d.ts +81 -0
- package/build/configs/ngx-package.d.ts.map +1 -0
- package/build/configs/ngx-package.js +7 -0
- package/build/configs/ngx-package.js.map +1 -0
- package/build/configs/ngx.d.ts +81 -0
- package/build/configs/ngx.d.ts.map +1 -0
- package/build/configs/ngx.js +12 -0
- package/build/configs/ngx.js.map +1 -0
- package/build/configs/nts-package.d.ts +83 -0
- package/build/configs/nts-package.d.ts.map +1 -0
- package/build/configs/nts-package.js +12 -0
- package/build/configs/nts-package.js.map +1 -0
- package/build/configs/nts.d.ts +82 -0
- package/build/configs/nts.d.ts.map +1 -0
- package/build/configs/nts.js +13 -0
- package/build/configs/nts.js.map +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +3 -0
- package/build/index.js.map +1 -0
- package/build/plugin/index.d.ts +16 -0
- package/build/plugin/index.d.ts.map +1 -0
- package/build/plugin/index.js +19 -0
- package/build/plugin/index.js.map +1 -0
- package/build/plugin/rules/import-order.d.ts +4 -0
- package/build/plugin/rules/import-order.d.ts.map +1 -0
- package/build/plugin/rules/import-order.js +134 -0
- package/build/plugin/rules/import-order.js.map +1 -0
- package/build/plugin/rules/import-order.spec.d.ts +2 -0
- package/build/plugin/rules/import-order.spec.d.ts.map +1 -0
- package/build/plugin/rules/import-order.spec.js +181 -0
- package/build/plugin/rules/import-order.spec.js.map +1 -0
- package/build/plugin/rules/naming-patterns.d.ts +4 -0
- package/build/plugin/rules/naming-patterns.d.ts.map +1 -0
- package/build/plugin/rules/naming-patterns.js +23 -0
- package/build/plugin/rules/naming-patterns.js.map +1 -0
- package/build/plugin/rules/naming-patterns.spec.d.ts +2 -0
- package/build/plugin/rules/naming-patterns.spec.d.ts.map +1 -0
- package/build/plugin/rules/naming-patterns.spec.js +36 -0
- package/build/plugin/rules/naming-patterns.spec.js.map +1 -0
- package/build/scripts/eslintrc-audit.d.ts +3 -0
- package/build/scripts/eslintrc-audit.d.ts.map +1 -0
- package/build/scripts/eslintrc-audit.js +36 -0
- package/build/scripts/eslintrc-audit.js.map +1 -0
- package/build/scripts/validate-imports.d.ts +3 -0
- package/build/scripts/validate-imports.d.ts.map +1 -0
- package/build/scripts/validate-imports.js +76 -0
- package/build/scripts/validate-imports.js.map +1 -0
- package/build/scripts/validate-naming.d.ts +3 -0
- package/build/scripts/validate-naming.d.ts.map +1 -0
- package/build/scripts/validate-naming.js +76 -0
- package/build/scripts/validate-naming.js.map +1 -0
- package/build-test/plugin/rules/import-order.d.ts +3 -0
- package/build-test/plugin/rules/import-order.js +23 -0
- package/build-test/plugin/rules/import-order.spec.d.ts +1 -0
- package/build-test/plugin/rules/import-order.spec.js +44 -0
- package/build-test/plugin/rules/naming-patterns.d.ts +3 -0
- package/build-test/plugin/rules/naming-patterns.js +22 -0
- package/build-test/plugin/rules/naming-patterns.spec.d.ts +1 -0
- package/build-test/plugin/rules/naming-patterns.spec.js +41 -0
- package/futdevpro-dynamo-eslint-01.12.01.tgz +0 -0
- package/package.json +95 -0
- package/samples/base/.eslintrc.json +6 -0
- package/samples/ngx/.eslintrc.json +6 -0
- package/samples/nts/.eslintrc.json +6 -0
- package/samples/poc-sample.ts +38 -0
- package/samples/poc-violations.ts +25 -0
- package/spec/support/jasmine.json +24 -0
- package/src/configs/base.ts +51 -0
- package/src/configs/fsm.ts +9 -0
- package/src/configs/ngx-package.ts +9 -0
- package/src/configs/ngx.ts +14 -0
- package/src/configs/nts-package.ts +14 -0
- package/src/configs/nts.ts +15 -0
- package/src/index.ts +4 -0
- package/src/plugin/index.ts +19 -0
- package/src/plugin/rules/import-order.spec.ts +197 -0
- package/src/plugin/rules/import-order.ts +167 -0
- package/src/plugin/rules/naming-patterns.spec.ts +39 -0
- package/src/plugin/rules/naming-patterns.ts +25 -0
- package/src/scripts/eslintrc-audit.ts +39 -0
- package/src/scripts/validate-imports.ts +98 -0
- package/src/scripts/validate-naming.ts +97 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
env: {
|
|
3
|
+
browser: boolean;
|
|
4
|
+
es2021: boolean;
|
|
5
|
+
};
|
|
6
|
+
parser: string;
|
|
7
|
+
parserOptions: {
|
|
8
|
+
ecmaVersion: string;
|
|
9
|
+
};
|
|
10
|
+
plugins: string[];
|
|
11
|
+
extends: string[];
|
|
12
|
+
rules: {
|
|
13
|
+
'no-warning-comments': (string | {
|
|
14
|
+
terms: string[];
|
|
15
|
+
location: string;
|
|
16
|
+
})[];
|
|
17
|
+
indent: (string | number | {
|
|
18
|
+
SwitchCase: number;
|
|
19
|
+
})[];
|
|
20
|
+
'max-len': (string | {
|
|
21
|
+
code: number;
|
|
22
|
+
comments: number;
|
|
23
|
+
})[];
|
|
24
|
+
'max-lines': (string | number)[];
|
|
25
|
+
'linebreak-style': string;
|
|
26
|
+
semi: string[];
|
|
27
|
+
'no-unused-vars': string;
|
|
28
|
+
'no-prototype-builtins': string;
|
|
29
|
+
'no-empty': string;
|
|
30
|
+
'comma-dangle': (string | {
|
|
31
|
+
arrays: string;
|
|
32
|
+
objects: string;
|
|
33
|
+
functions: string;
|
|
34
|
+
imports: string;
|
|
35
|
+
exports: string;
|
|
36
|
+
})[];
|
|
37
|
+
'brace-style': (string | {
|
|
38
|
+
allowSingleLine: boolean;
|
|
39
|
+
})[];
|
|
40
|
+
'object-curly-spacing': string[];
|
|
41
|
+
'array-bracket-spacing': (string | {
|
|
42
|
+
objectsInArrays: boolean;
|
|
43
|
+
arraysInArrays: boolean;
|
|
44
|
+
})[];
|
|
45
|
+
'padding-line-between-statements': (string | {
|
|
46
|
+
blankLine: string;
|
|
47
|
+
prev: string;
|
|
48
|
+
next: string[];
|
|
49
|
+
} | {
|
|
50
|
+
blankLine: string;
|
|
51
|
+
prev: string[];
|
|
52
|
+
next: string;
|
|
53
|
+
} | {
|
|
54
|
+
blankLine: string;
|
|
55
|
+
prev: string[];
|
|
56
|
+
next: string[];
|
|
57
|
+
})[];
|
|
58
|
+
'prefer-const': string;
|
|
59
|
+
'no-case-declarations': string;
|
|
60
|
+
'no-fallthrough': string;
|
|
61
|
+
'keyword-spacing': string;
|
|
62
|
+
'no-else-return': string;
|
|
63
|
+
'no-duplicate-imports': string;
|
|
64
|
+
'max-params': (string | number)[];
|
|
65
|
+
'max-params-no-constructor/max-params-no-constructor': (string | number)[];
|
|
66
|
+
quotes: (string | {
|
|
67
|
+
allowTemplateLiterals: boolean;
|
|
68
|
+
})[];
|
|
69
|
+
'@typescript-eslint/quotes': (string | {
|
|
70
|
+
allowTemplateLiterals: boolean;
|
|
71
|
+
})[];
|
|
72
|
+
'@typescript-eslint/no-unused-vars': string;
|
|
73
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
74
|
+
allowTypedFunctionExpressions: boolean;
|
|
75
|
+
})[];
|
|
76
|
+
'@typescript-eslint/no-explicit-any': string;
|
|
77
|
+
'@typescript-eslint/typedef': string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export = _default;
|
|
81
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAgDE"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = {
|
|
3
|
+
env: { browser: true, es2021: true },
|
|
4
|
+
parser: '@typescript-eslint/parser',
|
|
5
|
+
parserOptions: { ecmaVersion: 'latest' },
|
|
6
|
+
plugins: [
|
|
7
|
+
'@typescript-eslint',
|
|
8
|
+
'unused-imports',
|
|
9
|
+
'max-params-no-constructor',
|
|
10
|
+
],
|
|
11
|
+
extends: [
|
|
12
|
+
'eslint:recommended',
|
|
13
|
+
'plugin:@typescript-eslint/recommended',
|
|
14
|
+
],
|
|
15
|
+
rules: {
|
|
16
|
+
'no-warning-comments': ['warn', { terms: ['todo', 'fixme', 'removable', '??'], location: 'anywhere' }],
|
|
17
|
+
indent: ['warn', 2, { SwitchCase: 1 }],
|
|
18
|
+
'max-len': ['warn', { code: 100, comments: 120 }],
|
|
19
|
+
'max-lines': ['warn', 1000],
|
|
20
|
+
'linebreak-style': 'off',
|
|
21
|
+
semi: ['warn', 'always'],
|
|
22
|
+
'no-unused-vars': 'off',
|
|
23
|
+
'no-prototype-builtins': 'off',
|
|
24
|
+
'no-empty': 'warn',
|
|
25
|
+
'comma-dangle': ['warn', { arrays: 'always-multiline', objects: 'always-multiline', functions: 'only-multiline', imports: 'never', exports: 'never' }],
|
|
26
|
+
'brace-style': ['warn', '1tbs', { allowSingleLine: false }],
|
|
27
|
+
'object-curly-spacing': ['warn', 'always'],
|
|
28
|
+
'array-bracket-spacing': ['warn', 'always', { objectsInArrays: false, arraysInArrays: false }],
|
|
29
|
+
'padding-line-between-statements': [
|
|
30
|
+
'warn',
|
|
31
|
+
{ blankLine: 'always', prev: '*', next: ['return', 'throw', 'if', 'for', 'while', 'switch', 'default'] },
|
|
32
|
+
{ blankLine: 'always', prev: ['const', 'let', 'var', 'break'], next: '*' },
|
|
33
|
+
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] },
|
|
34
|
+
],
|
|
35
|
+
'prefer-const': 'warn',
|
|
36
|
+
'no-case-declarations': 'off',
|
|
37
|
+
'no-fallthrough': 'off',
|
|
38
|
+
'keyword-spacing': 'warn',
|
|
39
|
+
'no-else-return': 'warn',
|
|
40
|
+
'no-duplicate-imports': 'warn',
|
|
41
|
+
'max-params': ['warn', 4],
|
|
42
|
+
'max-params-no-constructor/max-params-no-constructor': ['warn', 5],
|
|
43
|
+
quotes: ['warn', 'single', { allowTemplateLiterals: true }],
|
|
44
|
+
'@typescript-eslint/quotes': ['warn', 'single', { allowTemplateLiterals: true }],
|
|
45
|
+
'@typescript-eslint/no-unused-vars': 'warn',
|
|
46
|
+
'@typescript-eslint/explicit-function-return-type': ['warn', { allowTypedFunctionExpressions: false }],
|
|
47
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
48
|
+
'@typescript-eslint/typedef': 'warn',
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";AAAA,iBAAS;IACP,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACpC,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE;IACxC,OAAO,EAAE;QACP,oBAAoB;QACpB,gBAAgB;QAChB,2BAA2B;KAC5B;IACD,OAAO,EAAE;QACP,oBAAoB;QACpB,uCAAuC;KACxC;IACD,KAAK,EAAE;QACL,qBAAqB,EAAE,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;QACtG,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;QACtC,SAAS,EAAE,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;QACjD,WAAW,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;QAC3B,iBAAiB,EAAE,KAAK;QACxB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;QACxB,gBAAgB,EAAE,KAAK;QACvB,uBAAuB,EAAE,KAAK;QAC9B,UAAU,EAAE,MAAM;QAClB,cAAc,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QACtJ,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;QAC3D,sBAAsB,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;QAC1C,uBAAuB,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;QAC9F,iCAAiC,EAAE;YACjC,MAAM;YACN,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,CAAC,EAAE;YAClG,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,OAAO,EAAC,KAAK,EAAC,KAAK,EAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE;YACvE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,OAAO,EAAC,KAAK,EAAC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,OAAO,EAAC,KAAK,EAAC,KAAK,CAAC,EAAE;SAC/E;QACD,cAAc,EAAE,MAAM;QACtB,sBAAsB,EAAE,KAAK;QAC7B,gBAAgB,EAAE,KAAK;QACvB,iBAAiB,EAAE,MAAM;QACzB,gBAAgB,EAAE,MAAM;QACxB,sBAAsB,EAAE,MAAM;QAC9B,YAAY,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;QACzB,qDAAqD,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;QAClE,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC;QAC3D,2BAA2B,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC;QAChF,mCAAmC,EAAE,MAAM;QAC3C,kDAAkD,EAAE,CAAC,MAAM,EAAE,EAAE,6BAA6B,EAAE,KAAK,EAAE,CAAC;QACtG,oCAAoC,EAAE,MAAM;QAC5C,4BAA4B,EAAE,MAAM;KACrC;CACF,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
env: {
|
|
3
|
+
node: boolean;
|
|
4
|
+
es2021: boolean;
|
|
5
|
+
};
|
|
6
|
+
parserOptions: {
|
|
7
|
+
sourceType: string;
|
|
8
|
+
ecmaVersion: string;
|
|
9
|
+
};
|
|
10
|
+
rules: {
|
|
11
|
+
'max-lines': (string | number)[];
|
|
12
|
+
'no-warning-comments': (string | {
|
|
13
|
+
terms: string[];
|
|
14
|
+
location: string;
|
|
15
|
+
})[];
|
|
16
|
+
indent: (string | number | {
|
|
17
|
+
SwitchCase: number;
|
|
18
|
+
})[];
|
|
19
|
+
'max-len': (string | {
|
|
20
|
+
code: number;
|
|
21
|
+
comments: number;
|
|
22
|
+
})[];
|
|
23
|
+
'linebreak-style': string;
|
|
24
|
+
semi: string[];
|
|
25
|
+
'no-unused-vars': string;
|
|
26
|
+
'no-prototype-builtins': string;
|
|
27
|
+
'no-empty': string;
|
|
28
|
+
'comma-dangle': (string | {
|
|
29
|
+
arrays: string;
|
|
30
|
+
objects: string;
|
|
31
|
+
functions: string;
|
|
32
|
+
imports: string;
|
|
33
|
+
exports: string;
|
|
34
|
+
})[];
|
|
35
|
+
'brace-style': (string | {
|
|
36
|
+
allowSingleLine: boolean;
|
|
37
|
+
})[];
|
|
38
|
+
'object-curly-spacing': string[];
|
|
39
|
+
'array-bracket-spacing': (string | {
|
|
40
|
+
objectsInArrays: boolean;
|
|
41
|
+
arraysInArrays: boolean;
|
|
42
|
+
})[];
|
|
43
|
+
'padding-line-between-statements': (string | {
|
|
44
|
+
blankLine: string;
|
|
45
|
+
prev: string;
|
|
46
|
+
next: string[];
|
|
47
|
+
} | {
|
|
48
|
+
blankLine: string;
|
|
49
|
+
prev: string[];
|
|
50
|
+
next: string;
|
|
51
|
+
} | {
|
|
52
|
+
blankLine: string;
|
|
53
|
+
prev: string[];
|
|
54
|
+
next: string[];
|
|
55
|
+
})[];
|
|
56
|
+
'prefer-const': string;
|
|
57
|
+
'no-case-declarations': string;
|
|
58
|
+
'no-fallthrough': string;
|
|
59
|
+
'keyword-spacing': string;
|
|
60
|
+
'no-else-return': string;
|
|
61
|
+
'no-duplicate-imports': string;
|
|
62
|
+
'max-params': (string | number)[];
|
|
63
|
+
'max-params-no-constructor/max-params-no-constructor': (string | number)[];
|
|
64
|
+
quotes: (string | {
|
|
65
|
+
allowTemplateLiterals: boolean;
|
|
66
|
+
})[];
|
|
67
|
+
'@typescript-eslint/quotes': (string | {
|
|
68
|
+
allowTemplateLiterals: boolean;
|
|
69
|
+
})[];
|
|
70
|
+
'@typescript-eslint/no-unused-vars': string;
|
|
71
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
72
|
+
allowTypedFunctionExpressions: boolean;
|
|
73
|
+
})[];
|
|
74
|
+
'@typescript-eslint/no-explicit-any': string;
|
|
75
|
+
'@typescript-eslint/typedef': string;
|
|
76
|
+
};
|
|
77
|
+
parser: string;
|
|
78
|
+
plugins: string[];
|
|
79
|
+
extends: string[];
|
|
80
|
+
};
|
|
81
|
+
export = config;
|
|
82
|
+
//# sourceMappingURL=fsm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fsm.d.ts","sourceRoot":"","sources":["../../src/configs/fsm.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEX,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fsm.js","sourceRoot":"","sources":["../../src/configs/fsm.ts"],"names":[],"mappings":";AAAA,6BAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,GAAG,GAAG;CACP,CAAC;AAEF,iBAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
env: {
|
|
3
|
+
browser: boolean;
|
|
4
|
+
es2021: boolean;
|
|
5
|
+
};
|
|
6
|
+
extends: string[];
|
|
7
|
+
parser: string;
|
|
8
|
+
parserOptions: {
|
|
9
|
+
ecmaVersion: string;
|
|
10
|
+
};
|
|
11
|
+
plugins: string[];
|
|
12
|
+
rules: {
|
|
13
|
+
'no-warning-comments': (string | {
|
|
14
|
+
terms: string[];
|
|
15
|
+
location: string;
|
|
16
|
+
})[];
|
|
17
|
+
indent: (string | number | {
|
|
18
|
+
SwitchCase: number;
|
|
19
|
+
})[];
|
|
20
|
+
'max-len': (string | {
|
|
21
|
+
code: number;
|
|
22
|
+
comments: number;
|
|
23
|
+
})[];
|
|
24
|
+
'max-lines': (string | number)[];
|
|
25
|
+
'linebreak-style': string;
|
|
26
|
+
semi: string[];
|
|
27
|
+
'no-unused-vars': string;
|
|
28
|
+
'no-prototype-builtins': string;
|
|
29
|
+
'no-empty': string;
|
|
30
|
+
'comma-dangle': (string | {
|
|
31
|
+
arrays: string;
|
|
32
|
+
objects: string;
|
|
33
|
+
functions: string;
|
|
34
|
+
imports: string;
|
|
35
|
+
exports: string;
|
|
36
|
+
})[];
|
|
37
|
+
'brace-style': (string | {
|
|
38
|
+
allowSingleLine: boolean;
|
|
39
|
+
})[];
|
|
40
|
+
'object-curly-spacing': string[];
|
|
41
|
+
'array-bracket-spacing': (string | {
|
|
42
|
+
objectsInArrays: boolean;
|
|
43
|
+
arraysInArrays: boolean;
|
|
44
|
+
})[];
|
|
45
|
+
'padding-line-between-statements': (string | {
|
|
46
|
+
blankLine: string;
|
|
47
|
+
prev: string;
|
|
48
|
+
next: string[];
|
|
49
|
+
} | {
|
|
50
|
+
blankLine: string;
|
|
51
|
+
prev: string[];
|
|
52
|
+
next: string;
|
|
53
|
+
} | {
|
|
54
|
+
blankLine: string;
|
|
55
|
+
prev: string[];
|
|
56
|
+
next: string[];
|
|
57
|
+
})[];
|
|
58
|
+
'prefer-const': string;
|
|
59
|
+
'no-case-declarations': string;
|
|
60
|
+
'no-fallthrough': string;
|
|
61
|
+
'keyword-spacing': string;
|
|
62
|
+
'no-else-return': string;
|
|
63
|
+
'no-duplicate-imports': string;
|
|
64
|
+
'max-params': (string | number)[];
|
|
65
|
+
'max-params-no-constructor/max-params-no-constructor': (string | number)[];
|
|
66
|
+
quotes: (string | {
|
|
67
|
+
allowTemplateLiterals: boolean;
|
|
68
|
+
})[];
|
|
69
|
+
'@typescript-eslint/quotes': (string | {
|
|
70
|
+
allowTemplateLiterals: boolean;
|
|
71
|
+
})[];
|
|
72
|
+
'@typescript-eslint/no-unused-vars': string;
|
|
73
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
74
|
+
allowTypedFunctionExpressions: boolean;
|
|
75
|
+
})[];
|
|
76
|
+
'@typescript-eslint/no-explicit-any': string;
|
|
77
|
+
'@typescript-eslint/typedef': string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export = config;
|
|
81
|
+
//# sourceMappingURL=ngx-package.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-package.d.ts","sourceRoot":"","sources":["../../src/configs/ngx-package.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEX,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-package.js","sourceRoot":"","sources":["../../src/configs/ngx-package.ts"],"names":[],"mappings":";AAAA,6BAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,GAAG,GAAG;CACP,CAAC;AAEF,iBAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
env: {
|
|
3
|
+
browser: boolean;
|
|
4
|
+
es2021: boolean;
|
|
5
|
+
};
|
|
6
|
+
extends: string[];
|
|
7
|
+
parser: string;
|
|
8
|
+
parserOptions: {
|
|
9
|
+
ecmaVersion: string;
|
|
10
|
+
};
|
|
11
|
+
plugins: string[];
|
|
12
|
+
rules: {
|
|
13
|
+
'no-warning-comments': (string | {
|
|
14
|
+
terms: string[];
|
|
15
|
+
location: string;
|
|
16
|
+
})[];
|
|
17
|
+
indent: (string | number | {
|
|
18
|
+
SwitchCase: number;
|
|
19
|
+
})[];
|
|
20
|
+
'max-len': (string | {
|
|
21
|
+
code: number;
|
|
22
|
+
comments: number;
|
|
23
|
+
})[];
|
|
24
|
+
'max-lines': (string | number)[];
|
|
25
|
+
'linebreak-style': string;
|
|
26
|
+
semi: string[];
|
|
27
|
+
'no-unused-vars': string;
|
|
28
|
+
'no-prototype-builtins': string;
|
|
29
|
+
'no-empty': string;
|
|
30
|
+
'comma-dangle': (string | {
|
|
31
|
+
arrays: string;
|
|
32
|
+
objects: string;
|
|
33
|
+
functions: string;
|
|
34
|
+
imports: string;
|
|
35
|
+
exports: string;
|
|
36
|
+
})[];
|
|
37
|
+
'brace-style': (string | {
|
|
38
|
+
allowSingleLine: boolean;
|
|
39
|
+
})[];
|
|
40
|
+
'object-curly-spacing': string[];
|
|
41
|
+
'array-bracket-spacing': (string | {
|
|
42
|
+
objectsInArrays: boolean;
|
|
43
|
+
arraysInArrays: boolean;
|
|
44
|
+
})[];
|
|
45
|
+
'padding-line-between-statements': (string | {
|
|
46
|
+
blankLine: string;
|
|
47
|
+
prev: string;
|
|
48
|
+
next: string[];
|
|
49
|
+
} | {
|
|
50
|
+
blankLine: string;
|
|
51
|
+
prev: string[];
|
|
52
|
+
next: string;
|
|
53
|
+
} | {
|
|
54
|
+
blankLine: string;
|
|
55
|
+
prev: string[];
|
|
56
|
+
next: string[];
|
|
57
|
+
})[];
|
|
58
|
+
'prefer-const': string;
|
|
59
|
+
'no-case-declarations': string;
|
|
60
|
+
'no-fallthrough': string;
|
|
61
|
+
'keyword-spacing': string;
|
|
62
|
+
'no-else-return': string;
|
|
63
|
+
'no-duplicate-imports': string;
|
|
64
|
+
'max-params': (string | number)[];
|
|
65
|
+
'max-params-no-constructor/max-params-no-constructor': (string | number)[];
|
|
66
|
+
quotes: (string | {
|
|
67
|
+
allowTemplateLiterals: boolean;
|
|
68
|
+
})[];
|
|
69
|
+
'@typescript-eslint/quotes': (string | {
|
|
70
|
+
allowTemplateLiterals: boolean;
|
|
71
|
+
})[];
|
|
72
|
+
'@typescript-eslint/no-unused-vars': string;
|
|
73
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
74
|
+
allowTypedFunctionExpressions: boolean;
|
|
75
|
+
})[];
|
|
76
|
+
'@typescript-eslint/no-explicit-any': string;
|
|
77
|
+
'@typescript-eslint/typedef': string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export = config;
|
|
81
|
+
//# sourceMappingURL=ngx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx.d.ts","sourceRoot":"","sources":["../../src/configs/ngx.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const base = require("./base");
|
|
3
|
+
const config = {
|
|
4
|
+
...base,
|
|
5
|
+
env: { browser: true, es2021: true },
|
|
6
|
+
extends: [
|
|
7
|
+
...base.extends,
|
|
8
|
+
'plugin:@angular-eslint/recommended',
|
|
9
|
+
],
|
|
10
|
+
};
|
|
11
|
+
module.exports = config;
|
|
12
|
+
//# sourceMappingURL=ngx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx.js","sourceRoot":"","sources":["../../src/configs/ngx.ts"],"names":[],"mappings":";AAAA,+BAAgC;AAEhC,MAAM,MAAM,GAAG;IACb,GAAG,IAAI;IACP,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACpC,OAAO,EAAE;QACP,GAAG,IAAI,CAAC,OAAO;QACf,oCAAoC;KACrC;CACF,CAAC;AAEF,iBAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
rules: {
|
|
3
|
+
'@typescript-eslint/ban-types': string;
|
|
4
|
+
'@typescript-eslint/no-explicit-any': string;
|
|
5
|
+
'max-lines': (string | number)[];
|
|
6
|
+
'no-warning-comments': (string | {
|
|
7
|
+
terms: string[];
|
|
8
|
+
location: string;
|
|
9
|
+
})[];
|
|
10
|
+
indent: (string | number | {
|
|
11
|
+
SwitchCase: number;
|
|
12
|
+
})[];
|
|
13
|
+
'max-len': (string | {
|
|
14
|
+
code: number;
|
|
15
|
+
comments: number;
|
|
16
|
+
})[];
|
|
17
|
+
'linebreak-style': string;
|
|
18
|
+
semi: string[];
|
|
19
|
+
'no-unused-vars': string;
|
|
20
|
+
'no-prototype-builtins': string;
|
|
21
|
+
'no-empty': string;
|
|
22
|
+
'comma-dangle': (string | {
|
|
23
|
+
arrays: string;
|
|
24
|
+
objects: string;
|
|
25
|
+
functions: string;
|
|
26
|
+
imports: string;
|
|
27
|
+
exports: string;
|
|
28
|
+
})[];
|
|
29
|
+
'brace-style': (string | {
|
|
30
|
+
allowSingleLine: boolean;
|
|
31
|
+
})[];
|
|
32
|
+
'object-curly-spacing': string[];
|
|
33
|
+
'array-bracket-spacing': (string | {
|
|
34
|
+
objectsInArrays: boolean;
|
|
35
|
+
arraysInArrays: boolean;
|
|
36
|
+
})[];
|
|
37
|
+
'padding-line-between-statements': (string | {
|
|
38
|
+
blankLine: string;
|
|
39
|
+
prev: string;
|
|
40
|
+
next: string[];
|
|
41
|
+
} | {
|
|
42
|
+
blankLine: string;
|
|
43
|
+
prev: string[];
|
|
44
|
+
next: string;
|
|
45
|
+
} | {
|
|
46
|
+
blankLine: string;
|
|
47
|
+
prev: string[];
|
|
48
|
+
next: string[];
|
|
49
|
+
})[];
|
|
50
|
+
'prefer-const': string;
|
|
51
|
+
'no-case-declarations': string;
|
|
52
|
+
'no-fallthrough': string;
|
|
53
|
+
'keyword-spacing': string;
|
|
54
|
+
'no-else-return': string;
|
|
55
|
+
'no-duplicate-imports': string;
|
|
56
|
+
'max-params': (string | number)[];
|
|
57
|
+
'max-params-no-constructor/max-params-no-constructor': (string | number)[];
|
|
58
|
+
quotes: (string | {
|
|
59
|
+
allowTemplateLiterals: boolean;
|
|
60
|
+
})[];
|
|
61
|
+
'@typescript-eslint/quotes': (string | {
|
|
62
|
+
allowTemplateLiterals: boolean;
|
|
63
|
+
})[];
|
|
64
|
+
'@typescript-eslint/no-unused-vars': string;
|
|
65
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
66
|
+
allowTypedFunctionExpressions: boolean;
|
|
67
|
+
})[];
|
|
68
|
+
'@typescript-eslint/typedef': string;
|
|
69
|
+
};
|
|
70
|
+
env: {
|
|
71
|
+
node: boolean;
|
|
72
|
+
es2021: boolean;
|
|
73
|
+
};
|
|
74
|
+
parserOptions: {
|
|
75
|
+
sourceType: string;
|
|
76
|
+
ecmaVersion: string;
|
|
77
|
+
};
|
|
78
|
+
parser: string;
|
|
79
|
+
plugins: string[];
|
|
80
|
+
extends: string[];
|
|
81
|
+
};
|
|
82
|
+
export = config;
|
|
83
|
+
//# sourceMappingURL=nts-package.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nts-package.d.ts","sourceRoot":"","sources":["../../src/configs/nts-package.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const nts = require("./nts");
|
|
3
|
+
const config = {
|
|
4
|
+
...nts,
|
|
5
|
+
rules: {
|
|
6
|
+
...nts.rules,
|
|
7
|
+
'@typescript-eslint/ban-types': 'off',
|
|
8
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
module.exports = config;
|
|
12
|
+
//# sourceMappingURL=nts-package.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nts-package.js","sourceRoot":"","sources":["../../src/configs/nts-package.ts"],"names":[],"mappings":";AAAA,6BAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,GAAG,GAAG;IACN,KAAK,EAAE;QACL,GAAG,GAAG,CAAC,KAAK;QACZ,8BAA8B,EAAE,KAAK;QACrC,oCAAoC,EAAE,KAAK;KAC5C;CACF,CAAC;AAEF,iBAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
env: {
|
|
3
|
+
node: boolean;
|
|
4
|
+
es2021: boolean;
|
|
5
|
+
};
|
|
6
|
+
parserOptions: {
|
|
7
|
+
sourceType: string;
|
|
8
|
+
ecmaVersion: string;
|
|
9
|
+
};
|
|
10
|
+
rules: {
|
|
11
|
+
'max-lines': (string | number)[];
|
|
12
|
+
'no-warning-comments': (string | {
|
|
13
|
+
terms: string[];
|
|
14
|
+
location: string;
|
|
15
|
+
})[];
|
|
16
|
+
indent: (string | number | {
|
|
17
|
+
SwitchCase: number;
|
|
18
|
+
})[];
|
|
19
|
+
'max-len': (string | {
|
|
20
|
+
code: number;
|
|
21
|
+
comments: number;
|
|
22
|
+
})[];
|
|
23
|
+
'linebreak-style': string;
|
|
24
|
+
semi: string[];
|
|
25
|
+
'no-unused-vars': string;
|
|
26
|
+
'no-prototype-builtins': string;
|
|
27
|
+
'no-empty': string;
|
|
28
|
+
'comma-dangle': (string | {
|
|
29
|
+
arrays: string;
|
|
30
|
+
objects: string;
|
|
31
|
+
functions: string;
|
|
32
|
+
imports: string;
|
|
33
|
+
exports: string;
|
|
34
|
+
})[];
|
|
35
|
+
'brace-style': (string | {
|
|
36
|
+
allowSingleLine: boolean;
|
|
37
|
+
})[];
|
|
38
|
+
'object-curly-spacing': string[];
|
|
39
|
+
'array-bracket-spacing': (string | {
|
|
40
|
+
objectsInArrays: boolean;
|
|
41
|
+
arraysInArrays: boolean;
|
|
42
|
+
})[];
|
|
43
|
+
'padding-line-between-statements': (string | {
|
|
44
|
+
blankLine: string;
|
|
45
|
+
prev: string;
|
|
46
|
+
next: string[];
|
|
47
|
+
} | {
|
|
48
|
+
blankLine: string;
|
|
49
|
+
prev: string[];
|
|
50
|
+
next: string;
|
|
51
|
+
} | {
|
|
52
|
+
blankLine: string;
|
|
53
|
+
prev: string[];
|
|
54
|
+
next: string[];
|
|
55
|
+
})[];
|
|
56
|
+
'prefer-const': string;
|
|
57
|
+
'no-case-declarations': string;
|
|
58
|
+
'no-fallthrough': string;
|
|
59
|
+
'keyword-spacing': string;
|
|
60
|
+
'no-else-return': string;
|
|
61
|
+
'no-duplicate-imports': string;
|
|
62
|
+
'max-params': (string | number)[];
|
|
63
|
+
'max-params-no-constructor/max-params-no-constructor': (string | number)[];
|
|
64
|
+
quotes: (string | {
|
|
65
|
+
allowTemplateLiterals: boolean;
|
|
66
|
+
})[];
|
|
67
|
+
'@typescript-eslint/quotes': (string | {
|
|
68
|
+
allowTemplateLiterals: boolean;
|
|
69
|
+
})[];
|
|
70
|
+
'@typescript-eslint/no-unused-vars': string;
|
|
71
|
+
'@typescript-eslint/explicit-function-return-type': (string | {
|
|
72
|
+
allowTypedFunctionExpressions: boolean;
|
|
73
|
+
})[];
|
|
74
|
+
'@typescript-eslint/no-explicit-any': string;
|
|
75
|
+
'@typescript-eslint/typedef': string;
|
|
76
|
+
};
|
|
77
|
+
parser: string;
|
|
78
|
+
plugins: string[];
|
|
79
|
+
extends: string[];
|
|
80
|
+
};
|
|
81
|
+
export = config;
|
|
82
|
+
//# sourceMappingURL=nts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nts.d.ts","sourceRoot":"","sources":["../../src/configs/nts.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQX,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const base = require("./base");
|
|
3
|
+
const config = {
|
|
4
|
+
...base,
|
|
5
|
+
env: { node: true, es2021: true },
|
|
6
|
+
parserOptions: { ...base.parserOptions, sourceType: 'module' },
|
|
7
|
+
rules: {
|
|
8
|
+
...base.rules,
|
|
9
|
+
'max-lines': ['warn', 1500],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
module.exports = config;
|
|
13
|
+
//# sourceMappingURL=nts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nts.js","sourceRoot":"","sources":["../../src/configs/nts.ts"],"names":[],"mappings":";AAAA,+BAAgC;AAEhC,MAAM,MAAM,GAAG;IACb,GAAG,IAAI;IACP,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACjC,aAAa,EAAE,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC9D,KAAK,EAAE;QACL,GAAG,IAAI,CAAC,KAAK;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;KAC5B;CACF,CAAC;AAEF,iBAAS,MAAM,CAAC"}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|