@frontify/eslint-config-basic 0.19.0-next.3 → 0.19.0-next.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/index.js +12 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -63,15 +63,13 @@ module.exports = {
|
|
|
63
63
|
// the standard eslint rule for unused variables and use the @typescript-eslint rule instead.
|
|
64
64
|
// See here: https://typescript-eslint.io/rules/no-unused-vars/
|
|
65
65
|
'no-unused-vars': 'off',
|
|
66
|
-
'@typescript-eslint/no-unused-vars': 'error',
|
|
66
|
+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
67
67
|
|
|
68
68
|
// Allow overload of functions: https://typescript-eslint.io/rules/no-dupe-class-members/
|
|
69
69
|
'no-dupe-class-members': 'off',
|
|
70
70
|
'@typescript-eslint/no-dupe-class-members': 'error',
|
|
71
71
|
|
|
72
72
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
73
|
-
'no-throw-literal': 'off',
|
|
74
|
-
'@typescript-eslint/no-throw-literal': 'error',
|
|
75
73
|
'no-implied-eval': 'off',
|
|
76
74
|
'@typescript-eslint/no-implied-eval': 'error',
|
|
77
75
|
'dot-notation': 'off',
|
|
@@ -87,9 +85,8 @@ module.exports = {
|
|
|
87
85
|
'@typescript-eslint/restrict-plus-operands': 'error',
|
|
88
86
|
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
89
87
|
'@typescript-eslint/unbound-method': 'off',
|
|
90
|
-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
91
88
|
'@typescript-eslint/consistent-type-imports': [
|
|
92
|
-
'
|
|
89
|
+
'error',
|
|
93
90
|
{ prefer: 'type-imports', fixStyle: 'inline-type-imports' },
|
|
94
91
|
],
|
|
95
92
|
'@typescript-eslint/no-misused-promises': [2, { checksVoidReturn: { attributes: false } }],
|
|
@@ -216,6 +213,14 @@ module.exports = {
|
|
|
216
213
|
'*.spec.tsx',
|
|
217
214
|
'*.spec.js',
|
|
218
215
|
'*.spec.jsx',
|
|
216
|
+
'*.spec.cy.ts',
|
|
217
|
+
'*.spec.cy.tsx',
|
|
218
|
+
'*.spec.cy.js',
|
|
219
|
+
'*.spec.cy.jsx',
|
|
220
|
+
'*.spec.ct.ts',
|
|
221
|
+
'*.spec.ct.tsx',
|
|
222
|
+
'*.spec.ct.js',
|
|
223
|
+
'*.spec.ct.jsx',
|
|
219
224
|
],
|
|
220
225
|
rules: {
|
|
221
226
|
'no-unused-expressions': 'off',
|
|
@@ -248,16 +253,12 @@ module.exports = {
|
|
|
248
253
|
// Eslint prettier
|
|
249
254
|
'prettier/prettier': 'error',
|
|
250
255
|
'arrow-body-style': 'off', // Problematic with Prettier
|
|
251
|
-
'prefer-arrow-callback': 'off', // Problematic with Prettier
|
|
252
256
|
|
|
253
257
|
// Eslint (base)
|
|
254
258
|
'linebreak-style': ['error', 'unix'],
|
|
255
259
|
'prefer-template': 'error',
|
|
256
260
|
'template-curly-spacing': 'error',
|
|
257
|
-
'no-useless-concat': 'error',
|
|
258
|
-
'prefer-arrow-callback': 'error',
|
|
259
261
|
'no-var': 'error',
|
|
260
|
-
'prefer-const': 'error',
|
|
261
262
|
eqeqeq: 'error',
|
|
262
263
|
'no-eval': 'error',
|
|
263
264
|
'no-extra-bind': 'error',
|
|
@@ -279,9 +280,7 @@ module.exports = {
|
|
|
279
280
|
'no-case-declarations': 'error',
|
|
280
281
|
'no-multi-spaces': 'error',
|
|
281
282
|
'no-multi-str': 'error',
|
|
282
|
-
'no-with': 'error',
|
|
283
283
|
'no-void': 'error',
|
|
284
|
-
'no-useless-escape': 'off',
|
|
285
284
|
'no-invalid-this': 'error',
|
|
286
285
|
'require-await': 'off',
|
|
287
286
|
'no-return-assign': 'off',
|
|
@@ -349,6 +348,8 @@ module.exports = {
|
|
|
349
348
|
'import/exports-last': 'off',
|
|
350
349
|
'import/no-namespace': 'off',
|
|
351
350
|
'import/extensions': 'off',
|
|
351
|
+
'import/namespace': 'off',
|
|
352
|
+
'import/default': 'off',
|
|
352
353
|
'import/order': [
|
|
353
354
|
'error',
|
|
354
355
|
{
|