UNPKG

979 BJavaScriptView Raw
1module.exports = {
2 extends: ['standard-with-typescript'],
3 rules: {
4 curly: [2, 'all'],
5 '@typescript-eslint/array-type': [2, { default: 'generic', readonly: 'generic' }],
6 '@typescript-eslint/no-non-null-assertion': 0,
7 '@typescript-eslint/promise-function-async': 0,
8 '@typescript-eslint/require-await': 0,
9 '@typescript-eslint/return-await': 0,
10 '@typescript-eslint/restrict-template-expressions': 0,
11 /*
12 This is inserted to make this compatible with prettier.
13 Once https://github.com/prettier/prettier/issues/3845 and https://github.com/prettier/prettier/issues/3847 are solved this might be not needed any more.
14 */
15 '@typescript-eslint/space-before-function-paren': 0,
16 '@typescript-eslint/strict-boolean-expressions': 0,
17 '@typescript-eslint/typedef': [
18 2,
19 {
20 arrowParameter: true,
21 parameter: true,
22 memberVariableDeclaration: true,
23 propertyDeclaration: true
24 }
25 ]
26 }
27}