forked from ManageIQ/manageiq-v2v
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.19 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
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
env: {
browser: true,
'jest/globals': true
},
globals: {
__: true,
sprintf: true
},
extends: [
'standard',
'standard-react',
'standard-jsx',
'airbnb',
'plugin:jest/recommended',
'prettier',
'prettier/react'
],
plugins: ['prettier', 'jest', 'react'],
rules: {
'prettier/prettier': [
'error',
{ singleQuote: true, trailingComma: 'none' }
],
camelcase: 'off',
'jsx-a11y/anchor-is-valid': 'off',
'import/prefer-default-export': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': 'off',
'no-return-assign': 'off',
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none'
}
],
'import/no-extraneous-dependencies': [
'error',
{
// Allow importing devDependencies like @storybook
devDependencies: true
}
],
'no-nested-ternary': 'off',
'react/no-array-index-key': 'off',
'react/jsx-filename-extension': 'off',
'react/prefer-stateless-function': 'warn',
'react/forbid-prop-types': 'off',
'react/require-default-props': 'off'
},
parser: 'babel-eslint'
};