forked from Joystream/orion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 917 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
39
40
41
module.exports = {
env: {
es6: true,
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
project: ['./tsconfig.json', './scripts/tsconfig.json'],
},
extends: [
'standard',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:chai-friendly/recommended',
'plugin:prettier/recommended',
'prettier',
],
rules: {
'no-console': 'off',
'no-useless-constructor': 'off',
'@typescript-eslint/no-floating-promises': [
'error',
{
ignoreVoid: true,
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-misused-promises': 'error',
},
plugins: ['standard', '@typescript-eslint', 'prettier'],
}