-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.js
30 lines (29 loc) · 1.04 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
import eslint from '@eslint/js';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import tseslint from 'typescript-eslint';
export default tseslint.config(
...tseslint.configs.strictTypeChecked,
eslint.configs.recommended,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
eslintPluginUnicorn.configs['flat/all'],
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-member-accessibility': 'error',
'@typescript-eslint/restrict-template-expressions': ['error', {allowNumber: true}],
'no-unused-vars': 'off',
'object-shorthand': 'error',
'unicorn/no-empty-file': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-math-trunc': 'off',
'unicorn/prevent-abbreviations': 'off',
},
},
);