@fullstacksjs/eslint-config 9.0.4 → 9.0.5
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/base.js +20 -0
- package/package.json +1 -1
- package/typescript.js +0 -19
package/base.js
CHANGED
|
@@ -219,5 +219,25 @@ module.exports = {
|
|
|
219
219
|
'valid-typeof': 'error',
|
|
220
220
|
'vars-on-top': 'error',
|
|
221
221
|
'yoda': 'error',
|
|
222
|
+
|
|
223
|
+
...(global.fullstacksjs?.typescript && {
|
|
224
|
+
'key-spacing': 'off',
|
|
225
|
+
'camelcase': 'off',
|
|
226
|
+
'default-param-last': 'off',
|
|
227
|
+
'init-declarations': 'off',
|
|
228
|
+
'lines-between-class-members': 'off',
|
|
229
|
+
'no-invalid-this': 'off',
|
|
230
|
+
'no-loop-func': 'off',
|
|
231
|
+
'no-redeclare': 'off',
|
|
232
|
+
'no-restricted-imports': 'off',
|
|
233
|
+
'no-shadow': 'off',
|
|
234
|
+
'no-unused-vars': 'off',
|
|
235
|
+
'no-use-before-define': 'off',
|
|
236
|
+
'no-useless-constructor': 'off',
|
|
237
|
+
'object-curly-spacing': 'off',
|
|
238
|
+
'padding-line-between-statements': 'off',
|
|
239
|
+
'space-before-blocks': 'off',
|
|
240
|
+
'dot-notation': 'off',
|
|
241
|
+
}),
|
|
222
242
|
},
|
|
223
243
|
};
|
package/package.json
CHANGED
package/typescript.js
CHANGED
|
@@ -158,27 +158,8 @@ module.exports = {
|
|
|
158
158
|
'@typescript-eslint/unified-signatures': 'error',
|
|
159
159
|
'@typescript-eslint/key-spacing': 'off',
|
|
160
160
|
|
|
161
|
-
// collisions
|
|
162
|
-
'key-spacing': 'off',
|
|
163
|
-
'camelcase': 'off',
|
|
164
|
-
'default-param-last': 'off',
|
|
165
|
-
'init-declarations': 'off',
|
|
166
|
-
'lines-between-class-members': 'off',
|
|
167
|
-
'no-invalid-this': 'off',
|
|
168
|
-
'no-loop-func': 'off',
|
|
169
|
-
'no-redeclare': 'off',
|
|
170
|
-
'no-restricted-imports': 'off',
|
|
171
|
-
'no-shadow': 'off',
|
|
172
|
-
'no-unused-vars': 'off',
|
|
173
|
-
'no-use-before-define': 'off',
|
|
174
|
-
'no-useless-constructor': 'off',
|
|
175
|
-
'object-curly-spacing': 'off',
|
|
176
|
-
'padding-line-between-statements': 'off',
|
|
177
|
-
'space-before-blocks': 'off',
|
|
178
|
-
|
|
179
161
|
// open issues
|
|
180
162
|
'react/jsx-no-useless-fragment': 'off', // Need useless-fragment for JSX return type
|
|
181
|
-
'dot-notation': 'off', // Need to have IndexSignaturePropertyAccess Typescript compiler option
|
|
182
163
|
},
|
|
183
164
|
},
|
|
184
165
|
],
|