forked from bitfocus/companion-module-stagetimerio-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
31 lines (30 loc) · 868 Bytes
/
eslint.config.js
File metadata and controls
31 lines (30 loc) · 868 Bytes
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
import js from '@eslint/js'
import globals from 'globals'
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.nodeBuiltin,
},
},
},
{
files: ['**/*.js'],
rules: {
'indent': ['warn', 2, { 'SwitchCase': 1 }],
'quotes': ['warn', 'single'],
'semi': ['warn', 'never'],
'comma-dangle': ['warn', 'always-multiline'],
'no-console': ['warn', { allow: ['info', 'warn', 'error'] }],
'no-unused-vars': ['warn', { 'args': 'all', 'argsIgnorePattern': '^_' }],
'no-var': 'warn',
'no-duplicate-imports': 'warn',
'no-useless-return': 'warn',
'space-before-function-paren': ['warn', 'always'],
'object-curly-spacing': ['warn', 'always'],
'no-use-before-define': ['error', 'nofunc'],
'no-unused-expressions': 'error',
},
},
]