@joshuaavalon/eslint-config-typescript 7.1.3 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +19 -16
- package/dist/cjs/index.js +18 -4
- package/dist/esm/index.js +18 -4
- package/package.json +4 -4
package/README.md
CHANGED
@@ -14,23 +14,26 @@ npm i -D eslint @joshuaavalon/eslint-config-typescript
|
|
14
14
|
```js
|
15
15
|
import globals from "globals";
|
16
16
|
import typescript from "typescript-eslint";
|
17
|
-
import
|
17
|
+
import jsConfig from "@joshuaavalon/eslint-config-javascript";
|
18
|
+
import tsConfig from "@joshuaavalon/eslint-config-typescript";
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
20
|
+
[
|
21
|
+
{
|
22
|
+
...tsConfig,
|
23
|
+
ignores: ["node_modules", "dist"],
|
24
|
+
files: ["**/*.ts"],
|
25
|
+
languageOptions: {
|
26
|
+
parser: typescript.parser,
|
27
|
+
parserOptions: {
|
28
|
+
project: true,
|
29
|
+
tsconfigDirName: import.meta.dirname
|
30
|
+
},
|
31
|
+
globals: {
|
32
|
+
...globals.node,
|
33
|
+
...globals.browser,
|
34
|
+
...globals.nodeBuiltin
|
35
|
+
}
|
33
36
|
}
|
34
37
|
}
|
35
|
-
|
38
|
+
];
|
36
39
|
```
|
package/dist/cjs/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
var typescript = require('typescript-eslint');
|
4
|
-
var
|
4
|
+
var jsConfig = require('@joshuaavalon/eslint-config-javascript');
|
5
5
|
|
6
6
|
/** @type {import("eslint").Linter.RulesRecord} */
|
7
7
|
const extensionRules = {
|
@@ -39,7 +39,21 @@ const extensionRules = {
|
|
39
39
|
|
40
40
|
/** @type {import("eslint").Linter.RulesRecord} */
|
41
41
|
const rules$1 = {
|
42
|
+
"constructor-super": "off",
|
43
|
+
"no-invalid-this": "off",
|
42
44
|
"no-undef": "off",
|
45
|
+
"no-const-assign": "off",
|
46
|
+
"no-this-before-super": "off",
|
47
|
+
"no-dupe-args": "off",
|
48
|
+
"no-unreachable": "off",
|
49
|
+
"getter-return": "off",
|
50
|
+
"no-dupe-keys": "off",
|
51
|
+
"no-func-assign": "off",
|
52
|
+
"no-dupe-class-members": "off",
|
53
|
+
"no-obj-calls": "off",
|
54
|
+
"no-setter-return": "off",
|
55
|
+
"no-unsafe-negation": "off",
|
56
|
+
"no-import-assign": "off",
|
43
57
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
44
58
|
"@typescript-eslint/array-type": "error",
|
45
59
|
"@typescript-eslint/await-thenable": "error",
|
@@ -166,14 +180,14 @@ const rules = {
|
|
166
180
|
"@stylistic/type-named-tuple-spacing": ["error"]
|
167
181
|
};
|
168
182
|
|
169
|
-
/** @type {import("eslint").Linter.
|
183
|
+
/** @type {import("eslint").Linter.Config} */
|
170
184
|
const config = {
|
171
185
|
plugins: {
|
172
|
-
...
|
186
|
+
...jsConfig.plugins,
|
173
187
|
"@typescript-eslint": typescript.plugin
|
174
188
|
},
|
175
189
|
rules: {
|
176
|
-
...
|
190
|
+
...jsConfig.rules,
|
177
191
|
...rules$1,
|
178
192
|
...rules
|
179
193
|
}
|
package/dist/esm/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import typescript from 'typescript-eslint';
|
2
|
-
import
|
2
|
+
import jsConfig from '@joshuaavalon/eslint-config-javascript';
|
3
3
|
|
4
4
|
/** @type {import("eslint").Linter.RulesRecord} */
|
5
5
|
const extensionRules = {
|
@@ -37,7 +37,21 @@ const extensionRules = {
|
|
37
37
|
|
38
38
|
/** @type {import("eslint").Linter.RulesRecord} */
|
39
39
|
const rules$1 = {
|
40
|
+
"constructor-super": "off",
|
41
|
+
"no-invalid-this": "off",
|
40
42
|
"no-undef": "off",
|
43
|
+
"no-const-assign": "off",
|
44
|
+
"no-this-before-super": "off",
|
45
|
+
"no-dupe-args": "off",
|
46
|
+
"no-unreachable": "off",
|
47
|
+
"getter-return": "off",
|
48
|
+
"no-dupe-keys": "off",
|
49
|
+
"no-func-assign": "off",
|
50
|
+
"no-dupe-class-members": "off",
|
51
|
+
"no-obj-calls": "off",
|
52
|
+
"no-setter-return": "off",
|
53
|
+
"no-unsafe-negation": "off",
|
54
|
+
"no-import-assign": "off",
|
41
55
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
42
56
|
"@typescript-eslint/array-type": "error",
|
43
57
|
"@typescript-eslint/await-thenable": "error",
|
@@ -164,14 +178,14 @@ const rules = {
|
|
164
178
|
"@stylistic/type-named-tuple-spacing": ["error"]
|
165
179
|
};
|
166
180
|
|
167
|
-
/** @type {import("eslint").Linter.
|
181
|
+
/** @type {import("eslint").Linter.Config} */
|
168
182
|
const config = {
|
169
183
|
plugins: {
|
170
|
-
...
|
184
|
+
...jsConfig.plugins,
|
171
185
|
"@typescript-eslint": typescript.plugin
|
172
186
|
},
|
173
187
|
rules: {
|
174
|
-
...
|
188
|
+
...jsConfig.rules,
|
175
189
|
...rules$1,
|
176
190
|
...rules
|
177
191
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@joshuaavalon/eslint-config-typescript",
|
3
|
-
"version": "
|
3
|
+
"version": "8.0.0",
|
4
4
|
"description": "Shareable ESLint Typescript config.",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/cjs/index.js",
|
@@ -34,10 +34,10 @@
|
|
34
34
|
"url": "https://github.com/joshuaavalon/eslint-config/issues"
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
|
-
"@joshuaavalon/eslint-config-javascript": "^
|
38
|
-
"typescript-eslint": "^
|
37
|
+
"@joshuaavalon/eslint-config-javascript": "^8.0.0",
|
38
|
+
"typescript-eslint": "^8.0.0-alpha.60"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
|
-
"eslint": "^8.
|
41
|
+
"eslint": "^9.8.0"
|
42
42
|
}
|
43
43
|
}
|