forked from Joystream/joystream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
35 lines (35 loc) · 1.03 KB
/
.eslintrc.js
File metadata and controls
35 lines (35 loc) · 1.03 KB
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
module.exports = {
env: {
node: true,
es6: true,
mocha: true,
},
rules: {
'import/no-commonjs': 'off', // remove after converting to TS.
// Disabling Rules because of monorepo environment:
// https://github.com/benmosher/eslint-plugin-import/issues/1174
'import/no-extraneous-dependencies': 'off',
'import/no-nodejs-modules': 'off', // nodejs project
'no-console': 'off', // we use console in the project
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/naming-convention': 'off',
},
overrides: [
{
files: [
'**/test/ranges.js',
'**/test/lru.js',
'**/test/fs/walk.js',
'**/test/storage.js',
'**/test/identities.js',
'**/test/balances.js',
'**/test/assets.js',
],
rules: {
// Disabling Rules because of used chai lib:
// https://stackoverflow.com/questions/45079454/no-unused-expressions-in-mocha-chai-unit-test-using-standardjs
'no-unused-expressions': 'off',
},
},
],
}