forked from fineanmol/Annoying-submit-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (40 loc) · 1.08 KB
/
.eslintrc.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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'airbnb',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:react-hooks/recommended',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react'],
rules: {
quotes: ['error', 'single'],
semi: ['error', 'never'],
'linebreak-style': 0,
'jsx-a11y/tabindex-no-positive': 0,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/jsx-props-no-spreading': [0],
'react/jsx-no-target-blank': [0],
'react/no-unescaped-entities': [0],
'no-console': ['error', { allow: ['warn', 'error'] }],
// disabled those rules to be able for build now, need to fix all issue and enable again
'react/react-in-jsx-scope': [0],
'react/prop-types': [0],
'import/prefer-default-export': 'off',
'react-hooks/exhaustive-deps': 0,
'import/no-unresolved': 'off',
'import/no-named-as-default': 'warn',
},
}