pokemon-showdown-loginserver/eslint.config.mjs
Guangcong Luo 8c32fabe67
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
Node.js CI / build (20.x) (push) Has been cancelled
ESLint: Fix config
2025-02-25 21:32:17 -08:00

54 lines
907 B
JavaScript

// @ts-check
import { configs, configure, globals } from './eslint-ps-standard.mjs';
export default configure([
{
ignores: [
'.dist',
],
},
{
name: "JavaScript",
files: [
'*.mjs', // look mom I'm linting myself!
'**/*.js',
],
extends: [configs.js],
languageOptions: {
globals: {
...globals.builtin,
...globals.node,
...globals.mocha,
},
},
},
{
name: "TypeScript",
files: [
"**/*.ts",
],
extends: [configs.ts],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/no-require-imports": "off",
// used for documentation
"@typescript-eslint/no-redundant-type-constituents": "off",
},
},
{
name: "TypeScript tests",
files: [
"**/*.test.ts",
],
rules: {
"@typescript-eslint/restrict-template-expressions": "off",
},
},
]);