-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (28 loc) · 1.11 KB
/
eslint.config.js
File metadata and controls
29 lines (28 loc) · 1.11 KB
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
const stylistic = require("@stylistic/eslint-plugin");
module.exports = [
{
"plugins": {
"@stylistic": stylistic,
},
"ignores": [
"node_modules/**",
"package.json",
"package-lock.json",
],
"rules": {
"@stylistic/indent": ["error", 4],
"@stylistic/semi": "error",
"@stylistic/quotes": ["error", "double"],
"@stylistic/comma-dangle": ["error", "always-multiline"],
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/max-len": ["error", { "code": 140 }],
"@stylistic/linebreak-style": ["error", "unix"],
"@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }],
"@stylistic/space-before-function-paren": ["error", { "anonymous": "always", "named": "always" }],
"@stylistic/space-in-parens": ["error", "never"],
"@stylistic/no-tabs": "error",
"@stylistic/no-trailing-spaces": "error",
},
},
];