-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
33 lines (29 loc) · 1.16 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
// @ts-check
import stylistic from "@stylistic/eslint-plugin";
import perfectionist from "eslint-plugin-perfectionist";
import tseslint from "typescript-eslint";
export default tseslint.config(
perfectionist.configs["recommended-natural"],
tseslint.configs.eslintRecommended,
tseslint.configs.stylistic,
tseslint.configs.strict,
{
plugins: {
"@stylistic": stylistic,
},
rules: {
"@stylistic/comma-dangle": ["warn", "always-multiline"],
"@stylistic/dot-location": ["error", "property"],
"@stylistic/indent": ["error", 4],
"@stylistic/operator-linebreak": ["error", "before"],
"@stylistic/quote-props": ["error", "consistent", { keywords: true }],
"@stylistic/quotes": ["error", "double"],
"@stylistic/semi": ["error", "always"],
"@stylistic/space-unary-ops": "error",
"@stylistic/wrap-iife": ["error", "inside"],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": "error",
"no-else-return": ["error", { allowElseIf: true }],
},
},
);