-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 934 Bytes
/
.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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json']
},
plugins: ['jest'],
extends: [
'standard-with-typescript',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:jest/recommended',
'plugin:prettier/recommended' // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
rules: {
'object-shorthand': 2,
'prettier/prettier': [
1,
{
endOfLine: 'auto'
}
],
'@typescript-eslint/no-unused-vars': [2, {varsIgnorePattern: '^_'}],
'@typescript-eslint/explicit-function-return-type': [
2,
{allowTypedFunctionExpressions: true, allowHigherOrderFunctions: true}
],
complexity: [1, 5] // KISS
}
}