mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-02-14 11:41:41 -08:00
Simplify ESLint file matching patterns
This commit is contained in:
parent
d8f378d7e1
commit
84350a4cd0
1 changed files with 3 additions and 3 deletions
|
|
@ -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?"],
|
||||
})),
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue