-
-
Notifications
You must be signed in to change notification settings - Fork 90
/
.eslintrc.js
27 lines (27 loc) · 902 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'optimize-regex'],
env: {
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:json/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:eslint-comments/recommended',
'prettier',
],
// TODO this is duplicated from datenanfragen/website
rules: {
'no-unused-vars': ['warn', { args: 'none', caughtErrors: 'none' }],
'no-empty': ['error', { allowEmptyCatch: true }],
'optimize-regex/optimize-regex': 'warn',
'no-undef': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off', // TODO
},
};