-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
52 lines (51 loc) · 1.31 KB
/
eslint.config.mjs
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
import prettier from 'eslint-config-prettier';
import chaiFriendly from 'eslint-plugin-chai-friendly';
import tseslint from 'typescript-eslint';
export default [
...tseslint.configs.recommended,
prettier,
chaiFriendly.configs.recommendedFlat,
{
files: ['**/*.ts'],
rules: {
'max-len': ['error', 150, 2],
camelcase: [
'error',
{
ignoreImports: true
}
],
indent: [
'error',
2,
{
SwitchCase: 1
}
],
semi: ['error', 'always'],
quotes: ['error', 'single', { avoidEscape: true }],
'no-plusplus': 'off',
'no-await-in-loop': 'off',
'no-restricted-syntax': 'off',
'no-continue': 'off',
'arrow-body-style': 'off',
'no-loop-func': 'off',
'no-unused-expressions': 'off',
'chai-friendly/no-unused-expressions': 'error',
'require-await': 'error',
'no-return-await': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-expressions': 'off'
},
languageOptions: {
globals: {
assert: true,
expect: true,
artifacts: true,
contract: true
}
}
}
];