mirror of
https://github.com/miro0o/miniWorldMap.git
synced 2026-07-22 07:46:00 +00:00
35 lines
713 B
TypeScript
35 lines
713 B
TypeScript
import tseslint from 'typescript-eslint';
|
|
import globals from 'globals';
|
|
import { globalIgnores } from 'eslint/config';
|
|
|
|
export default tseslint.config(
|
|
globalIgnores([
|
|
'node_modules',
|
|
'dist',
|
|
'dev-vault',
|
|
'esbuild.config.mjs',
|
|
'version-bump.mjs',
|
|
'versions.json',
|
|
'main.js',
|
|
'legacy',
|
|
'package.json',
|
|
'package-lock.json',
|
|
'tsconfig.json',
|
|
]),
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
__GALAXY_DEV__: 'readonly',
|
|
},
|
|
parserOptions: {
|
|
projectService: {
|
|
allowDefaultProject: ['eslint.config.mts', 'manifest.json'],
|
|
},
|
|
tsconfigRootDir: import.meta.dirname,
|
|
extraFileExtensions: ['.json'],
|
|
},
|
|
},
|
|
},
|
|
...tseslint.configs.recommended,
|
|
);
|