shadow/eslint.config.js

43 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

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',
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",
],
}
);