-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patheslint.config.mjs
40 lines (39 loc) · 1.07 KB
/
eslint.config.mjs
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
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';
import importPlugin from 'eslint-plugin-import';
/** @type {import('eslint').Linter.Config[]} */
export default [
pluginJs.configs.recommended,
importPlugin.flatConfigs.recommended,
...tseslint.configs.strict,
stylistic.configs['recommended-flat'],
{
files: ['**/*.ts'],
languageOptions: {
globals: globals.node,
},
linterOptions: {
reportUnusedDisableDirectives: 'error',
},
rules: {
'@typescript-eslint/no-extraneous-class': 'off',
'@stylistic/semi': 'off',
'@stylistic/member-delimiter-style': 'off',
'@stylistic/quotes': 'off',
'@stylistic/quote-props': 'off',
'@stylistic/brace-style': 'off',
'@stylistic/arrow-parens': 'off',
'@stylistic/operator-linebreak': 'off',
'import/no-unresolved': 'off',
'import/extensions': [
'error',
'always',
{
js: 'always',
},
],
},
},
];