forked from ethereumjs/ethereumjs-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.js
42 lines (42 loc) · 1.28 KB
/
eslint.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
35
36
37
38
39
40
41
42
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'implicit-dependencies', 'prettier'],
env: {
es6: true,
node: true,
},
ignorePatterns: ['node_modules/', 'dist/', 'dist.browser/', 'coverage/', 'prettier.config.js', 'typedoc.js', 'karma.conf.js'],
extends: ['typestrict', 'eslint:recommended'],
rules: {
'no-console': 'warn',
'no-debugger': 'error',
'prefer-const': 'error',
'no-var': 'error',
'implicit-dependencies/no-implicit': [
'error',
{ peer: true, dev: true, optional: true },
],
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'interface',
format: ['PascalCase', 'camelCase'],
custom: {
regex: '^I[A-Z]',
match: false,
}
}
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
'@typescript-eslint/no-unnecessary-condition': 'off',
'no-dupe-class-members': 'off',
'prettier/prettier': 'error',
},
parserOptions: {
sourceType: 'module',
project: './tsconfig.json'
},
};