@nighttrax/eslint-config-ts 8.0.3 → 10.0.0-alpha.1
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/CHANGELOG.md +12 -0
- package/README.md +5 -0
- package/index.js +3 -53
- package/package.json +16 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.0.4](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@8.0.3...@nighttrax/eslint-config-ts@8.0.4) (2021-02-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **deps:** update dependency eslint-import-resolver-typescript to ~2.4.0 ([65807d7](https://github.com/NiGhTTraX/eslint-config/commit/65807d750abe14b88db67f7443e16559f0a2f6a3))
|
|
12
|
+
* **deps:** update typescript-eslint monorepo to ~4.15.0 ([009d41f](https://github.com/NiGhTTraX/eslint-config/commit/009d41f82719f85da9784b32b54b48dbe37dcc27))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [8.0.3](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@8.0.2...@nighttrax/eslint-config-ts@8.0.3) (2021-01-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @nighttrax/eslint-config-ts
|
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1,61 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
require("@rushstack/eslint-patch/modern-module-resolution");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
extends: [
|
|
5
|
-
"@nighttrax/eslint-config-base",
|
|
6
|
-
// This disables all stylistic rules from the above.
|
|
7
|
-
"prettier/@typescript-eslint",
|
|
8
|
-
],
|
|
9
|
-
|
|
10
|
-
parser: "@typescript-eslint/parser",
|
|
11
|
-
|
|
12
|
-
plugins: ["@typescript-eslint"],
|
|
4
|
+
extends: ["@nighttrax/eslint-config-base"],
|
|
13
5
|
|
|
14
6
|
settings: {
|
|
15
7
|
"import/parsers": {
|
|
16
|
-
"@typescript-eslint/parser": [".ts"
|
|
17
|
-
},
|
|
18
|
-
"import/resolver": {
|
|
19
|
-
// use <root>/tsconfig.json
|
|
20
|
-
typescript: {},
|
|
8
|
+
"@typescript-eslint/parser": [".ts"],
|
|
21
9
|
},
|
|
22
10
|
},
|
|
23
|
-
|
|
24
|
-
rules: {
|
|
25
|
-
// ESLint doesn't understand interfaces yet and marks them as undefined.
|
|
26
|
-
"no-undef": "off",
|
|
27
|
-
|
|
28
|
-
// These core rules don't work well on TS code, use the ones from the plugin instead.
|
|
29
|
-
"no-unused-vars": "off",
|
|
30
|
-
"no-shadow": "off",
|
|
31
|
-
"no-redeclare": "off",
|
|
32
|
-
|
|
33
|
-
// This is noisy while refactoring.
|
|
34
|
-
"@typescript-eslint/no-unused-vars": [
|
|
35
|
-
"error",
|
|
36
|
-
{
|
|
37
|
-
// Allow `let { ignored, ...rest} = foo`.
|
|
38
|
-
ignoreRestSiblings: true,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
|
|
42
|
-
// Allow `constructor(private foo: number) {}`
|
|
43
|
-
"no-useless-constructor": "off",
|
|
44
|
-
"no-empty-function": [
|
|
45
|
-
"error",
|
|
46
|
-
{
|
|
47
|
-
allow: ["constructors"],
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
overrides: [
|
|
53
|
-
{
|
|
54
|
-
files: testOverrides.files,
|
|
55
|
-
rules: {
|
|
56
|
-
// Re-apply this override because we've customized the error above.
|
|
57
|
-
"no-empty-function": "off",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nighttrax/eslint-config-ts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-alpha.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,17 +21,24 @@
|
|
|
21
21
|
"test": "../../test.sh mugshot ts"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@nighttrax/eslint-config-base": "^
|
|
25
|
-
"@
|
|
26
|
-
"@typescript-eslint/
|
|
27
|
-
"eslint
|
|
24
|
+
"@nighttrax/eslint-config-base": "^9.0.0-alpha.1",
|
|
25
|
+
"@rushstack/eslint-patch": "~1.1.0",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "~5.8.0",
|
|
27
|
+
"@typescript-eslint/parser": "~5.8.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"
|
|
28
34
|
},
|
|
29
35
|
"peerDependencies": {
|
|
30
|
-
"eslint": "^
|
|
36
|
+
"eslint": "^8.5.0",
|
|
37
|
+
"typescript": "^4.0.2"
|
|
31
38
|
},
|
|
32
39
|
"devDependencies": {
|
|
33
|
-
"eslint": "
|
|
34
|
-
"typescript": "
|
|
40
|
+
"eslint": "~8.5.0",
|
|
41
|
+
"typescript": "~4.0.2"
|
|
35
42
|
},
|
|
36
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d7d63a5a1b5b84ab083ac7a061cf2455b5f486c0"
|
|
37
44
|
}
|