-
Notifications
You must be signed in to change notification settings - Fork 57
/
eslint.config.js
40 lines (39 loc) · 1.11 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
40
// @typescript-eslint/parser also needs @typescript-eslint/eslint-plugin installed
import stylistic from '@stylistic/eslint-plugin'
import parserTs from '@typescript-eslint/parser'
import tseslint from '@typescript-eslint/eslint-plugin'
export default [
{
plugins: {
'@stylistic': stylistic,
'@typescript-eslint': tseslint,
},
languageOptions: {
parser: parserTs,
},
rules: {
...stylistic.configs['recommended-flat'].rules,
...tseslint.configs['recommended'].rules,
'@stylistic/no-trailing-spaces': ['error', { ignoreComments: true }],
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@stylistic/max-statements-per-line': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrors: 'none' }],
},
},
{
ignores: [
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/config/**',
'**/lib/scim-stream.js',
],
},
{
files: ['**/*.ts', '**/*.js'],
},
]