forked from homebridge-plugins/homebridge-ewelink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
27 lines (27 loc) · 835 Bytes
/
.eslintrc.cjs
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 = {
env: {
es2022: true,
node: true,
},
extends: ['airbnb-base'],
ignorePatterns: ['lib/node-dns-sd/*'],
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
plugins: ['import', 'import-newlines', 'sort-exports'],
rules: {
camelcase: 'off',
'import/extensions': ['error', { js: 'always', json: 'always' }],
'import/order': ['warn', { alphabetize: { order: 'asc' } }],
'import-newlines/enforce': ['error', 3],
indent: ['error', 2, { SwitchCase: 1 }],
'max-len': 'off',
'new-cap': 0,
quotes: ['error', 'single'],
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 1, maxEOF: 0 }],
'no-param-reassign': 0,
'sort-exports/sort-exports': ['warn', { sortDir: 'asc' }],
'sort-imports': ['warn', { ignoreDeclarationSort: true }],
},
};