-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patheslint.config.js
More file actions
73 lines (71 loc) · 1.66 KB
/
eslint.config.js
File metadata and controls
73 lines (71 loc) · 1.66 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
65
66
67
68
69
70
71
72
73
import { configs } from 'eslint-plugin-unicorn';
import eslintPluginImport from 'eslint-plugin-import';
import eslintjs from '@eslint/js';
import { configs as __configs } from 'typescript-eslint';
export default [
eslintjs.configs.recommended,
configs['flat/recommended'],
// eslintPluginImport.configs.recommended,
// eslintPluginImport.configs.typescript,
...__configs.recommendedTypeChecked,
{
plugins: {
import: eslintPluginImport,
},
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': ['warn'],
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern:
'^_|^onStart$|^onGameTick$|^onNpcAnimationChanged$|^onActorDeath$|^onHitsplatApplied$|^onInteractingChanged$|^onChatMessage$',
},
],
'@typescript-eslint/no-explicit-any': 'warn',
'unicorn/numeric-separators-style': 'off',
'unicorn/prefer-spread': 'off',
'unicorn/no-null': 'off',
'unicorn/no-array-for-each': 'off', // TODO: Force array for each
},
},
{
languageOptions: {
ecmaVersion: 'latest',
parserOptions: {
tsconfigRootDir: './',
project: true,
sourceType: 'module',
ecmaVersion: 'latest',
},
},
},
{
ignores: [
'**/generated/**',
'**/dist/**',
'**/build/**',
'**/tmp/**',
'**/node_modules/**',
'types/**',
'tsconfig.json',
'tsconfig.*.json',
'.prettierrc',
'.prettierignore',
'.editorconfig',
'eslint.config.js',
'project.json',
'package.json',
'**/rollup.cjs',
'**/tsconfig.json',
'**/tsconfig.*.json',
'**/rollup.cjs',
'**/*.js',
'scripts',
'**/*.cjs',
'**/*.d.ts',
],
},
];