@lenne.tech/eslint-config-ts 0.0.10 → 0.0.13

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.
Files changed (2) hide show
  1. package/index.js +17 -15
  2. package/package.json +8 -7
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: {
@@ -17,6 +18,8 @@ module.exports = {
17
18
  },
18
19
  },
19
20
  rules: {
21
+ "perfectionist/sort-classes": "off",
22
+
20
23
  "import/named": "off",
21
24
 
22
25
  // TS
@@ -26,7 +29,17 @@ module.exports = {
26
29
  ],
27
30
  "@typescript-eslint/member-delimiter-style": [
28
31
  "error",
29
- { multiline: { delimiter: "none" } },
32
+ {
33
+ multiline: {
34
+ delimiter: "semi",
35
+ requireLast: true,
36
+ },
37
+ singleline: {
38
+ delimiter: "semi",
39
+ requireLast: false,
40
+ },
41
+ multilineDetection: "brackets",
42
+ },
30
43
  ],
31
44
  "@typescript-eslint/type-annotation-spacing": ["error", {}],
32
45
  "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
@@ -46,8 +59,8 @@ module.exports = {
46
59
  "brace-style": "off",
47
60
  "@typescript-eslint/brace-style": [
48
61
  "error",
49
- "stroustrup",
50
- { allowSingleLine: true },
62
+ "1tbs",
63
+ { allowSingleLine: false },
51
64
  ],
52
65
  "comma-dangle": "off",
53
66
  "@typescript-eslint/comma-dangle": ["error", "always-multiline"],
@@ -125,7 +138,7 @@ module.exports = {
125
138
 
126
139
  // Common
127
140
  semi: ["error", "always"],
128
- curly: ["error"],
141
+ curly: ["error", "all"],
129
142
  quotes: ["error", "single"],
130
143
  "quote-props": ["error", "consistent-as-needed"],
131
144
 
@@ -262,17 +275,6 @@ module.exports = {
262
275
  "import/no-named-as-default": "off",
263
276
  "import/namespace": "off",
264
277
 
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
278
  // yml
277
279
  "yml/quotes": ["error", { prefer: "single", avoidEscape: false }],
278
280
  "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.10",
3
+ "version": "0.0.13",
4
4
  "description": "ESLint config of lenne.Tech for TypeScript",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -17,16 +17,17 @@
17
17
  "eslint": ">=7.4.0"
18
18
  },
19
19
  "dependencies": {
20
- "eslint-plugin-no-only-tests": "3.1.0",
20
+ "@typescript-eslint/eslint-plugin": "6.7.0",
21
+ "@typescript-eslint/parser": "6.7.0",
22
+ "eslint-config-prettier": "9.0.0",
23
+ "eslint-plugin-eslint-comments": "3.2.0",
21
24
  "eslint-plugin-import": "2.28.1",
22
25
  "eslint-plugin-jsonc": "2.9.0",
23
- "eslint-plugin-eslint-comments": "3.2.0",
26
+ "eslint-plugin-markdown": "3.0.1",
27
+ "eslint-plugin-no-only-tests": "3.1.0",
28
+ "eslint-plugin-perfectionist": "^2.4.2",
24
29
  "eslint-plugin-unused-imports": "3.0.0",
25
30
  "eslint-plugin-yml": "1.9.0",
26
- "eslint-plugin-markdown": "3.0.1",
27
- "@typescript-eslint/eslint-plugin": "6.7.0",
28
- "@typescript-eslint/parser": "6.7.0",
29
- "eslint-config-prettier": "9.0.0",
30
31
  "functions-have-names": "1.2.3"
31
32
  },
32
33
  "devDependencies": {