-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.cjs
36 lines (33 loc) · 909 Bytes
/
.eslintrc.cjs
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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:cypress/recommended',
],
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': 2, // 2 means error, 1 means warn and 0 means off
},
};