-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
39 lines (38 loc) Β· 1.29 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
import stylisticTs from '@stylistic/eslint-plugin-ts';
import stylisticJs from '@stylistic/eslint-plugin-js';
import tsParser from '@typescript-eslint/parser';
import js from '@eslint/js';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import tseslint from 'typescript-eslint';
export default [
js.configs.recommended,
prettierRecommended,
...tseslint.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
parser: tsParser,
},
files: ['src/**/*.ts', '*.js'],
ignores: ['node_modules/', 'dist/', '**/templates'],
plugins: {
'@stylistic/ts': stylisticTs,
'@stylistic/js': stylisticJs,
},
rules: {
'@stylistic/ts/indent': ['error', 2],
'@stylistic/js/linebreak-style': ['error', 'unix'],
'@stylistic/ts/quotes': ['error', 'single'],
'@stylistic/ts/semi': ['error', 'always'],
'@stylistic/js/max-len': ['error', { code: 100 }],
'prefer-promise-reject-errors': ['off'],
'no-return-assign': ['off'],
'no-shadow': 'off',
'import/prefer-default-export': 'off',
'prettier/prettier': ['error', { singleQuote: true }],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/explicit-function-return-type': ['off'],
},
},
];