-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
30 lines (30 loc) · 1021 Bytes
/
.eslintrc.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
/** @type {import('eslint').Linter.Config} */
const config = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.lib.json', './tsconfig.test.json'],
},
plugins: ['@typescript-eslint', 'import'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/strict-type-checked', 'prettier'],
rules: {
'no-fallthrough': 'off', // checked by TS compiler
'object-shorthand': ['error', 'always'],
'sort-imports': ['off'],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/no-throw-literal': 'off',
},
overrides: [
{
files: ['*.test.ts'],
rules: {
'@typescript-eslint/no-unsafe-argument': 'off',
},
},
],
reportUnusedDisableDirectives: true,
};
module.exports = config;