@lenne.tech/eslint-config-ts 0.0.9 → 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 +15 -15
- package/package.json +13 -11
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@ module.exports = {
|
|
|
9
9
|
"plugin:jsonc/recommended-with-jsonc",
|
|
10
10
|
"plugin:yml/standard",
|
|
11
11
|
"plugin:markdown/recommended",
|
|
12
|
+
"plugin:perfectionist/recommended-natural"
|
|
12
13
|
],
|
|
13
14
|
plugins: ["no-only-tests", "unused-imports"],
|
|
14
15
|
settings: {
|
|
@@ -26,7 +27,17 @@ module.exports = {
|
|
|
26
27
|
],
|
|
27
28
|
"@typescript-eslint/member-delimiter-style": [
|
|
28
29
|
"error",
|
|
29
|
-
{
|
|
30
|
+
{
|
|
31
|
+
multiline: {
|
|
32
|
+
delimiter: "semi",
|
|
33
|
+
requireLast: true,
|
|
34
|
+
},
|
|
35
|
+
singleline: {
|
|
36
|
+
delimiter: "semi",
|
|
37
|
+
requireLast: false,
|
|
38
|
+
},
|
|
39
|
+
multilineDetection: "brackets",
|
|
40
|
+
},
|
|
30
41
|
],
|
|
31
42
|
"@typescript-eslint/type-annotation-spacing": ["error", {}],
|
|
32
43
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
@@ -46,8 +57,8 @@ module.exports = {
|
|
|
46
57
|
"brace-style": "off",
|
|
47
58
|
"@typescript-eslint/brace-style": [
|
|
48
59
|
"error",
|
|
49
|
-
"
|
|
50
|
-
{ allowSingleLine:
|
|
60
|
+
"1tbs",
|
|
61
|
+
{ allowSingleLine: false },
|
|
51
62
|
],
|
|
52
63
|
"comma-dangle": "off",
|
|
53
64
|
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
|
|
@@ -125,7 +136,7 @@ module.exports = {
|
|
|
125
136
|
|
|
126
137
|
// Common
|
|
127
138
|
semi: ["error", "always"],
|
|
128
|
-
curly: ["error"],
|
|
139
|
+
curly: ["error", "all"],
|
|
129
140
|
quotes: ["error", "single"],
|
|
130
141
|
"quote-props": ["error", "consistent-as-needed"],
|
|
131
142
|
|
|
@@ -262,17 +273,6 @@ module.exports = {
|
|
|
262
273
|
"import/no-named-as-default": "off",
|
|
263
274
|
"import/namespace": "off",
|
|
264
275
|
|
|
265
|
-
"sort-imports": [
|
|
266
|
-
"error",
|
|
267
|
-
{
|
|
268
|
-
ignoreCase: false,
|
|
269
|
-
ignoreDeclarationSort: true,
|
|
270
|
-
ignoreMemberSort: false,
|
|
271
|
-
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
|
|
272
|
-
allowSeparatedGroups: false,
|
|
273
|
-
},
|
|
274
|
-
],
|
|
275
|
-
|
|
276
276
|
// yml
|
|
277
277
|
"yml/quotes": ["error", { prefer: "single", avoidEscape: false }],
|
|
278
278
|
"yml/no-empty-document": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/eslint-config-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "ESLint config of lenne.Tech for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -17,19 +17,21 @@
|
|
|
17
17
|
"eslint": ">=7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"eslint-plugin
|
|
21
|
-
"eslint
|
|
22
|
-
"eslint-
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "6.7.0",
|
|
21
|
+
"@typescript-eslint/parser": "6.7.0",
|
|
22
|
+
"eslint-config-prettier": "9.0.0",
|
|
23
23
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
24
|
-
"eslint-plugin-
|
|
25
|
-
"eslint-plugin-
|
|
26
|
-
"eslint-plugin-markdown": "3.0.
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"eslint-
|
|
24
|
+
"eslint-plugin-import": "2.28.1",
|
|
25
|
+
"eslint-plugin-jsonc": "2.9.0",
|
|
26
|
+
"eslint-plugin-markdown": "3.0.1",
|
|
27
|
+
"eslint-plugin-no-only-tests": "3.1.0",
|
|
28
|
+
"eslint-plugin-perfectionist": "^2.4.2",
|
|
29
|
+
"eslint-plugin-unused-imports": "3.0.0",
|
|
30
|
+
"eslint-plugin-yml": "1.9.0",
|
|
31
|
+
"functions-have-names": "1.2.3"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
|
-
"eslint": "8.
|
|
34
|
+
"eslint": "8.49.0",
|
|
33
35
|
"watch": "1.0.2"
|
|
34
36
|
}
|
|
35
37
|
}
|