mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-13 18:21:51 +00:00
Simplify ESLint file matching patterns
This commit is contained in:
parent
d8f378d7e1
commit
84350a4cd0
@ -1,7 +1,7 @@
|
|||||||
import eslint from "@eslint/js";
|
import eslint from "@eslint/js";
|
||||||
import tseslint from "typescript-eslint";
|
|
||||||
import globals from "globals";
|
import globals from "globals";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
|
|
||||||
const baseConfig = tseslint.config(
|
const baseConfig = tseslint.config(
|
||||||
@ -56,11 +56,11 @@ export default [
|
|||||||
},
|
},
|
||||||
...nodeConfig.map(config => ({
|
...nodeConfig.map(config => ({
|
||||||
...config,
|
...config,
|
||||||
files: ["*.ts", "*.js", "electron/**/*.ts", "electron/**/*.js", "gulp/**/*.ts", "gulp/**/*.js"],
|
files: ["*.(ts|js)", "(gulp|electron)/**/*.(ts|js)"],
|
||||||
ignores: ["gulp/preloader/*.js"],
|
ignores: ["gulp/preloader/*.js"],
|
||||||
})),
|
})),
|
||||||
...runtimeConfig.map(config => ({
|
...runtimeConfig.map(config => ({
|
||||||
...config,
|
...config,
|
||||||
files: ["js", "ts", "jsx", "tsx"].map(ext => `src/**/*.${ext}`),
|
files: ["src/**/*.(ts|js)x?"],
|
||||||
})),
|
})),
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user