-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
35 lines (32 loc) · 875 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
env: {
browser: true,
node: true,
es6: true,
'jest/globals': true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2017,
},
plugins: ['@typescript-eslint', 'prettier', 'jest'],
rules: {
// enable additional rules
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
// override default options for rules from base configurations
'no-cond-assign': ['error', 'always'],
// disable rules from base configurations
'no-console': 'warn',
'prettier/prettier': 1, // 2 means error, 1 means warn and 0 means off
},
};