-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (31 loc) · 1.02 KB
/
eslint.config.mjs
File metadata and controls
33 lines (31 loc) · 1.02 KB
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
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';
export default tseslint.config(
tseslint.configs.strict,
tseslint.configs.stylistic,
prettierConfig, // blocks any eslint formatting rules that would conflict with Prettier
{
...eslint.configs.recommended,
files: ['**/*.ts'],
rules: {
// DO NOT DISABLE ANY ADDITIONAL RULES. YOU MAY RE-ENABLE RULES AND FIX RESULTING ERRORS AT ANY TIME.
'@typescript-eslint/no-unused-vars': [
'error',
{
// this set of options enforces the use of _ for unused variables
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
},
}
);