@lenne.tech/eslint-config-ts 1.0.2 → 1.0.4
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 +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -12,8 +12,9 @@ import eslintcomments from "eslint-plugin-eslint-comments";
|
|
|
12
12
|
import noonlytests from "eslint-plugin-no-only-tests";
|
|
13
13
|
|
|
14
14
|
export default [
|
|
15
|
+
{ ignores: ["dist/", ".yalc/", "node_modules/", ".husky/", "extras/"] },
|
|
15
16
|
{
|
|
16
|
-
files: ["*.ts"],
|
|
17
|
+
files: ["*.ts", "*.js", "**/*.ts", "**/*.js"],
|
|
17
18
|
languageOptions: {
|
|
18
19
|
parser: tsParser,
|
|
19
20
|
},
|
|
@@ -67,7 +68,7 @@ export default [
|
|
|
67
68
|
"@stylistic/type-annotation-spacing": ["error", {}],
|
|
68
69
|
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
|
|
69
70
|
"@typescript-eslint/prefer-ts-expect-error": "error",
|
|
70
|
-
"@typescript-eslint/no-require-imports": "
|
|
71
|
+
"@typescript-eslint/no-require-imports": "warn",
|
|
71
72
|
// Override JS
|
|
72
73
|
"no-useless-constructor": "off",
|
|
73
74
|
"no-invalid-this": "off",
|
|
@@ -117,6 +118,8 @@ export default [
|
|
|
117
118
|
{ exceptAfterSingleLine: true },
|
|
118
119
|
],
|
|
119
120
|
|
|
121
|
+
"@typescript-eslint/no-unused-vars": "warn",
|
|
122
|
+
|
|
120
123
|
// off
|
|
121
124
|
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
122
125
|
"@typescript-eslint/naming-convention": "off",
|
|
@@ -132,7 +135,7 @@ export default [
|
|
|
132
135
|
"@typescript-eslint/ban-types": "off",
|
|
133
136
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
134
137
|
// handled by unused-imports/no-unused-imports
|
|
135
|
-
|
|
138
|
+
|
|
136
139
|
|
|
137
140
|
/**
|
|
138
141
|
* Basic
|