-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
30 lines (29 loc) · 927 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export default [
{
ignores: ["node_modules", "dist"],
},
{
rules: {
"eqeqeq": ["error", "always"],
"curly": ["error", "all"],
"no-var": "error",
"prefer-const": "error",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-multi-spaces": "error",
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"space-before-blocks": "error",
"keyword-spacing": ["error", { "before": true, "after": true }],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"prefer-arrow-callback": "error",
"no-duplicate-imports": "error",
"no-restricted-imports": "off",
"no-async-promise-executor": "error",
"no-await-in-loop": "warn",
"consistent-return": "error",
"no-shadow": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }]
},
}
];