eslint-config-angular-strict 2.3.39 → 2.3.40
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 +1 -1
- package/index.js +2 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ A production-ready, opinionated ESLint configuration that enforces best practice
|
|
|
23
23
|
🅰️ **Angular**: 30+ rules for standalone, lifecycle, components/directives standards, metadata, signals, pipes,...<br>
|
|
24
24
|
📘 **TypeScript**: Member ordering, promise-async, type imports, strict typing, type safety, extraneous classes,...<br>
|
|
25
25
|
✨ **Code Quality**: Complexity max, file length control, import cycles detection, 100+ Unicorn best practices,...<br>
|
|
26
|
-
🎨 **Style**: Airbnb extended, max line length,
|
|
26
|
+
🎨 **Style**: Airbnb extended, max line length, object/class newlines, sorted keys/imports/decorators,...<br>
|
|
27
27
|
🔍 **Templates**: 30+ rules with alphabetical attrs, complexity max, control flow, trackBy, a11y, no-any,...
|
|
28
28
|
|
|
29
29
|
## What's Included
|
package/index.js
CHANGED
|
@@ -108,24 +108,14 @@ export default [
|
|
|
108
108
|
'ng-module-sort/decorator-array-items': 'error',
|
|
109
109
|
|
|
110
110
|
// Stylistic rules
|
|
111
|
+
'@stylistic/array-element-newline': ['error', { consistent: true, multiline: true }],
|
|
111
112
|
'@stylistic/arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
|
|
112
113
|
'@stylistic/lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
|
|
113
114
|
'@stylistic/max-len': ['error', { code: 165, tabWidth: 2 }],
|
|
114
115
|
'@stylistic/newline-per-chained-call': ['error', { ignoreChainWithDepth: 5 }],
|
|
115
116
|
'@stylistic/no-confusing-arrow': 'off',
|
|
116
117
|
'@stylistic/no-extra-parens': ['error', 'all', { ignoredNodes: ['ConditionalExpression'], nestedBinaryExpressions: false, returnAssign: false }],
|
|
117
|
-
'@stylistic/object-curly-newline': [
|
|
118
|
-
'error',
|
|
119
|
-
{
|
|
120
|
-
ExportDeclaration: { consistent: true, multiline: true },
|
|
121
|
-
ImportDeclaration: { consistent: true, multiline: true },
|
|
122
|
-
ObjectExpression: { consistent: true, multiline: true },
|
|
123
|
-
ObjectPattern: { consistent: true, multiline: true },
|
|
124
|
-
TSEnumBody: { consistent: true, multiline: true },
|
|
125
|
-
TSInterfaceBody: { consistent: true, multiline: true },
|
|
126
|
-
TSTypeLiteral: { consistent: true, multiline: true },
|
|
127
|
-
},
|
|
128
|
-
],
|
|
118
|
+
'@stylistic/object-curly-newline': ['error', { consistent: true, multiline: true }],
|
|
129
119
|
'@stylistic/padded-blocks': ['error', { blocks: 'never', classes: 'always', switches: 'never' }],
|
|
130
120
|
'@stylistic/padding-line-between-statements': [
|
|
131
121
|
'error',
|