-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
36 lines (36 loc) · 1007 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
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:import/typescript',
'plugin:import/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:json/recommended',
'plugin:markdown/recommended',
'plugin:yml/prettier',
],
parser: '@typescript-eslint/parser',
ignorePatterns: [
'codeForDoc/**/*',
'dist/**/*', // Ignore built files.
],
plugins: ['@typescript-eslint', 'import'],
rules: {
'import/named': 'off',
'import/no-unresolved': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off', // explicit function return type
'@typescript-eslint/no-explicit-any': 'off',
camelcase: 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-function': 'warn',
'spaced-comment': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
},
}