-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
51 lines (50 loc) · 1.25 KB
/
Copy patheslint.config.js
File metadata and controls
51 lines (50 loc) · 1.25 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import js from '@eslint/js'
import tseslint from '@typescript-eslint/eslint-plugin'
import stylistic from '@stylistic/eslint-plugin'
export default [
js.configs.recommended,
...tseslint.configs['flat/recommended'],
{
files: ['src/**/*.ts'],
plugins: {
'@stylistic': stylistic,
},
rules: {
'no-tabs': 'off',
'@stylistic/block-spacing': ['error', 'always'],
'@stylistic/object-curly-spacing': ['error', 'always'],
'@stylistic/semi': ['error', 'never'],
'@stylistic/quotes': ['error', 'single'],
'@stylistic/indent': ['error', 'tab'],
'@typescript-eslint/ban-types': 'off'
}
},
{
files: ['__tests__/**/*.ts'],
plugins: {
'@stylistic': stylistic,
},
languageOptions: {
globals: {
describe: 'readonly',
it: 'readonly',
test: 'readonly',
expect: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
beforeAll: 'readonly',
afterAll: 'readonly',
jest: 'readonly'
}
},
rules: {
'no-tabs': 'off',
'@stylistic/block-spacing': ['error', 'always'],
'@stylistic/object-curly-spacing': ['error', 'always'],
'@stylistic/semi': ['error', 'never'],
'@stylistic/quotes': ['error', 'single'],
'@stylistic/indent': ['error', 'tab'],
'@typescript-eslint/ban-types': 'off'
}
}
]