-
Notifications
You must be signed in to change notification settings - Fork 18
/
eslint.config.mjs
47 lines (40 loc) · 1.4 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
import pluginJs from '@eslint/js';
import imports from 'eslint-plugin-import';
import jestConfig from 'eslint-plugin-jest';
import node from 'eslint-plugin-n';
import globals from 'globals';
import tsEslint from 'typescript-eslint';
/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ['**/*.{js,mjs,cjs,ts}'] },
{
ignores: ['dist', 'contracts', 'typechain', 'node_modules'],
},
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tsEslint.configs.recommended,
imports.flatConfigs.errors,
imports.flatConfigs.warnings,
imports.flatConfigs.typescript,
node.configs['flat/recommended'],
jestConfig.configs['flat/recommended'],
{
rules: {
'jest/expect-expect': 'off',
'jest/no-conditional-expect': 'off',
'n/no-missing-import': 'off',
'n/no-extraneous-import': 'off',
'n/no-unsupported-features/es-syntax': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
'import/no-unresolved': 'off',
semi: 'error',
'no-trailing-spaces': 'error',
'no-unexpected-multiline': 'off',
quotes: ['error', 'single', { avoidEscape: true }],
},
},
];