forked from JosephusPaye/Keen-UI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
27 lines (23 loc) · 889 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
module.exports = {
root: true,
plugins: ['html', 'unicorn', 'promise', 'no-use-extend-native'],
extends: ['xo/esnext', 'plugin:unicorn/recommended'],
env: {
browser: true,
node: true
},
rules: {
indent: ['error', 4],
// Need PascalCase for components and kebab-case for everything else
'unicorn/filename-case': ['off'],
// False positives when used with html plugin
'unicorn/no-abusive-eslint-disable': ['off'],
// Prefer spacing in inline object curlies: e.g. { curlies }
'object-curly-spacing': ['error', 'always'],
// These are copied from xo as they're not available in the plugins for extending
'no-use-extend-native/no-use-extend-native': 'error',
'promise/param-names': 'error',
'promise/no-promise-in-callback': 'error',
'promise/no-callback-in-promise': 'error'
}
};