-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.11 KB
/
.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
31
32
33
34
35
36
37
38
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
// extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
extends: ['airbnb-typescript'],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'no-underscore-dangle': ['off'],
'no-nested-ternary': ['off'],
'no-console': ['off'],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/vite.config.ts',
'**/build.config.ts',
'**/vitest.workspace.ts',
'jest.config.ts',
'**/*.test.ts',
'**/*.tn.ts',
'**/*.tb.ts',
],
},
],
'@typescript-eslint/comma-dangle': ['off'],
'no-trailing-spaces': ['error', { ignoreComments: true }],
'import/prefer-default-export': ['off'],
'prefer-promise-reject-errors': ['off'],
'@typescript-eslint/no-throw-literal': ['off'],
'@typescript-eslint/no-unused-expressions': ['off'],
semi: 'off',
'@typescript-eslint/semi': ['error', 'never'],
},
}