-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.js
58 lines (52 loc) · 1.43 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
55
56
57
58
'use strict';
/**
* Clone of: https://github.com/digirati-co-uk/fesk/blob/master/.eslintrc.js
*
* For changes, please change that source or open support ticket.
*/
const OFF = 0;
const ERROR = 2;
module.exports = {
// Stop ESLint from looking for a configuration file in parent folders
root: true,
extends: ['plugin:flowtype/recommended'],
plugins: ['prettier', 'flowtype'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
'no-undef': OFF,
'no-use-before-define': OFF,
'prettier/prettier': ERROR,
'accessor-pairs': OFF,
'brace-style': [ERROR, '1tbs'],
'consistent-return': OFF,
'dot-location': [ERROR, 'property'],
'dot-notation': ERROR,
'eol-last': ERROR,
eqeqeq: [ERROR, 'allow-null'],
indent: OFF,
'jsx-quotes': [ERROR, 'prefer-double'],
'keyword-spacing': [ERROR, { after: true, before: true }],
'no-bitwise': OFF,
'no-inner-declarations': [ERROR, 'functions'],
'no-multi-spaces': ERROR,
'no-restricted-syntax': [ERROR, 'WithStatement'],
'no-shadow': ERROR,
'no-unused-expressions': ERROR,
'no-useless-concat': OFF,
'flowtype/no-types-missing-file-annotation': OFF,
quotes: [
ERROR,
'single',
{ avoidEscape: true, allowTemplateLiterals: true },
],
'space-before-blocks': ERROR,
'space-before-function-paren': OFF,
},
};