-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 1.01 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir : __dirname,
sourceType: 'module',
},
plugins: [
'@typescript-eslint/eslint-plugin',
'simple-import-sort',
'unused-imports',
],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:typescript-sort-keys/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.gen/**', 'node_modules/**', '.eslintrc.js', 'setup.js'],
rules: {
'class-methods-use-this': 'off',
'no-nested-ternary': 'off',
'no-restricted-syntax': 'off',
'simple-import-sort/imports': 'error',
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
};