mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
33 lines
816 B
JavaScript
33 lines
816 B
JavaScript
import js from "@eslint/js";
|
|
import tsPlugin from "@typescript-eslint/eslint-plugin";
|
|
import tsParser from "@typescript-eslint/parser";
|
|
import prettierConfig from "eslint-config-prettier/flat";
|
|
import pluginCypress from "eslint-plugin-cypress";
|
|
|
|
export default [
|
|
{ ignores: ["node_modules/**"] },
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.ts"],
|
|
plugins: {
|
|
"@typescript-eslint": tsPlugin,
|
|
},
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
"no-unused-vars": "off",
|
|
"no-undef": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ argsIgnorePattern: "^_" },
|
|
],
|
|
},
|
|
},
|
|
pluginCypress.configs.recommended,
|
|
prettierConfig,
|
|
];
|