@w5s/eslint-config 3.8.0 → 3.11.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/dist/index.d.ts +965 -231
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -13
- package/dist/index.js.map +1 -1
- package/package.json +8 -9
- package/src/config/unicorn.ts +1 -12
- package/src/typegen/unicorn.d.ts +999 -232
- package/src/typegen/yml.d.ts +10 -0
package/src/config/unicorn.ts
CHANGED
|
@@ -21,21 +21,11 @@ export async function unicorn(options: unicorn.Options = {}) {
|
|
|
21
21
|
name: 'w5s/unicorn/rules',
|
|
22
22
|
files,
|
|
23
23
|
rules: {
|
|
24
|
-
...(recommended
|
|
24
|
+
...(recommended && unicornPlugin.configs['unopinionated'].rules),
|
|
25
25
|
// Disabled for safety
|
|
26
|
-
'unicorn/consistent-destructuring': 'off',
|
|
27
|
-
'unicorn/consistent-function-scoping': 'off', // Too many false positive
|
|
28
|
-
'unicorn/filename-case': 'off',
|
|
29
|
-
'unicorn/import-index': 'off', // Not playing well with ES Module
|
|
30
26
|
'unicorn/new-for-builtins': 'off', // error, @see https://github.com/sindresorhus/eslint-plugin-unicorn/issues/122
|
|
31
|
-
'unicorn/no-array-callback-reference': 'off', // Many false positive reported
|
|
32
|
-
'unicorn/no-array-for-each': 'off', // This rule could change browser compatibility
|
|
33
27
|
'unicorn/no-array-method-this-argument': 'off', // Many false positive reported
|
|
34
|
-
'unicorn/no-array-reduce': 'off', // Array#reduce can be used
|
|
35
28
|
'unicorn/no-console-spaces': 'off',
|
|
36
|
-
'unicorn/no-fn-reference-in-iterator': 'off', // error ?
|
|
37
|
-
'unicorn/no-nested-ternary': 'off',
|
|
38
|
-
'unicorn/no-null': 'off', // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/612
|
|
39
29
|
'unicorn/no-object-as-default-parameter': 'off',
|
|
40
30
|
'unicorn/no-process-exit': 'off',
|
|
41
31
|
'unicorn/no-unreadable-array-destructuring': 'off',
|
|
@@ -43,7 +33,6 @@ export async function unicorn(options: unicorn.Options = {}) {
|
|
|
43
33
|
'unicorn/prefer-add-event-listener': 'off',
|
|
44
34
|
'unicorn/prefer-default-parameters': 'off',
|
|
45
35
|
'unicorn/prefer-set-has': 'off',
|
|
46
|
-
'unicorn/prevent-abbreviations': 'off', // This rule is so dangerous : it potentially break code while fixing in many cases !!
|
|
47
36
|
'unicorn/throw-new-error': 'off', // Creating errors with call signature is OK
|
|
48
37
|
...(stylisticEnabled ? {} : {}),
|
|
49
38
|
...rules,
|