forked from muxinc/mux-node-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
52 lines (52 loc) · 1.26 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
extends: ['airbnb-base', 'prettier'],
root: true,
env: {
node: true,
mocha: true,
},
plugins: ['@typescript-eslint', 'prettier', 'chai-friendly'],
rules: {
'no-unused-expressions': 0,
'chai-friendly/no-unused-expressions': 2,
'prettier/prettier': 'error',
'import/extensions': [
1,
{
js: 'ignorePackages',
json: 'ignorePackages',
mjs: 'ignorePackages',
cjs: 'ignorePackages',
},
],
'import/no-unresolved': 0,
},
overrides: [
{
files: ['*.ts'],
settings: {
'import/resolver': {
node: {
extensions: ['.ts'],
},
},
},
rules: {
camelcase: 'off',
'no-useless-constructor': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/420
'no-unused-vars': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/363
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
},
],
'import/prefer-default-export': 'off',
'lines-between-class-members': 'off',
'max-classes-per-file': 'off',
},
},
],
parser: '@typescript-eslint/parser',
};