-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
64 lines (63 loc) · 1.74 KB
/
Copy patheslint.config.mjs
File metadata and controls
64 lines (63 loc) · 1.74 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import globals from 'globals';
//
import jsLint from '@eslint/js';
import tsLint from 'typescript-eslint';
//
import eslintPluginJest from 'eslint-plugin-jest';
import eslintPluginGithub from 'eslint-plugin-github';
import eslintPluginJsonc from 'eslint-plugin-jsonc';
//
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
export default [
{
// .eslintignore
ignores: ['**/node_modules', '**/dist', '**/coverage', '**/*.json', 'eslint.config.mjs']
},
jsLint.configs.recommended, // eslint:recommended
...tsLint.configs.recommended, // plugin:@typescript-eslint/recommended
eslintPluginGithub.getFlatConfigs().recommended, // plugin:github/recommended
eslintPluginJest.configs['flat/recommended'], // plugin:jest/recommended
...eslintPluginJsonc.configs['flat/recommended-with-jsonc'],
eslintPluginPrettierRecommended,
{
plugins: {
'@typescript-eslint': tsLint.plugin, // @typescript-eslint/plugin
jest: eslintPluginJest
},
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
parser: tsLint.parser, // @typescript-eslint/parser
parserOptions: {
project: ['./.github/linters/tsconfig.json']
},
globals: {
...globals.node,
...globals.jest,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
}
}
},
{
files: ['__tests__/**/*'],
rules: {
'import/no-namespace': 'off'
}
},
{
rules: {
'importPlugin/no-unresolved': 'off',
camelcase: 'off',
'i18n-text/no-en': 'off',
'importPlugin/no-namespace': 'off',
'no-console': 'warn',
'eslint-comments/no-use': 'off'
}
},
{
linterOptions: {
reportUnusedDisableDirectives: 'off'
}
}
];