-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
34 lines (32 loc) · 891 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
27
28
29
30
31
32
33
34
import eslint from '@eslint/js'
import stylistic from '@stylistic/eslint-plugin'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config(
{
ignores: ['coverage/', 'dist/'],
},
eslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
{
files: ['**/*.{js,ts}'],
languageOptions: {
globals: {
...globals.browser,
},
},
plugins: {
'@stylistic': stylistic,
},
rules: {
// When working with the DOM, non-null assertions are really useful and I want to use them.
'@typescript-eslint/no-non-null-assertion': 'off',
'@stylistic/comma-dangle': ['error', 'always-multiline'],
'@stylistic/indent': ['error', 'tab'],
'@stylistic/semi': ['error', 'never'],
'@stylistic/space-before-function-paren': ['error', 'always'],
'@stylistic/quotes': ['error', 'single'],
},
},
)