forked from skeditor/skeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
31 lines (29 loc) · 968 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
// https://github.com/eslint-plugin-promise@^5.0.0 typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/README.md
module.exports = {
env: {
node: true,
commonjs: true,
},
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
rules: {
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-var-requires': 0,
},
ignorePatterns: ['.*', '*.vue'],
};
// module.exports = {
// extends: ['standard-with-typescript', 'prettier'],
// parserOptions: {
// project: './tsconfig.json',
// },
// rules: {
// '@typescript-eslint/explicit-function-return-type': 1,
// '@typescript-eslint/strict-boolean-expressions': 1,
// '@typescript-eslint/prefer-readonly': 0,
// '@typescript-eslint/array-type': 1,
// '@typescript-eslint/no-non-null-assertion': 0,
// },
// };