-
Notifications
You must be signed in to change notification settings - Fork 6
/
eslint.config.js
49 lines (47 loc) · 1.13 KB
/
eslint.config.js
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
42
43
44
45
46
47
48
49
import jsESLint from "@eslint/js";
import react from "eslint-plugin-react";
import reactHooks from "eslint-plugin-react-hooks";
import eslintConfigPrettier from "eslint-config-prettier";
import tsESLint from "typescript-eslint";
import globals from "globals";
import { fixupPluginRules } from "@eslint/compat";
export default [
jsESLint.configs.recommended,
...tsESLint.configs.recommended,
eslintConfigPrettier,
{
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
ignores: [
"**/node_modules/",
"**/dist/",
"**/build/",
"**/public/",
"**/.husky/",
"**/.husky/",
"**/.github/",
"**/.vscode/",
"**/.cache/",
"**/dist",
],
plugins: {
react,
"react-hooks": fixupPluginRules(reactHooks),
},
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
},
},
rules: {
...reactHooks.configs.recommended.rules,
"no-console": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
},
},
];