@plugjs/eslint-plugin 0.1.19 → 0.1.21
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/configs/typescript.cjs +8 -4
- package/package.json +2 -2
package/configs/typescript.cjs
CHANGED
|
@@ -106,12 +106,13 @@ module.exports = {
|
|
|
106
106
|
'valid-jsdoc': [ 'off' ], // nope as well!
|
|
107
107
|
|
|
108
108
|
// TypeScript sanity
|
|
109
|
-
'@typescript-eslint/consistent-type-imports': 'error',
|
|
109
|
+
'@typescript-eslint/consistent-type-imports': [ 'error' ],
|
|
110
110
|
'@typescript-eslint/no-unused-vars': [ 'error' ],
|
|
111
111
|
'@typescript-eslint/no-dupe-class-members': [ 'error' ],
|
|
112
112
|
'@typescript-eslint/no-invalid-this': [ 'error' ],
|
|
113
113
|
'@typescript-eslint/no-floating-promises': [ 'error' ],
|
|
114
114
|
'@typescript-eslint/explicit-function-return-type': [ 'error', {
|
|
115
|
+
'allowExpressions': true,
|
|
115
116
|
'allowDirectConstAssertionInArrowFunctions': true,
|
|
116
117
|
'allowConciseArrowFunctionExpressionsStartingWithVoid': true,
|
|
117
118
|
} ],
|
|
@@ -157,11 +158,14 @@ module.exports = {
|
|
|
157
158
|
'no-invalid-this': [ 'error' ],
|
|
158
159
|
|
|
159
160
|
// Turn off specific TypeScript rules
|
|
160
|
-
'@typescript-eslint/
|
|
161
|
+
'@typescript-eslint/consistent-type-imports': [ 'off' ],
|
|
162
|
+
'@typescript-eslint/explicit-function-return-type': [ 'off' ],
|
|
163
|
+
'@typescript-eslint/indent': [ 'off' ],
|
|
161
164
|
'@typescript-eslint/no-dupe-class-members': [ 'off' ],
|
|
162
|
-
'@typescript-eslint/no-invalid-this': [ 'off' ],
|
|
163
165
|
'@typescript-eslint/no-floating-promises': [ 'off' ],
|
|
164
|
-
'@typescript-eslint/
|
|
166
|
+
'@typescript-eslint/no-invalid-this': [ 'off' ],
|
|
167
|
+
'@typescript-eslint/no-unused-vars': [ 'off' ],
|
|
168
|
+
'@typescript-eslint/space-before-function-paren': [ 'off' ],
|
|
165
169
|
},
|
|
166
170
|
}, {
|
|
167
171
|
files: [ 'src/**' ],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/eslint-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Shared ESLint configurations and extras",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"author": "Team Juit <developers@juit.com>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"eslint-config-google": "^0.14.0",
|
|
17
17
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
18
18
|
"eslint-plugin-import": "^2.29.1",
|
|
19
|
-
"eslint-plugin-unicorn": "^
|
|
19
|
+
"eslint-plugin-unicorn": "^52.0.0"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"*.md",
|