-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
44 lines (44 loc) · 1.19 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
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
root: true,
extends: [
// https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb
'airbnb',
// https://github.com/iamturns/eslint-config-airbnb-typescript
'airbnb-typescript',
// https://github.com/prettier/eslint-plugin-prettier#readme
'plugin:prettier/recommended',
],
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
plugins: ['@typescript-eslint'],
parser: '@typescript-eslint/parser',
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['tsconfig.eslint.json'],
},
rules: {
'import/extensions': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-types': [
'error',
{
types: {
'{}': false,
},
},
],
'import/prefer-default-export': 'off',
'class-methods-use-this': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'warn',
},
};