forked from Synthetixio/synthetix-router
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
38 lines (38 loc) · 947 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
37
38
module.exports = {
root: true,
extends: ['eslint:recommended'],
env: {
es6: true,
node: true,
mocha: true,
},
parserOptions: {
ecmaVersion: 12,
},
plugins: ['no-only-tests'],
rules: {
indent: 'off', // prettier
'no-only-tests/no-only-tests': 'error',
'linebreak-style': 'off', // prettier
quotes: 'off', // prettier
semi: 'off', // prettier
'no-inner-declarations': 'off',
'max-len': 'off', // prettier
},
overrides: [
{
files: ['**/*.ts'],
extends: ['plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.eslint.json'],
},
rules: {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-empty-function': 0,
},
},
],
};