forked from ashutosh1919/masterPortfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
59 lines (58 loc) · 1.42 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
50
51
52
53
54
55
56
57
58
59
import eslint from "@eslint/js";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsparser from "@typescript-eslint/parser";
import reactPlugin from "eslint-plugin-react";
import reactHooksPlugin from "eslint-plugin-react-hooks";
export default [
eslint.configs.recommended,
{
files: ["**/*.{js,jsx,ts,tsx}"],
plugins: {
"@typescript-eslint": tseslint,
react: reactPlugin,
"react-hooks": reactHooksPlugin,
},
languageOptions: {
parser: tsparser,
ecmaVersion: "latest",
sourceType: "module",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
browser: true,
es2021: true,
node: true,
jest: true,
window: true,
setTimeout: true,
clearTimeout: true,
console: true,
process: true,
describe: true,
test: true,
expect: true,
it: true,
beforeEach: true,
afterEach: true,
beforeAll: true,
afterAll: true,
},
},
settings: {
react: {
version: "detect",
},
},
rules: {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
},
},
];