@lenne.tech/eslint-config-angular 2.1.3 → 2.2.0
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 +11 -1
- package/package.json +6 -7
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@ console.log("Linting Angular...");
|
|
|
2
2
|
import tsParser from "@typescript-eslint/parser";
|
|
3
3
|
import typescript from "@typescript-eslint/eslint-plugin";
|
|
4
4
|
import stylistic from "@stylistic/eslint-plugin";
|
|
5
|
+
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
5
6
|
|
|
6
7
|
export default [
|
|
7
8
|
{ ignores: ["dist/", ".yalc/", "node_modules/", ".husky/", "extras/"] },
|
|
@@ -80,7 +81,14 @@ export default [
|
|
|
80
81
|
curly: ["error", "all"],
|
|
81
82
|
"max-statements-per-line": ["error", { max: 1 }],
|
|
82
83
|
|
|
83
|
-
"@typescript-eslint/no-unused-vars":
|
|
84
|
+
"@typescript-eslint/no-unused-vars": [
|
|
85
|
+
"warn",
|
|
86
|
+
{
|
|
87
|
+
argsIgnorePattern: "^_",
|
|
88
|
+
varsIgnorePattern: "^_",
|
|
89
|
+
caughtErrorsIgnorePattern: "^_",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
84
92
|
|
|
85
93
|
// off
|
|
86
94
|
// TS
|
|
@@ -116,4 +124,6 @@ export default [
|
|
|
116
124
|
"lines-between-class-members": "off", // Requires an empty line between class members (turned off because the TypeScript rule handles it)
|
|
117
125
|
},
|
|
118
126
|
},
|
|
127
|
+
// Prettier config must be last to override conflicting rules
|
|
128
|
+
eslintConfigPrettier,
|
|
119
129
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/eslint-config-angular",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "ESLint config of lenne.Tech for Angular",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -19,15 +19,14 @@
|
|
|
19
19
|
"eslint": ">=9.26.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@stylistic/eslint-plugin": "5.
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
24
|
-
"@typescript-eslint/parser": "8.
|
|
22
|
+
"@stylistic/eslint-plugin": "5.4.0",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "8.65.0",
|
|
24
|
+
"@typescript-eslint/parser": "8.65.0",
|
|
25
25
|
"eslint-config-prettier": "10.1.8",
|
|
26
|
-
"eslint-plugin-perfectionist": "4.15.
|
|
27
|
-
"functions-have-names": "1.2.3"
|
|
26
|
+
"eslint-plugin-perfectionist": "4.15.1"
|
|
28
27
|
},
|
|
29
28
|
"devDependencies": {
|
|
30
|
-
"eslint": "9.
|
|
29
|
+
"eslint": "9.37.0",
|
|
31
30
|
"watch": "1.0.2"
|
|
32
31
|
}
|
|
33
32
|
}
|