forked from andenacitelli/openapi-endpoint-trimmer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
41 lines (37 loc) · 1.36 KB
/
.eslintrc.cjs
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
const { defineConfig } = require("eslint-define-config");
module.exports = defineConfig(
{
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:unicorn/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint", "unused-imports", "simple-import-sort"],
rules: {
'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
],
// Temporary disables
"unicorn/prefer-logical-operator-over-ternary": "warn",
"unicorn/no-array-reduce": "warn",
"unicorn/no-nested-ternary": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"react/no-unescaped-entities": "off",
// simple-import-sort
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
// unused-imports
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
});