forked from hey-api/openapi-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
57 lines (56 loc) · 1.85 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import eslint from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort';
import eslintPluginSortKeysFix from 'eslint-plugin-sort-keys-fix';
import eslintPluginTypeScriptSortKeys from 'eslint-plugin-typescript-sort-keys';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
ecmaVersion: 'latest',
globals: {
...globals.node,
},
},
plugins: {
'simple-import-sort': eslintPluginSimpleImportSort,
'sort-keys-fix': eslintPluginSortKeysFix,
'typescript-sort-keys': eslintPluginTypeScriptSortKeys,
},
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'arrow-body-style': 'error',
'import/order': 'off',
'no-prototype-builtins': 'off',
'object-shorthand': 'error',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'sort-imports': 'off',
'sort-keys-fix/sort-keys-fix': 'warn',
'typescript-sort-keys/interface': 'warn',
'typescript-sort-keys/string-enum': 'warn',
},
},
eslintConfigPrettier,
{
ignores: [
'**/dist/',
'**/node_modules/',
'temp/',
'**/test/e2e/generated/',
'**/test/generated/',
'**/.vitepress/cache',
'**/.vitepress/dist',
],
},
);