-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
32 lines (32 loc) · 1017 Bytes
/
.eslintrc.cjs
File metadata and controls
32 lines (32 loc) · 1017 Bytes
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
module.exports = {
extends: ['@exodus/eslint-config/javascript'],
overrides: [
{
files: ['**/*.?([cm])js'],
parser: 'espree',
rules: {
'@exodus/import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/{tests,benchmarks}/**/*', '**/*.{test,bench}.*', '**/*.d.ts'],
},
],
// Subpath exports support is missing: https://github.com/import-js/eslint-plugin-import/issues/1810
'@exodus/import/no-unresolved': [2, { ignore: ['@exodus/bytes/\\w+'] }],
'one-var': 'off',
'unicorn/no-for-loop': 'off',
'unicorn/no-new-array': 'off',
'unicorn/prefer-code-point': 'off',
'unicorn/prefer-math-trunc': 'off',
'unicorn/prefer-spread': 'off',
'unicorn/text-encoding-identifier-case': 'off',
},
},
{
files: ['*.{test,bench}.?([cm])js'],
rules: {
'unicorn/no-useless-spread': 'off', // test vectors grouping
},
},
],
}