mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 15:23:03 +02:00
30 lines
560 B
JavaScript
30 lines
560 B
JavaScript
|
|
// @ts-check
|
||
|
|
import eslint from "@eslint/js";
|
||
|
|
import tseslint from "typescript-eslint";
|
||
|
|
|
||
|
|
export default tseslint.config(
|
||
|
|
eslint.configs.recommended,
|
||
|
|
...tseslint.configs.recommended,
|
||
|
|
{
|
||
|
|
files: ["TS/**/*.{ts,tsx}"],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
rules: {
|
||
|
|
"@typescript-eslint/no-unused-vars": [
|
||
|
|
"error",
|
||
|
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
ignores: [
|
||
|
|
"**/node_modules/**",
|
||
|
|
"**/dist/**",
|
||
|
|
"**/build/**",
|
||
|
|
"**/*.d.ts",
|
||
|
|
"**/*.config.ts",
|
||
|
|
"**/*.config.js",
|
||
|
|
],
|
||
|
|
},
|
||
|
|
);
|