-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
55 lines (55 loc) · 1.43 KB
/
.eslintrc
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
{
"root": true,
"extends": [
// DEMO TEAM CUSTOMIZATION - Remove the React plugin to avoid loading it twice
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:yaml/recommended",
// DEMO TEAM CUSTOMIZATION - Add Next.js (based on React) and Web core vitals validators
"next",
"next/core-web-vitals"
// END CUSTOMIZATION
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
// DEMO TEAM CUSTOMIZATION - Remove the React plugin to avoid loading it twice.
"prettier",
"yaml"
],
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"React": "writable"
},
"ignorePatterns": [".generated/**/*", "components/**/*.d.ts", "**/*.js"],
"rules": {
// Prevent missing props validation in a React component definition
"react/prop-types": "off",
// enable prettier
"prettier/prettier": ["error", {
"endOfLine":"auto"
}],
// needed for NextJS's in order to use jsx without react import
"react/react-in-jsx-scope": "off",
"no-unused-vars": "error",
"jsx-quotes": ["error", "prefer-double"],
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}