1 | module.exports = {
|
2 | extends: [
|
3 | 'airbnb-base',
|
4 | 'plugin:flowtype/recommended',
|
5 | ],
|
6 |
|
7 | parser: 'babel-eslint',
|
8 | plugins: [
|
9 | 'babel',
|
10 | 'flowtype',
|
11 | ],
|
12 |
|
13 | env: {
|
14 | browser: true,
|
15 | },
|
16 |
|
17 | root: true,
|
18 |
|
19 | globals: {
|
20 | BX: 'readonly',
|
21 | },
|
22 |
|
23 | rules: {
|
24 | 'no-tabs': 'off',
|
25 | 'object-curly-spacing': ['error', 'never'],
|
26 | 'object-curly-newline': 'off',
|
27 | 'brace-style': 'off',
|
28 | 'arrow-body-style': 'off',
|
29 | 'implicit-arrow-linebreak': 'off',
|
30 | 'import/prefer-default-export': 'off',
|
31 | 'eol-last': 'off',
|
32 | 'no-param-reassign': ['error', {props: false}],
|
33 | 'comma-dangle': [
|
34 | 'error',
|
35 | {
|
36 | arrays: 'always-multiline',
|
37 | objects: 'always-multiline',
|
38 | imports: 'always-multiline',
|
39 | exports: 'always-multiline',
|
40 | functions: 'always-multiline',
|
41 | },
|
42 | ],
|
43 | 'space-before-function-paren': [
|
44 | 'error',
|
45 | {
|
46 | anonymous: 'never',
|
47 | named: 'never',
|
48 | asyncArrow: 'always',
|
49 | },
|
50 | ],
|
51 | 'lines-between-class-members': [
|
52 | 'error',
|
53 | 'always',
|
54 | {
|
55 | exceptAfterSingleLine: true,
|
56 | },
|
57 | ],
|
58 | 'no-console': [
|
59 | 'error',
|
60 | {
|
61 | allow: [
|
62 | 'warn',
|
63 | 'error',
|
64 | 'info',
|
65 | ],
|
66 | },
|
67 | ],
|
68 | indent: [
|
69 | 'error',
|
70 | 'tab',
|
71 | {
|
72 | SwitchCase: 1,
|
73 | },
|
74 | ],
|
75 | 'import/no-unresolved': 'off',
|
76 | 'no-unused-expressions': [
|
77 | 'error',
|
78 | {
|
79 | allowTaggedTemplates: true,
|
80 | },
|
81 | ],
|
82 | 'no-control-regex': 'off',
|
83 |
|
84 | 'no-void': 'off',
|
85 | radix: 'off',
|
86 |
|
87 |
|
88 | 'flowtype/no-types-missing-file-annotation': 'off',
|
89 | },
|
90 | }; |
\ | No newline at end of file |