-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
116 lines (116 loc) · 3.21 KB
/
Copy pathindex.js
File metadata and controls
116 lines (116 loc) · 3.21 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
module.exports = {
parser: '@babel/eslint-parser',
parserOptions: {
allowImportExportEverywhere: true,
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
presets: ['@babel/preset-react'],
},
},
plugins: ['react', 'react-hooks', '@quave/meteor-quave'],
extends: [
'airbnb',
'prettier',
'plugin:@quave/meteor-quave/recommended',
],
rules: {
//using prettier
indent: 'off',
//using prettier
'react/jsx-indent': 'off',
//using prettier
'react/jsx-indent-props': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'react/jsx-space-before-closing': 'off',
'react/jsx-tag-spacing': 'off',
'react/jsx-one-expression-per-line': 'off',
'no-confusing-arrow': 'off',
'max-len': 'off',
//it is not working correctly with ternary operator
'react/jsx-closing-bracket-location': 'off',
'react/button-has-type': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'import/no-named-default': 'off',
'import/no-cycle': 'off',
'import/order': 'off',
'no-underscore-dangle': 'off',
'implicit-arrow-linebreak': 'off',
'@quave/meteor-quave/audit-argument-checks': 'off',
'no-plusplus': 'off',
'arrow-parens': 'off',
'operator-linebreak': 'off',
'react/jsx-no-target-blank': 'off',
'react/jsx-wrap-multilines': 'off',
'react/no-unescaped-entities': 'off',
'no-restricted-properties': 'off',
'no-mixed-operators': 'off',
'function-paren-newline': 'off',
'object-curly-newline': 'off',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
'no-console': [
'error',
{
allow: ['warn', 'error', 'time', 'timeEnd'],
},
],
'object-shorthand': [
'error',
'always',
{
avoidQuotes: false,
},
],
'@quave/meteor-quave/eventmap-params': [
'error',
{
eventParamName: 'event',
templateInstanceParamName: 'instance',
},
],
'@quave/meteor-quave/template-names': ['off'],
'import/no-default-export': 'error',
'import/first': 'off',
'no-nested-ternary': 'off',
eqeqeq: 'off',
'global-require': 0,
'react/function-component-definition': 0,
quotes: 'off',
'react/jsx-curly-newline': 'off',
'react/jsx-filename-extension': 'off',
'react/no-danger': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-continue': 'off',
'no-unsafe-optional-chaining': 'off',
},
settings: {
'import/resolver': 'meteor',
},
env: {
node: true,
browser: true,
},
globals: {
Assets: true, // currently not possible to import as an ES6 module
Package: true,
Cordova: true,
Npm: true,
},
};