-
-
Notifications
You must be signed in to change notification settings - Fork 296
/
eslint.config.js
26 lines (25 loc) · 887 Bytes
/
eslint.config.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
import js from '@eslint/js'
import globals from 'globals'
export default [js.configs.recommended, { ignores: ['src/foliate-js'] }, {
languageOptions: {
globals: {
...globals.browser,
imports: 'readonly',
pkg: 'readonly',
},
},
linterOptions: {
reportUnusedDisableDirectives: true,
},
rules: {
semi: ['error', 'never'],
indent: ['warn', 4, { flatTernaryExpressions: true, SwitchCase: 1 }],
quotes: ['warn', 'single', { avoidEscape: true }],
'comma-dangle': ['warn', 'always-multiline'],
'no-trailing-spaces': 'warn',
'no-unused-vars': 'warn',
'no-console': ['warn', { allow: ['debug', 'warn', 'error', 'assert'] }],
'no-constant-condition': ['error', { checkLoops: false }],
'no-empty': ['error', { allowEmptyCatch: true }],
},
}]