-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
35 lines (35 loc) · 1008 Bytes
/
.eslintrc.js
File metadata and controls
35 lines (35 loc) · 1008 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
32
33
34
35
module.exports = {
extends: 'airbnb',
parser: '@babel/eslint-parser',
plugins: [
'jest',
],
parserOptions: {
ecmaFeatures: {
classes: true,
},
},
env: {
'jest/globals': true,
},
rules: {
'max-len': [2, { code: 250, tabWidth: 4, ignoreUrls: true }],
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
'global-require': 'off',
'no-use-before-define': 'off',
'no-console': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'no-underscore-dangle': 'off',
'prefer-promise-reject-errors': 'off',
'no-nested-ternary': 'off',
'react/no-multi-comp': 'off',
'react/no-unescaped-entities': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-fragments': 'off',
},
};