-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
48 lines (47 loc) · 1.17 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
41
42
43
44
45
46
47
48
import eslint from "@eslint/js"
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
import tseslint from "typescript-eslint"
import reactPlugin from "eslint-plugin-react"
export default [
eslint.configs.recommended,
{
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
},
plugins: {
react: reactPlugin,
},
settings: {
react: {
version: "detect",
},
},
rules: {
...tseslint.configs.recommended.rules,
...reactPlugin.configs.recommended.rules,
"react/prop-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"no-undef": "off",
},
},
{
ignores: [
"**/node_modules/**",
"**/.cache/**",
"**/public/**",
"**/.gitignore",
],
},
eslintPluginPrettierRecommended,
]