-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (33 loc) · 712 Bytes
/
eslint.config.mjs
File metadata and controls
34 lines (33 loc) · 712 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
32
33
34
import js from '@eslint/js';
import globals from 'globals';
import stylistic from '@stylistic/eslint-plugin';
export default [
js.configs.recommended,
stylistic.configs.customize({
indent: 2,
quotes: 'single',
semi: true,
jsx: false,
arrowParens: true,
braceStyle: '1tbs',
quoteProps: 'as-needed',
}),
{
files: ['**/*.{js,jsx}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.jest,
},
},
rules: {
'@stylistic/multiline-ternary': 'off',
'no-console': ['error'],
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
},
},
{
ignores: ['examples/*'],
},
];