-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
36 lines (36 loc) · 1.24 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 = {
env: {
node: true,
es6: true,
jest: true
},
extends: [
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#recommended-configs
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md
'plugin:@typescript-eslint/recommended-requiring-type-checking',
// https://www.robertcooper.me/using-eslint-and-prettier-in-a-typescript-project
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json']
},
plugins: [
'@typescript-eslint'
],
rules: {
'semi': [ 'error', 'always' ],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': [ 'error', { ignoreVoid: true } ],
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off'
}
};