-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslintrc.js
33 lines (33 loc) · 1.37 KB
/
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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
tsconfigRootDir: 'build/',
project: ['tsconfig.all.json'],
},
env: {
node: true,
commonjs: true,
browser: true,
es6: true,
es2017: true,
},
extends: [
'eslint:recommended', // Default recommended rules
'plugin:@typescript-eslint/eslint-plugin/eslint-recommended', // Adjust default rules for typescript support
'plugin:@typescript-eslint/eslint-plugin/recommended', // Default typescript rules
'plugin:@typescript-eslint/eslint-plugin/recommended-requiring-type-checking', // Enable typescript typechecking
'plugin:eslint-plugin-prettier/recommended', // Enable prettier support
'eslint-config-prettier/@typescript-eslint', // Enable prettier typescript rules
],
rules: {
'no-async-promise-executor': 'off',
'no-prototype-builtins': 'off',
'prettier/prettier': ['error', JSON.parse(require('fs').readFileSync('build/prettierrc.json'))],
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
},
};