-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.ts
More file actions
32 lines (31 loc) · 1.2 KB
/
eslint.config.ts
File metadata and controls
32 lines (31 loc) · 1.2 KB
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
// @ts-check
import eslint from "@eslint/js"
import banRelativeImports from "eslint-plugin-ban-relative-imports"
import reactHooks from "eslint-plugin-react-hooks"
import globals from "globals"
import tseslint from "typescript-eslint"
export default tseslint.config([
{ignores: ["dist"]},
{
extends: [eslint.configs.recommended, tseslint.configs.recommended],
files: ["src/**/*.{ts,tsx}"],
languageOptions: {ecmaVersion: "latest", globals: globals.browser},
plugins: {
"react-hooks": reactHooks,
"ban-relative-imports": banRelativeImports
},
rules: {
...reactHooks.configs.recommended.rules,
"ban-relative-imports/ban-relative-imports": "error",
"func-style": ["error", "declaration"],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"sort-imports": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-async-promise-executor": "off",
"no-empty": "off",
"prefer-const": "off"
}
}
])