-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.eslintrc.js
More file actions
37 lines (37 loc) · 789 Bytes
/
Copy path.eslintrc.js
File metadata and controls
37 lines (37 loc) · 789 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
36
37
module.exports = {
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:promise/recommended',
'plugin:eslint-comments/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
env: {
browser: true,
es6: true,
jest: true,
},
globals: {
__nr: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: ['import', 'promise', 'eslint-comments', 'react', 'prettier'],
settings: {
react: {
version: 'detect',
},
},
rules: {
'import/no-unresolved': 'off',
'no-empty-function': ['error', { allow: ['arrowFunctions'] }],
'react/no-unescaped-entities': 'off',
},
};