-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
37 lines (36 loc) · 964 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
31
32
33
34
35
36
37
const { init } = require('@fullstacksjs/eslint-config/init');
module.exports = init({
root: true,
modules: {
typescript: {
parserProject: './tsconfig.eslint.json',
},
prettier: true,
test: true,
},
overrides: [
{
files: ['./src/**/*.ts'],
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/prefer-for-of': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/dot-notation': 'off',
'fp/no-let': 'off',
'fp/no-loops': 'off',
'func-style': ['error', 'declaration'],
'valid-jsdoc': 'error',
},
},
{
files: ['./src/guards/**/*.ts', '*.spec.ts'],
rules: {
'func-style': 'off',
'fp/no-loops': 'off',
'no-sparse-arrays': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'off',
},
},
],
});