generated from League-of-Foundry-Developers/FoundryVTT-Module-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
31 lines (30 loc) · 1.12 KB
/
eslint.config.js
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
import tseslint from 'typescript-eslint';
import { LintGolem } from '@magik_io/lint_golem';
export default tseslint.config(
...new LintGolem({
// This is the only REQUIRED field; It should be `__dirname` or `import.meta.url`
rootDir: import.meta.url,
/** Optional fields */
/** By default, it will look glob search for tsconfig.json / tsconfig.*.json in the root dir,
* if your tsconfig is in a different location, you can specify it here */
/** To disable type checking on specific files, you can specify them here */
disableTypeCheckOn: [
],
/** To ignore files / paths from linting, specify them here */
ignoreGlobs: [
],
/** To disable a rule, simply add it to the disabledRules array */
disabledRules: [
'n/no-unsupported-features/node-builtins',
'n/no-missing-import',
'n/no-unpublished-import',
"@typescript-eslint/ban-types",
"@typescript-eslint/no-explicit-any",
],
/** To modify a rule just specify it in the rules object */
rules: {
'no-class-assign': 'warn'
},
/* Dont forget to end your call with `.config` */
}).config
)