-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy path.eslintrc.js
More file actions
31 lines (31 loc) · 840 Bytes
/
.eslintrc.js
File metadata and controls
31 lines (31 loc) · 840 Bytes
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
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
},
// extends: ['plugin:react/recommended'],
overrides: [],
parserOptions: {
sourceType: "module",
ecmaFeatures: {
jsx: true,
modules: true,
ecmaVersion: 12,
},
},
// plugins: ['react'],
rules: {
// quotes: [2, 'single', { allowTemplateLiterals: true }],
// 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-restricted-syntax": "off",
"comma-dangle": "off",
"no-unused-vars": "warn",
"no-underscore-dangle": "off",
"react/jsx-filename-extension": "off",
"react/function-component-definition": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
},
};