1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-11 09:11:50 +00:00

Simplify ESLint file matching patterns

This commit is contained in:
Даниїл Григор'єв 2024-06-18 14:43:55 +03:00
parent d8f378d7e1
commit 84350a4cd0
No known key found for this signature in database
GPG Key ID: B890DF16341D8C1D

View File

@ -1,7 +1,7 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import globals from "globals";
import path from "path";
import tseslint from "typescript-eslint";
import { fileURLToPath } from "url";
const baseConfig = tseslint.config(
@ -56,11 +56,11 @@ export default [
},
...nodeConfig.map(config => ({
...config,
files: ["*.ts", "*.js", "electron/**/*.ts", "electron/**/*.js", "gulp/**/*.ts", "gulp/**/*.js"],
files: ["*.(ts|js)", "(gulp|electron)/**/*.(ts|js)"],
ignores: ["gulp/preloader/*.js"],
})),
...runtimeConfig.map(config => ({
...config,
files: ["js", "ts", "jsx", "tsx"].map(ext => `src/**/*.${ext}`),
files: ["src/**/*.(ts|js)x?"],
})),
];