-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.js
41 lines (39 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
37
38
39
40
41
const fs = require('fs');
const prettierOptions = JSON.parse(fs.readFileSync('./.prettierrc', 'utf8'));
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
modules: true,
},
sourceType: 'module',
project: 'tsconfig.lint.json',
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
plugins: ['prettier', '@typescript-eslint/eslint-plugin','import'],
rules: {
'prettier/prettier': [1, prettierOptions],
'@typescript-eslint/explicit-function-return-type': [
1,
{
allowExpressions: true,
allowHigherOrderFunctions: true,
},
],
'@typescript-eslint/no-parameter-properties': 0,
"@typescript-eslint/no-floating-promises": ["error"],
"import/no-extraneous-dependencies" : "error"
},
settings: {
'import/resolver': {
// use <root>/tsconfig.json
typescript: {},
},
},
};