eslint-config-angular-strict 2.2.19 → 2.2.21
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/index.js +4 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10,11 +10,8 @@ import { configs, rules } from 'eslint-config-airbnb-extended';
|
|
|
10
10
|
export default [
|
|
11
11
|
// Global plugins configuration for all files
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'@typescript-eslint': tsEslint,
|
|
16
|
-
'import-x': importX,
|
|
17
|
-
},
|
|
13
|
+
ignores: ['dist/**', 'node_modules/**'],
|
|
14
|
+
plugins: { '@stylistic': stylistic, '@typescript-eslint': tsEslint, 'import-x': importX },
|
|
18
15
|
},
|
|
19
16
|
|
|
20
17
|
// Airbnb strict rules
|
|
@@ -24,10 +21,7 @@ export default [
|
|
|
24
21
|
{
|
|
25
22
|
// TypeScript files configuration
|
|
26
23
|
files: ['**/*.ts'],
|
|
27
|
-
languageOptions: {
|
|
28
|
-
parser: tsParser,
|
|
29
|
-
parserOptions: { ecmaVersion: 'latest', project: './tsconfig.json', sourceType: 'module' },
|
|
30
|
-
},
|
|
24
|
+
languageOptions: { parser: tsParser, parserOptions: { ecmaVersion: 'latest', project: './tsconfig.json', sourceType: 'module' } },
|
|
31
25
|
plugins: { '@angular-eslint': angular },
|
|
32
26
|
rules: {
|
|
33
27
|
// Angular ESLint rules
|
|
@@ -93,8 +87,7 @@ export default [
|
|
|
93
87
|
'@stylistic/max-len': ['error', 180],
|
|
94
88
|
'@stylistic/no-extra-semi': 'error',
|
|
95
89
|
'@stylistic/object-curly-spacing': ['error', 'always'],
|
|
96
|
-
'@stylistic/padded-blocks': '
|
|
97
|
-
'@stylistic/quotes': ['error', 'single'],
|
|
90
|
+
'@stylistic/padded-blocks': ['error', { blocks: 'never', classes: 'always', switches: 'never' }],
|
|
98
91
|
|
|
99
92
|
// Import rules
|
|
100
93
|
'import-x/no-anonymous-default-export': 'error',
|