-
Notifications
You must be signed in to change notification settings - Fork 52
/
.eslintrc.js
36 lines (36 loc) · 1010 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
36
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
ignorePatterns: [
'build/*',
'funnel/static/build/*',
'funnel/static/gen/*',
'funnel/static/js/libs/*',
'funnel/static/js/*.packed.js',
],
env: {
browser: true,
es6: true,
jquery: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:cypress/recommended',
'plugin:@typescript-eslint/strict',
'plugin:@typescript-eslint/stylistic',
],
plugins: ['@typescript-eslint'],
rules: {
'no-console': 'warn',
'prefer-arrow-callback': ['error', { allowNamedFunctions: true }],
'prefer-const': 'warn',
'new-cap': 'warn',
'no-param-reassign': ['error', { props: false }],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'cypress/no-unnecessary-waiting': 'off',
'@typescript-eslint/no-this-alias': ['error', { allowedNames: ['self'] }],
},
};