forked from smaclell/sharebibles-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
28 lines (28 loc) · 865 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
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': ['error'],
'no-case-declarations': 'off',
'global-require': 'off',
'class-methods-use-this': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
'react/forbid-prop-types': ['error', { forbid: ['any'] }],
'react/destructuring-assignment': 'off',
'max-len': ['error', { code: 250 }],
'arrow-parens': ['error', 'always'],
'object-curly-newline': ['error', { consistent: true }],
'function-paren-newline': 'off',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
},
};