generated from MetaMask/template-snap-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
34 lines (31 loc) · 920 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
module.exports = {
extends: ['../../.eslintrc.js'],
rules: {
'@typescript-eslint/no-parameter-properties': 'off',
},
overrides: [
{
files: ['**/*.{ts,tsx}'],
rules: {
'jsdoc/require-jsdoc': 0,
'no-restricted-globals': 0, // using window is ok in the browser, not sure how to disable the rule only for window.
'@typescript-eslint/naming-convention': 0, // required for metamask params such as `wallet_snap`
},
},
{
// config does not need site level standards
files: ['src/config/*.{ts,tsx}'],
rules: {
'no-restricted-globals': 0,
},
},
{
// explicit exceptions to handle https://github.com/metamask/providers/issues/200
files: ['src/utils/metamask.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 0,
},
},
],
ignorePatterns: ['!.eslintrc.js', 'build/', 'gatsby*'],
};