@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 +5 -0
- package/node.js +0 -12
- package/package.json +14 -14
- package/rules/ts-types.js +1 -1
- package/rules/ts.js +12 -3
package/README.md
CHANGED
package/node.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whitetrefoil/eslint-config",
|
|
3
|
-
"version": "0.28.
|
|
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.
|
|
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.
|
|
19
|
-
"@typescript-eslint/parser": "^5.
|
|
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.
|
|
22
|
-
"eslint-plugin-react-hooks": "^4.
|
|
23
|
-
"eslint-plugin-vue": "^
|
|
24
|
-
"typescript": "^4.
|
|
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.
|
|
28
|
-
"@typescript-eslint/parser": "^5.
|
|
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.
|
|
31
|
-
"eslint-plugin-react-hooks": "^4.
|
|
32
|
-
"eslint-plugin-vue": "^
|
|
33
|
-
"typescript": "^4.
|
|
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
package/rules/ts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Rules up to v5.
|
|
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' : [
|
|
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
|
},
|