-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (42 loc) · 1.25 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
/*
'extends': ['airbnb/base', 'plugin:prettier/recommended'],
'plugins': ['prettier'],
npm i -D eslint-config-airbnb eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-prettier prettier
*/
module.exports = {
extends: ['airbnb/base', 'plugin:prettier/recommended'],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: false,
},
},
env: {
es6: true,
browser: true,
node: true,
mocha: true,
},
rules: {
'prettier/prettier': ['error'],
'prefer-destructuring': ['error', { object: true, array: false }],
'class-methods-use-this': 'off',
'max-len': 'off',
'no-param-reassign': 'off',
'no-unused-vars': 'off',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-closing-tag-location': 'off',
'react/jsx-curly-spacing': 'off',
'react/jsx-equals-spacing': 'off',
'react/jsx-first-prop-new-line': 'off',
'react/jsx-indent': 'off',
'react/jsx-indent-props': 'off',
'react/jsx-max-props-per-line': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-multi-spaces': 'off',
'react/jsx-tag-spacing': 'off',
'react/jsx-wrap-multilines': 'off',
},
};