-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.01 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
41
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true
},
extends: ['eslint-config-airbnb', 'prettier', 'plugin:jsx-a11y/strict'],
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 8,
sourceType: 'module'
},
plugins: ['react', 'jsx-a11y', 'prettier'],
rules: {
indent: 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'comma-dangle': ['error', 'never'],
'arrow-parens': ['error', 'as-needed'],
'no-plusplus': 'off',
'no-underscore-dangle': [0],
'class-methods-use-this': 'off',
'import/no-extraneous-dependencies': 'off',
'react/forbid-prop-types': 'off',
'global-require': 'off',
semi: ['error', 'always'],
'prettier/prettier': 'error',
'jsx-a11y/click-events-have-key-events': 'warn',
'jsx-a11y/anchor-is-valid': [
'error',
{
components: ['Link'],
specialLink: ['to']
}
],
'no-debugger': 'warn',
'linebreak-style': 0
},
root: true
};