@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 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
@@ -1,3 +1,8 @@
1
+ ## Intro
2
+
3
+ My ESLint config for TS projects. It uses https://www.npmjs.com/package/@rushstack/eslint-patch to bundle all necessary plugins.
4
+
5
+
1
6
  ## Install
2
7
 
3
8
  ```sh
package/index.js CHANGED
@@ -1,61 +1,11 @@
1
- const testOverrides = require("@nighttrax/eslint-config-base/tests.js");
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", ".tsx"],
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": "8.0.3",
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": "^7.1.0",
25
- "@typescript-eslint/eslint-plugin": "~4.12.0",
26
- "@typescript-eslint/parser": "~4.12.0",
27
- "eslint-import-resolver-typescript": "~2.3.0"
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": "^7.0.0"
36
+ "eslint": "^8.5.0",
37
+ "typescript": "^4.0.2"
31
38
  },
32
39
  "devDependencies": {
33
- "eslint": "^7.0.0",
34
- "typescript": "^4.0.0"
40
+ "eslint": "~8.5.0",
41
+ "typescript": "~4.0.2"
35
42
  },
36
- "gitHead": "cfb975ace7139c8c267665acbaccf3fc2e129cc8"
43
+ "gitHead": "d7d63a5a1b5b84ab083ac7a061cf2455b5f486c0"
37
44
  }