@fullstacksjs/eslint-config 6.5.3 → 6.6.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/package.json +3 -3
- package/rules/typescript.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0-0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"main": "index.js",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@frontendmonster/utils": "0.3.11",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "4.
|
|
39
|
-
"@typescript-eslint/parser": "4.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "4.32.0",
|
|
39
|
+
"@typescript-eslint/parser": "4.32.0",
|
|
40
40
|
"eslint-config-prettier": "8.3.0",
|
|
41
41
|
"eslint-import-resolver-typescript": "2.5.0",
|
|
42
42
|
"eslint-plugin-fp": "2.3.0",
|
package/rules/typescript.js
CHANGED
|
@@ -51,18 +51,20 @@ module.exports = {
|
|
|
51
51
|
'@typescript-eslint/no-magic-numbers': ['off', { ignoreEnums: true }], // Not good enough yet
|
|
52
52
|
'@typescript-eslint/no-misused-new': 'error',
|
|
53
53
|
'@typescript-eslint/no-namespace': 'error',
|
|
54
|
+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
54
55
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
55
56
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
56
57
|
'@typescript-eslint/no-parameter-properties': 'off',
|
|
57
58
|
'@typescript-eslint/no-redeclare': ['off', { ignoreDeclarationMerge: true }], // useful in FP.
|
|
58
59
|
'@typescript-eslint/no-require-imports': 'error',
|
|
60
|
+
'@typescript-eslint/no-restricted-imports': 'off',
|
|
59
61
|
'@typescript-eslint/no-shadow': 'error',
|
|
60
62
|
'@typescript-eslint/no-this-alias': 'error',
|
|
61
63
|
'@typescript-eslint/no-type-alias': 'off',
|
|
62
64
|
'@typescript-eslint/no-unnecessary-condition': 'off',
|
|
63
65
|
'@typescript-eslint/no-unnecessary-type-constraint': 'warn',
|
|
64
|
-
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
65
66
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
67
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
66
68
|
'@typescript-eslint/no-unsafe-call': 'off',
|
|
67
69
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
68
70
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
@@ -121,6 +123,7 @@ module.exports = {
|
|
|
121
123
|
},
|
|
122
124
|
],
|
|
123
125
|
'@typescript-eslint/strict-boolean-expressions': 'off', // Annoying
|
|
126
|
+
|
|
124
127
|
'@typescript-eslint/triple-slash-reference': 'error',
|
|
125
128
|
'@typescript-eslint/typedef': ['error', { parameter: false, arrowParameter: false, variableDeclaration: false }],
|
|
126
129
|
'@typescript-eslint/unified-signatures': 'error',
|
|
@@ -134,6 +137,7 @@ module.exports = {
|
|
|
134
137
|
'no-invalid-this': 'off',
|
|
135
138
|
'no-loop-func': 'off',
|
|
136
139
|
'no-redeclare': 'off',
|
|
140
|
+
'no-restricted-imports': 'off',
|
|
137
141
|
'no-shadow': 'off',
|
|
138
142
|
'no-unused-vars': 'off',
|
|
139
143
|
'no-use-before-define': 'off',
|