forked from meemproject/meem-market-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
28 lines (28 loc) · 771 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
module.exports = {
extends: ['kengoldfarb'],
rules: {
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md
'react/jsx-props-no-spreading': 0,
'react/prop-types': 0,
'react/require-default-props': 0,
'no-await-in-loop': 0,
'no-restricted-syntax': 0,
'import/no-extraneous-dependencies': 0,
'no-console': 0,
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variableLike',
format: ['PascalCase', 'UPPER_CASE', 'camelCase'],
leadingUnderscore: 'allow'
},
{
selector: 'variable',
types: ['boolean'],
format: ['PascalCase'],
leadingUnderscore: 'allow',
prefix: ['is', 'should', 'has', 'can', 'did', 'will', 'was']
}
]
},
};