mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-25 16:52:17 +00:00
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
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 importPlugin from "eslint-plugin-import";
|
|
import globals from "globals";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["dist/**", "node_modules/**"],
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.ts"],
|
|
plugins: {
|
|
"@typescript-eslint": tsPlugin,
|
|
import: importPlugin,
|
|
},
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
ecmaVersion: 2022,
|
|
sourceType: "module",
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
},
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: true,
|
|
},
|
|
},
|
|
rules: {
|
|
...tsPlugin.configs.recommended.rules,
|
|
...importPlugin.configs.recommended.rules,
|
|
"no-unused-vars": "off",
|
|
"no-undef": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{ argsIgnorePattern: "^_" },
|
|
],
|
|
},
|
|
},
|
|
prettierConfig,
|
|
];
|