-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
47 lines (46 loc) · 1.29 KB
/
eslint.config.js
File metadata and controls
47 lines (46 loc) · 1.29 KB
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 typescriptEslint from 'typescript-eslint'
import eslintPluginJest from 'eslint-plugin-jest'
import eslintPluginGithub from 'eslint-plugin-github'
export default typescriptEslint.config(
{
ignores: ['dist/', 'lib/', 'node_modules/', '__tests__/reporters/', 'jest.config.js']
},
eslintPluginGithub.getFlatConfigs().recommended,
...typescriptEslint.configs.recommended,
{
files: ['**/*.ts'],
plugins: {
jest: eslintPluginJest
},
languageOptions: {
parser: typescriptEslint.parser,
parserOptions: {
ecmaVersion: 9,
sourceType: 'module',
project: './tsconfig.json'
}
},
rules: {
'i18n-text/no-en': 'off',
'eslint-comments/no-use': 'off',
'import/no-namespace': 'off',
'import/no-unresolved': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-non-null-assertion': 'warn',
'camelcase': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'warn'
}
},
{
files: ['__tests__/**/*.ts'],
languageOptions: {
globals: {
...eslintPluginJest.environments.globals.globals
}
}
}
)