forked from LiterateInk/Pawnote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
36 lines (36 loc) · 1.17 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
module.exports = [
{ // Apply to `cjs`, `.mjs` and `.js` files.
files: ["**/*.?([cm])js"]
},
{ // Apply to `cts`, `.mts` and `.ts` files.
files: ["**/*.?([cm])ts"],
languageOptions: {
parser: require("@typescript-eslint/parser"),
parserOptions: {
sourceType: "module"
}
}
},
{
ignores: ["dist/**"],
plugins: {
stylistic: require("@stylistic/eslint-plugin")
},
rules: {
"stylistic/indent": ["error", 2],
"stylistic/semi": ["error", "always"],
"stylistic/eol-last": ["error", "always"],
"stylistic/quotes": ["error", "double"],
"stylistic/dot-location": ["error", "property"],
"stylistic/array-bracket-spacing": ["error", "never"],
"stylistic/arrow-parens": ["error", "always"],
"stylistic/arrow-spacing": "error",
"stylistic/block-spacing": ["error", "always"],
"stylistic/brace-style": ["error", "stroustrup"],
"stylistic/comma-dangle": ["error", "never"],
"stylistic/comma-spacing": ["error", { before: false, after: true }],
"stylistic/function-call-spacing": ["error", "never"],
"stylistic/no-trailing-spaces": "error"
}
}
];