@nighttrax/eslint-config-ts 9.0.0
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 +50 -0
- package/README.md +17 -0
- package/index.js +57 -0
- package/package.json +37 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
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
|
+
|
|
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)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @nighttrax/eslint-config-ts
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [8.0.2](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@8.0.1...@nighttrax/eslint-config-ts@8.0.2) (2021-01-11)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **ts:** Disable flaky no-redeclare core rule ([1fad70d](https://github.com/NiGhTTraX/eslint-config/commit/1fad70dc60c5486cf03ea7a8b2a6efae813fafe6))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [8.0.1](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@8.0.0...@nighttrax/eslint-config-ts@8.0.1) (2021-01-08)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **ts:** Ignore unused rest siblings ([064e4bf](https://github.com/NiGhTTraX/eslint-config/commit/064e4bf802d0182afc71885d3f5de598b75d96ba))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# [8.0.0](https://github.com/NiGhTTraX/eslint-config/compare/@nighttrax/eslint-config-ts@8.0.0-alpha.0...@nighttrax/eslint-config-ts@8.0.0) (2021-01-07)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @nighttrax/eslint-config-ts
|
package/README.md
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const testOverrides = require("@nighttrax/eslint-config-base/tests.js");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
extends: ["@nighttrax/eslint-config-base"],
|
|
5
|
+
|
|
6
|
+
parser: "@typescript-eslint/parser",
|
|
7
|
+
|
|
8
|
+
plugins: ["@typescript-eslint"],
|
|
9
|
+
|
|
10
|
+
settings: {
|
|
11
|
+
"import/parsers": {
|
|
12
|
+
"@typescript-eslint/parser": [".ts", ".tsx"],
|
|
13
|
+
},
|
|
14
|
+
"import/resolver": {
|
|
15
|
+
// use <root>/tsconfig.json
|
|
16
|
+
typescript: {},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
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
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nighttrax/eslint-config-ts",
|
|
3
|
+
"version": "9.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "NiGhTTraX's ESLint config for TS libs",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"eslint",
|
|
10
|
+
"config",
|
|
11
|
+
"typescript"
|
|
12
|
+
],
|
|
13
|
+
"author": "Andrei Picus <NiGhTTraX@users.noreply.github.com>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"main": "index.js",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/NiGhTTraX/eslint-config.git"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "../../test.sh mugshot ts"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@nighttrax/eslint-config-base": "^8.0.0",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "~5.0.0",
|
|
26
|
+
"@typescript-eslint/parser": "~5.0.0",
|
|
27
|
+
"eslint-import-resolver-typescript": "~2.5.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"eslint": "^8.0.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"eslint": "^8.0.0",
|
|
34
|
+
"typescript": "^4.0.2"
|
|
35
|
+
},
|
|
36
|
+
"gitHead": "14a328d6e66b1f3b304cd6676340b3328da5536f"
|
|
37
|
+
}
|