-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
41 lines (39 loc) · 1.02 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
import globals from "globals"
import stylistic from "@stylistic/eslint-plugin"
import js from "@eslint/js"
import ts from "typescript-eslint"
export default ts.config({
files: [
"src/**/*.ts",
"tests/**/*.ts",
],
ignores: ["src/vendor/**"],
extends: [
stylistic.configs["recommended-flat"],
js.configs.recommended,
...ts.configs.recommendedTypeChecked,
],
languageOptions: {
parser: ts.parser,
parserOptions: {
sourceType: "script",
project: true,
tsconfigRootDir: "."
},
globals: {
...globals.node
}
},
rules: {
"@stylistic/max-len": ["warn", { "code": 140 }],
"@stylistic/indent": ["warn", "tab"],
"@stylistic/no-tabs": "off",
"@stylistic/quotes": ["warn", "single"],
"@stylistic/semi": ["warn", "never"],
"@stylistic/comma-dangle": ["warn", "always-multiline"],
"@stylistic/brace-style": ["warn", "1tbs"],
"@stylistic/lines-between-class-members": "off",
"@typescript-eslint/no-floating-promises": ["error", { "ignoreVoid": true }],
"@typescript-eslint/require-await": "off",
}
})