-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 1.02 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
module.exports = {
root: true,
env: {
node: true,
es6: true,
jest: true,
},
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'prettier',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 10,
},
ignorePatterns: ['build'],
rules: {
'@typescript-eslint/ban-ts-comment': 'warn',
// Recommend not to leave any console.log in your code
// Use console.error, console.warn and console.info instead
// https://eslint.org/docs/rules/no-console
'no-console': [
'error',
{
allow: ['warn', 'error', 'info'],
},
],
'no-tabs': 0,
'no-underscore-dangle': 0,
'class-methods-use-this': 0,
quotes: ['warn', 'single'],
semi: ['error', 'always'],
'no-var': ['error'],
'no-unused-vars': ['warn'],
'import/no-extraneous-dependencies': 0,
},
};