-
Notifications
You must be signed in to change notification settings - Fork 44
/
.eslintrc.js
47 lines (47 loc) · 1.42 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
39
40
41
42
43
44
45
46
47
module.exports = {
env: {
browser: true,
es2021: true,
},
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
project: './tsconfig.eslint.json',
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'import'],
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb-typescript/base',
// @NOTE: Make sure this is always the last element in the array.
'plugin:prettier/recommended',
],
rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'error',
'no-nested-ternary': 'off',
'no-console': 'off',
'arrow-body-style': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'class-methods-use-this': 'off',
'no-async-promise-executor': 'off',
'no-restricted-properties': 'off',
'import/no-cycle': 'off',
},
};