-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
39 lines (37 loc) · 1.07 KB
/
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
35
36
37
38
39
'use strict'
import stylistic from '@stylistic/eslint-plugin'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import jest from 'eslint-plugin-jest'
import love from 'eslint-config-love'
export default [
{
ignores: ['dist', '**/*.js']
},
// Stylistic
{
plugins: {
'@stylistic': stylistic
},
rules: {
'@stylistic/indent': ['error', 4],
'@stylistic/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'@stylistic/space-before-function-paren': 'off',
'@stylistic/no-unmodified-loop-condition': 'off'
}
},
// eslint-config-love
{
...love
},
// Jest
{
files: ['test/**/*.test.ts', 'tests/**/*.test.ts', 'test/**/*.spec.ts', 'tests/**/*.spec.ts'],
...jest.configs['flat/recommended'],
rules: {
...jest.configs['flat/recommended'].rules,
...jest.configs['flat/style'].rules
}
},
// Prettier
eslintPluginPrettierRecommended
]