@nighttrax/eslint-config-ts 10.0.0-alpha.0 → 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.
Files changed (3) hide show
  1. package/README.md +5 -0
  2. package/index.js +2 -48
  3. package/package.json +13 -6
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,57 +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
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", ".tsx"],
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-alpha.0",
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": "^9.0.0-alpha.0",
24
+ "@nighttrax/eslint-config-base": "^9.0.0-alpha.1",
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"
28
34
  },
29
35
  "peerDependencies": {
30
- "eslint": "^8.5.0"
36
+ "eslint": "^8.5.0",
37
+ "typescript": "^4.0.2"
31
38
  },
32
39
  "devDependencies": {
33
40
  "eslint": "~8.5.0",
34
- "typescript": "^4.0.2"
41
+ "typescript": "~4.0.2"
35
42
  },
36
- "gitHead": "34df3f0c8abf8000b575d1e6dfb611d0b82107fd"
43
+ "gitHead": "d7d63a5a1b5b84ab083ac7a061cf2455b5f486c0"
37
44
  }