@lenne.tech/eslint-config-angular 0.0.10 → 0.0.12
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 +18 -12
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -10,6 +10,7 @@ module.exports = {
|
|
|
10
10
|
"plugin:@angular-eslint/recommended",
|
|
11
11
|
// This is required if you use inline templates in Components
|
|
12
12
|
"plugin:@angular-eslint/template/process-inline-templates",
|
|
13
|
+
"plugin:perfectionist/recommended-natural"
|
|
13
14
|
],
|
|
14
15
|
rules: {
|
|
15
16
|
/**
|
|
@@ -54,7 +55,17 @@ module.exports = {
|
|
|
54
55
|
], // Bans specific TypeScript comment syntax
|
|
55
56
|
"@typescript-eslint/member-delimiter-style": [
|
|
56
57
|
"error",
|
|
57
|
-
{
|
|
58
|
+
{
|
|
59
|
+
multiline: {
|
|
60
|
+
delimiter: "semi",
|
|
61
|
+
requireLast: true,
|
|
62
|
+
},
|
|
63
|
+
singleline: {
|
|
64
|
+
delimiter: "semi",
|
|
65
|
+
requireLast: false,
|
|
66
|
+
},
|
|
67
|
+
multilineDetection: "brackets",
|
|
68
|
+
},
|
|
58
69
|
], // Enforces member delimiter style in TypeScript interfaces and type literals
|
|
59
70
|
"@typescript-eslint/type-annotation-spacing": ["error", {}], // Enforces consistent spacing around type annotations in TypeScript
|
|
60
71
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"], // Enforces consistent usage of type definitions in TypeScript (interface vs type)
|
|
@@ -99,22 +110,17 @@ module.exports = {
|
|
|
99
110
|
"always",
|
|
100
111
|
{ exceptAfterSingleLine: true },
|
|
101
112
|
], // Requires an empty line between class members in TypeScript code, except after a single-line member
|
|
113
|
+
"@typescript-eslint/brace-style": [
|
|
114
|
+
"error",
|
|
115
|
+
"1tbs",
|
|
116
|
+
{ allowSingleLine: false },
|
|
117
|
+
],
|
|
102
118
|
|
|
103
119
|
// normal
|
|
104
120
|
"no-console": ["error", { allow: ["info", "debug", "warn", "error"] }], // Disallows or restricts the use of certain console methods
|
|
105
121
|
"prefer-template": "error",
|
|
106
|
-
curly: ["error"],
|
|
122
|
+
curly: ["error", "all"],
|
|
107
123
|
"max-statements-per-line": ["error", { max: 1 }],
|
|
108
|
-
"sort-imports": [
|
|
109
|
-
"error",
|
|
110
|
-
{
|
|
111
|
-
ignoreCase: false,
|
|
112
|
-
ignoreDeclarationSort: true,
|
|
113
|
-
ignoreMemberSort: false,
|
|
114
|
-
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
|
|
115
|
-
allowSeparatedGroups: false,
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
124
|
|
|
119
125
|
// off
|
|
120
126
|
// TS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/eslint-config-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "ESLint config of lenne.Tech for Angular",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@typescript-eslint/eslint-plugin": "6.7.0",
|
|
26
26
|
"@typescript-eslint/parser": "6.7.0",
|
|
27
27
|
"eslint-config-prettier": "9.0.0",
|
|
28
|
+
"eslint-plugin-perfectionist": "2.4.2",
|
|
28
29
|
"functions-have-names": "1.2.3"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|