-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
58 lines (57 loc) · 1.45 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
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
es6: true,
jest: true,
node: true,
},
plugins: ['meteor', 'prettier'],
extends: ['airbnb', 'plugin:meteor/recommended', 'prettier'],
settings: {
'import/resolver': 'meteor',
},
rules: {
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx'],
},
],
'import/no-absolute-path': [0],
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
'no-use-before-define': [
'warn',
{
functions: false,
variables: false,
},
],
'consistent-this': [1, 'self'],
'no-underscore-dangle': [
'error',
{
allow: ['_id'],
},
],
'prettier/prettier': 'error',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-closing-tag-location': 'off',
'react/jsx-curly-newline': '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',
// turn on again later
'react/require-default-props': 'off',
'react/forbid-prop-types': 'off',
},
};