-
Notifications
You must be signed in to change notification settings - Fork 47
/
index.js
37 lines (37 loc) · 929 Bytes
/
index.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
module.exports = {
extends: [
require('./extends')('eslint-config-godaddy'),
'plugin:eslint-plugin-react/recommended',
'plugin:jsx-a11y/recommended',
'plugin:react-hooks/recommended'
],
parser: '@babel/eslint-parser',
plugins: ['react', 'jsx-a11y', 'react-hooks'],
parserOptions: {
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true
},
requireConfigFile: false
},
rules: {
'react/display-name': 0,
'react/jsx-pascal-case': [2, { allowAllCaps: true }],
'react/jsx-uses-react': 1,
'react/jsx-equals-spacing': 2,
'react/prefer-es6-class': 2,
'react/prop-types': 0,
//
// Whitespace rules for specific scenarios (e.g. JSX)
//
'react/jsx-curly-spacing': [2, 'always', {
spacing: { objectLiterals: 'never' }
}],
'jsx-quotes': [2, 'prefer-single']
},
settings: {
react: {
version: 'detect'
}
}
};