@lenne.tech/eslint-config-ts 1.0.5 → 1.0.7
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 +5 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -43,6 +43,7 @@ export default [
|
|
|
43
43
|
...markdown.configs["recommended"].rules,
|
|
44
44
|
|
|
45
45
|
"perfectionist/sort-classes": "off",
|
|
46
|
+
"perfectionist/sort-imports": "error",
|
|
46
47
|
|
|
47
48
|
"import/named": "off",
|
|
48
49
|
|
|
@@ -68,7 +69,7 @@ export default [
|
|
|
68
69
|
"@stylistic/type-annotation-spacing": ["error", {}],
|
|
69
70
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
70
71
|
"@typescript-eslint/prefer-ts-expect-error": "error",
|
|
71
|
-
"@typescript-eslint/no-require-imports": "
|
|
72
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
72
73
|
// Override JS
|
|
73
74
|
"no-useless-constructor": "off",
|
|
74
75
|
"no-invalid-this": "off",
|
|
@@ -119,6 +120,7 @@ export default [
|
|
|
119
120
|
],
|
|
120
121
|
|
|
121
122
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
123
|
+
"@typescript-eslint/no-unused-expressions": "warn",
|
|
122
124
|
|
|
123
125
|
// off
|
|
124
126
|
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
@@ -142,14 +144,11 @@ export default [
|
|
|
142
144
|
*/
|
|
143
145
|
// import
|
|
144
146
|
"import/order": "off", // Replaced by perfectionist/sort-imports
|
|
145
|
-
"import/first": "
|
|
147
|
+
"import/first": "off",
|
|
146
148
|
"import/no-mutable-exports": "error",
|
|
147
149
|
"import/no-unresolved": "off",
|
|
148
150
|
"import/no-absolute-path": "off",
|
|
149
|
-
"import/newline-after-import":
|
|
150
|
-
"error",
|
|
151
|
-
{ count: 1, considerComments: true },
|
|
152
|
-
],
|
|
151
|
+
"import/newline-after-import": 'off',
|
|
153
152
|
|
|
154
153
|
// Common
|
|
155
154
|
semi: ["error", "always"],
|