-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
50 lines (45 loc) · 1.16 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ["**/*.{js,mjs,cjs,ts}"],
},
{
languageOptions: { globals: globals.node },
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"indent": ["error", 2],
"quotes": ["error", "double"],
"comma-style": ["error", "last"],
"comma-spacing": ["error", {
"before": false,
"after": true,
}],
"no-multi-spaces": "error",
"semi-spacing": ["error", {
"before": false,
"after": true,
}],
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxEOF": 1,
"maxBOF": 0,
}],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
],
"curly": ["error", "multi-or-nest"],
"comma-dangle": ["error", "always-multiline"],
"no-trailing-spaces": "error",
"eol-last": "error",
},
},
];