@nighttrax/eslint-config-ts 10.0.0-alpha.0 → 10.0.0-beta.2
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/README.md +5 -0
- package/index.js +2 -48
- package/package.json +12 -8
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1,57 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
require("@rushstack/eslint-patch/modern-module-resolution");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
extends: ["@nighttrax/eslint-config-base"],
|
|
5
5
|
|
|
6
|
-
parser: "@typescript-eslint/parser",
|
|
7
|
-
|
|
8
|
-
plugins: ["@typescript-eslint"],
|
|
9
|
-
|
|
10
6
|
settings: {
|
|
11
7
|
"import/parsers": {
|
|
12
|
-
"@typescript-eslint/parser": [".ts"
|
|
13
|
-
},
|
|
14
|
-
"import/resolver": {
|
|
15
|
-
// use <root>/tsconfig.json
|
|
16
|
-
typescript: {},
|
|
8
|
+
"@typescript-eslint/parser": [".ts"],
|
|
17
9
|
},
|
|
18
10
|
},
|
|
19
|
-
|
|
20
|
-
rules: {
|
|
21
|
-
// ESLint doesn't understand interfaces yet and marks them as undefined.
|
|
22
|
-
"no-undef": "off",
|
|
23
|
-
|
|
24
|
-
// These core rules don't work well on TS code, use the ones from the plugin instead.
|
|
25
|
-
"no-unused-vars": "off",
|
|
26
|
-
"no-shadow": "off",
|
|
27
|
-
"no-redeclare": "off",
|
|
28
|
-
|
|
29
|
-
// This is noisy while refactoring.
|
|
30
|
-
"@typescript-eslint/no-unused-vars": [
|
|
31
|
-
"error",
|
|
32
|
-
{
|
|
33
|
-
// Allow `let { ignored, ...rest} = foo`.
|
|
34
|
-
ignoreRestSiblings: true,
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
|
|
38
|
-
// Allow `constructor(private foo: number) {}`
|
|
39
|
-
"no-useless-constructor": "off",
|
|
40
|
-
"no-empty-function": [
|
|
41
|
-
"error",
|
|
42
|
-
{
|
|
43
|
-
allow: ["constructors"],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
overrides: [
|
|
49
|
-
{
|
|
50
|
-
files: testOverrides.files,
|
|
51
|
-
rules: {
|
|
52
|
-
// Re-apply this override because we've customized the error above.
|
|
53
|
-
"no-empty-function": "off",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nighttrax/eslint-config-ts",
|
|
3
|
-
"version": "10.0.0-
|
|
3
|
+
"version": "10.0.0-beta.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,17 +21,21 @@
|
|
|
21
21
|
"test": "../../test.sh mugshot ts"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@nighttrax/eslint-config-base": "^9.0.0-
|
|
24
|
+
"@nighttrax/eslint-config-base": "^9.0.0-beta.2",
|
|
25
|
+
"@rushstack/eslint-patch": "~1.1.0",
|
|
25
26
|
"@typescript-eslint/eslint-plugin": "~5.8.0",
|
|
26
27
|
"@typescript-eslint/parser": "~5.8.0",
|
|
27
|
-
"eslint-import-resolver-typescript": "~2.5.0"
|
|
28
|
+
"eslint-import-resolver-typescript": "~2.5.0",
|
|
29
|
+
"eslint-plugin-import": "~2.25.3",
|
|
30
|
+
"eslint-plugin-jsx-a11y": "~6.5.1",
|
|
31
|
+
"eslint-plugin-prettier": "~4.0.0",
|
|
32
|
+
"eslint-plugin-react": "~7.28.0",
|
|
33
|
+
"eslint-plugin-react-hooks": "~4.3.0",
|
|
34
|
+
"prettier": "~2.5.1"
|
|
28
35
|
},
|
|
29
36
|
"peerDependencies": {
|
|
30
|
-
"eslint": "^8.5.0"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"eslint": "~8.5.0",
|
|
37
|
+
"eslint": "^8.5.0",
|
|
34
38
|
"typescript": "^4.0.2"
|
|
35
39
|
},
|
|
36
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "819e6f8417c5f53a8d494e59dc06d494950064f3"
|
|
37
41
|
}
|