shadow/eslint.config.js
shanec 19b2fbc692 fixed ecmaVersion for eslint
Signed-off-by: shanec <shane@scaffoe.com>
2024-04-23 20:26:36 -04:00

43 lines
No EOL
1.1 KiB
JavaScript

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