2024-04-24 01:24:22 +01:00
|
|
|
import js from "@eslint/js";
|
|
|
|
import ts from 'typescript-eslint';
|
|
|
|
import tsEslintParser from "@typescript-eslint/parser";
|
|
|
|
import tsEslint from "@typescript-eslint/eslint-plugin";
|
|
|
|
import globals from "globals";
|
|
|
|
|
|
|
|
export default ts.config(
|
|
|
|
js.configs.recommended,
|
|
|
|
...ts.configs.recommended,
|
|
|
|
{
|
|
|
|
languageOptions: {
|
|
|
|
parser: tsEslintParser,
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'module',
|
2024-04-24 01:26:36 +01:00
|
|
|
ecmaVersion: 2021,
|
2024-04-24 01:24:22 +01:00
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
...globals.browser,
|
|
|
|
...globals.es2021,
|
|
|
|
...globals.node,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: {
|
|
|
|
tseslint: tsEslint,
|
|
|
|
},
|
|
|
|
ignores: [
|
|
|
|
".DS_Store",
|
|
|
|
"node_modules",
|
|
|
|
"/dist",
|
|
|
|
"/cmd",
|
|
|
|
"/utils",
|
|
|
|
"/package",
|
|
|
|
"/build",
|
|
|
|
".env",
|
|
|
|
".env.*",
|
|
|
|
"!.env.example",
|
|
|
|
"pnpm-lock.yaml",
|
|
|
|
"package-lock.json",
|
|
|
|
"yarn.lock",
|
|
|
|
"bun.lockb",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
);
|