forked from ProjectEKA/hiu-ui
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
35 lines (35 loc) · 1002 Bytes
/
.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
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: ['airbnb', 'plugin:react/recommended', 'prettier'],
globals: {
BASE_NAME: 'readonly',
BACKEND_BASE_URL: 'readonly',
BACKEND_API_PATH: 'readonly',
DICOM_BASE_URL: 'readonly',
DICOM_SERVER_PATH: 'readonly',
REACT_APP_SITE_TITLE: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react'],
rules: {
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'import/no-extraneous-dependencies': ['error', {'devDependencies': ['**/*.test.js', '**/*.test.jsx','**/*.spec.js', '**/*.spec.jsx']}],
'react/jsx-props-no-spreading': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'import/no-extraneous-dependencies': [
'error',
{ devDependencies: ['**/setupTests.js', '**/*.test.js'] },
],
},
};