-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
33 lines (32 loc) · 1.21 KB
/
eslint.config.js
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
31
32
33
const globals = require("globals");
const eslintjs = require("@eslint/js");
module.exports = [
eslintjs.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: globals.node
},
rules: {
"no-undef": "error",
"semi": "error",
"space-infix-ops": "error",
"quotes": ["error", "double", {allowTemplateLiterals: true}],
"no-console": "off",
"no-shadow": ["warn", {builtinGlobals: false, hoist: "functions", allow: []}],
"no-redeclare": ["error", {builtinGlobals: true}],
"brace-style": ["error", "stroustrup", {allowSingleLine: true}],
"keyword-spacing": "error",
"no-else-return": "error",
"curly": ["error", "multi-line", "consistent"],
"dot-notation": "error",
"yoda": "error",
"linebreak-style": ["error", "windows"],
"quote-props": ["error", "consistent-as-needed", {keywords: true}],
"object-curly-spacing": ["error", "never", {objectsInObjects: false}],
"no-var": "error",
"prefer-const": "error"
},
}
];