Skip to content

Commit 5b06080

Browse files
♻️ refactor: Simplify ESLint config by extending shared settings
1 parent 9453b9f commit 5b06080

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1 @@
1-
const config = require('@lobehub/lint').eslint;
2-
3-
config.rules['unicorn/no-negated-condition'] = 0;
4-
config.rules['unicorn/prefer-type-error'] = 0;
5-
config.rules['unicorn/prefer-logical-operator-over-ternary'] = 0;
6-
config.rules['unicorn/no-null'] = 0;
7-
config.rules['unicorn/no-typeof-undefined'] = 0;
8-
config.rules['unicorn/explicit-length-check'] = 0;
9-
config.rules['unicorn/prefer-code-point'] = 0;
10-
config.rules['no-extra-boolean-cast'] = 0;
11-
config.rules['unicorn/no-useless-undefined'] = 0;
12-
config.rules['react/no-unknown-property'] = 0;
13-
config.rules['unicorn/prefer-ternary'] = 0;
14-
config.rules['unicorn/prefer-spread'] = 0;
15-
config.rules['unicorn/catch-error-name'] = 0;
16-
config.rules['unicorn/no-array-for-each'] = 0;
17-
config.rules['unicorn/prefer-number-properties'] = 0;
18-
config.rules['unicorn/prefer-query-selector'] = 0;
19-
config.rules['unicorn/no-array-callback-reference'] = 0;
20-
config.rules['unicorn/prefer-top-level-await'] = 0;
21-
22-
module.exports = config;
1+
module.exports = require('@lobehub/lint').eslint;

0 commit comments

Comments
 (0)