forked from staratlasmeta/wallet-standard-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
37 lines (36 loc) · 917 Bytes
/
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
import eslint from '@eslint/js';
import prettierPlugin from 'eslint-plugin-prettier/recommended';
import unusedImports from 'eslint-plugin-unused-imports';
import tseslint from 'typescript-eslint';
/**
* @type {import('eslint').Linter.Config[]}
*/
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strict,
prettierPlugin,
{
plugins: {
'unused-imports': unusedImports,
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'no-console': 'off',
'no-restricted-syntax': 'off',
'import/no-unresolved': 'off',
},
},
{
ignores: ['dist/*', 'node_modules/*'],
},
);