-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
40 lines (38 loc) · 1.3 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
// @ts-check
// noinspect JSCheckFunctionSignatures
import eslint from "@eslint/js";
import stylistic from "@stylistic/eslint-plugin";
import importSort from "eslint-plugin-simple-import-sort";
import tslint from "typescript-eslint";
export default tslint.config(
eslint.configs.recommended,
...tslint.configs.recommendedTypeChecked,
stylistic.configs["recommended-flat"],
{
ignores: ["node_modules", "build"],
plugins: {
"@stylistic": stylistic,
"simple-import-sort": importSort,
},
rules: {
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": ["error", "1tbs"],
"@stylistic/indent": ["error", 4],
"@stylistic/indent-binary-ops": ["error", 4],
"@stylistic/quotes": ["error", "double"],
"@stylistic/semi": ["error", "always"],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
parserOptions: {
projectService: {
allowDefaultProject: ["*.js", "*.mjs"],
},
tsconfigRootDir: import.meta.dirname,
},
},
},
);