forked from jenkinsci/custom-distribution-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (48 loc) · 1.39 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
module.exports = {
extends: [
'react-app',
'eslint:recommended',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
],
overrides: [
{
env: {
jest: true
},
files: ['__tests__/**/*.js(x)?'],
plugins: ['jest'],
}
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: [
'import',
'jsx-a11y',
'react',
'eslint-plugin-no-inline-styles'
],
rules: {
'array-callback-return': 'error',
eqeqeq: 'error',
'import/first': 'error',
indent: ['error', 4],
'keyword-spacing': ['error', { after: true, before: true }],
'no-console': 'warn',
'no-eval': 'error',
// 'no-inline-styles/no-inline-styles': ['error'],
'no-new-object': 'error',
'no-unused-vars': 'error',
'no-var': ['error'],
'prefer-template': ['error'],
'quote-props': ['error', 'as-needed'],
quotes: ['error', 'single'],
'react/jsx-curly-spacing': ['error', {allowMultiline: true, when: 'always'}],
'react/jsx-equals-spacing': ['error', 'never'],
'react/no-unknown-property': ['error'],
semi: ['error', 'never'],
// 'sort-keys': ['error', 'asc', {caseSensitive: true, minKeys: 2, natural: false}],
},
}