@whitetrefoil/eslint-config 0.28.0 → 0.28.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/README.md CHANGED
@@ -86,6 +86,11 @@ See Also
86
86
  Changelog
87
87
  ---------
88
88
 
89
+ ## v0.28.1
90
+
91
+ * disable eslint-dependencies for node proj;
92
+ * un-ban `{}` for TS 4.8;
93
+
89
94
  ### v0.28.0
90
95
 
91
96
  * disable `default-case`, enable `@typescript-eslint/switch-exhaustiveness-check`;
package/node.js CHANGED
@@ -4,18 +4,6 @@ module.exports = {
4
4
  ],
5
5
 
6
6
  overrides: [
7
- {
8
- files : [
9
- 'src/**/*.ts',
10
- ],
11
- excludedFiles: [
12
- 'src/**/*.spec.ts',
13
- ],
14
- extends: [
15
- './rules/dependencies',
16
- ],
17
- },
18
-
19
7
  {
20
8
  files: [
21
9
  'src/**/*.spec.ts',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitetrefoil/eslint-config",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "author": "WhiteTrefoil <whitetrefoil@gmail.com>",
5
5
  "license": "Unlicense",
6
6
  "engines": {
@@ -11,26 +11,26 @@
11
11
  "rules"
12
12
  ],
13
13
  "dependencies": {
14
- "eslint": "^8.10.0",
14
+ "eslint": "^8.22.0",
15
15
  "eslint-plugin-implicit-dependencies": "^1.1.1"
16
16
  },
17
17
  "devDependencies": {
18
- "@typescript-eslint/eslint-plugin": "^5.13.0",
19
- "@typescript-eslint/parser": "^5.13.0",
18
+ "@typescript-eslint/eslint-plugin": "^5.35.1",
19
+ "@typescript-eslint/parser": "^5.35.1",
20
20
  "eslint-plugin-node": "^11.1.0",
21
- "eslint-plugin-react": "^7.29.2",
22
- "eslint-plugin-react-hooks": "^4.3.0",
23
- "eslint-plugin-vue": "^8.5.0",
24
- "typescript": "^4.6.2"
21
+ "eslint-plugin-react": "^7.31.0",
22
+ "eslint-plugin-react-hooks": "^4.6.0",
23
+ "eslint-plugin-vue": "^9.4.0",
24
+ "typescript": "^4.8.2"
25
25
  },
26
26
  "peerDependencies": {
27
- "@typescript-eslint/eslint-plugin": "^5.13.0",
28
- "@typescript-eslint/parser": "^5.13.0",
27
+ "@typescript-eslint/eslint-plugin": "^5.35.1",
28
+ "@typescript-eslint/parser": "^5.35.1",
29
29
  "eslint-plugin-node": "^11.1.0",
30
- "eslint-plugin-react": "^7.29.2",
31
- "eslint-plugin-react-hooks": "^4.3.0",
32
- "eslint-plugin-vue": "^8.5.0",
33
- "typescript": "^4.6.2"
30
+ "eslint-plugin-react": "^7.31.0",
31
+ "eslint-plugin-react-hooks": "^4.6.0",
32
+ "eslint-plugin-vue": "^9.4.0",
33
+ "typescript": "^4.8.2"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@typescript-eslint/eslint-plugin": {
package/rules/ts-types.js CHANGED
@@ -1,4 +1,4 @@
1
- // Rules up to v5.13.0
1
+ // Rules up to v5.24.0
2
2
  // @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md
3
3
 
4
4
  // These are rules need type info which will be much slower
package/rules/ts.js CHANGED
@@ -1,4 +1,4 @@
1
- // Rules up to v5.13.0
1
+ // Rules up to v5.24.0
2
2
  // @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md
3
3
 
4
4
  // These are rules don't need type info
@@ -16,7 +16,15 @@ module.exports = {
16
16
  '@typescript-eslint/array-type' : [1, { default: 'array-simple' }],
17
17
  '@typescript-eslint/ban-ts-comment' : [1],
18
18
  '@typescript-eslint/ban-tslint-comment' : [1],
19
- '@typescript-eslint/ban-types' : [2],
19
+ '@typescript-eslint/ban-types' : [
20
+ 2,
21
+ {
22
+ types : {
23
+ '{}': false,
24
+ },
25
+ extendDefaults: true,
26
+ },
27
+ ],
20
28
  '@typescript-eslint/class-literal-property-style' : [0],
21
29
  '@typescript-eslint/consistent-indexed-object-style': [0],
22
30
  '@typescript-eslint/consistent-type-assertions' : [
@@ -28,7 +36,8 @@ module.exports = {
28
36
  ],
29
37
  '@typescript-eslint/consistent-type-definitions' : [0],
30
38
  '@typescript-eslint/consistent-type-imports' : [
31
- 2, {
39
+ 2,
40
+ {
32
41
  prefer : 'type-imports',
33
42
  disallowTypeAnnotations: false,
34
43
  },