mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:27:32 +00:00
fix(login): eslint v9
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
root: true,
|
|
||||||
// This tells ESLint to load the config from the package `@zitadel/eslint-config`
|
|
||||||
extends: ["@zitadel/eslint-config"],
|
|
||||||
settings: {
|
|
||||||
next: {
|
|
||||||
rootDir: ["apps/*/"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
@@ -7,8 +7,8 @@
|
|||||||
"test:unit": "pnpm vitest",
|
"test:unit": "pnpm vitest",
|
||||||
"test:unit:standalone": "pnpm test:unit",
|
"test:unit:standalone": "pnpm test:unit",
|
||||||
"test:unit:watch": "pnpm test:unit --watch",
|
"test:unit:watch": "pnpm test:unit --watch",
|
||||||
"lint": "pnpm exec next lint && pnpm exec prettier --check .",
|
"lint": "pnpm exec eslint . && pnpm exec prettier --check .",
|
||||||
"lint:fix": "pnpm exec prettier --write .",
|
"lint:fix": "pnpm exec eslint . --fix && pnpm exec prettier --write .",
|
||||||
"lint-staged": "lint-staged",
|
"lint-staged": "lint-staged",
|
||||||
"build": "pnpm exec next build",
|
"build": "pnpm exec next build",
|
||||||
"build:login:standalone": "NEXT_PUBLIC_BASE_PATH=/ui/v2/login NEXT_OUTPUT_MODE=standalone pnpm build",
|
"build:login:standalone": "NEXT_PUBLIC_BASE_PATH=/ui/v2/login NEXT_OUTPUT_MODE=standalone pnpm build",
|
||||||
|
39
login/eslint.config.cjs
Normal file
39
login/eslint.config.cjs
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
const { fixupConfigRules } = require("@eslint/compat");
|
||||||
|
const { FlatCompat } = require("@eslint/eslintrc");
|
||||||
|
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = [
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
"**/.next/**",
|
||||||
|
"**/node_modules/**",
|
||||||
|
"**/dist/**",
|
||||||
|
"**/build/**",
|
||||||
|
"**/*_pb.js",
|
||||||
|
"**/*_pb.d.ts",
|
||||||
|
"**/packages/zitadel-proto/**",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
...fixupConfigRules(compat.extends("next/core-web-vitals", "prettier")),
|
||||||
|
{
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: {
|
||||||
|
requireConfigFile: false,
|
||||||
|
babelOptions: {
|
||||||
|
presets: ["next/babel"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"@next/next/no-html-link-for-pages": "off",
|
||||||
|
},
|
||||||
|
settings: {
|
||||||
|
next: {
|
||||||
|
rootDir: ["apps/*/"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
@@ -32,18 +32,20 @@
|
|||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@typescript-eslint/parser": "^7.9.0"
|
"@typescript-eslint/parser": "^8.35.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@changesets/cli": "^2.29.2",
|
"@changesets/cli": "^2.29.2",
|
||||||
|
"@eslint/compat": "^1.3.1",
|
||||||
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@vitejs/plugin-react": "^4.4.1",
|
"@vitejs/plugin-react": "^4.4.1",
|
||||||
"@zitadel/eslint-config": "workspace:*",
|
"@zitadel/eslint-config": "workspace:*",
|
||||||
"@zitadel/prettier-config": "workspace:*",
|
"@zitadel/prettier-config": "workspace:*",
|
||||||
"axios": "^1.8.4",
|
"axios": "^1.8.4",
|
||||||
"dotenv": "^16.5.0",
|
"dotenv": "^16.5.0",
|
||||||
"dotenv-cli": "^8.0.0",
|
"dotenv-cli": "^8.0.0",
|
||||||
"eslint": "8.57.1",
|
"eslint": "9.30.1",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"prettier-plugin-organize-imports": "^4.1.0",
|
"prettier-plugin-organize-imports": "^4.1.0",
|
||||||
"tsup": "^8.4.0",
|
"tsup": "^8.4.0",
|
||||||
|
@@ -1,13 +1,23 @@
|
|||||||
module.exports = {
|
const { FlatCompat } = require("@eslint/eslintrc");
|
||||||
parser: "@babel/eslint-parser",
|
|
||||||
extends: ["next", "turbo", "prettier"],
|
const compat = new FlatCompat({
|
||||||
rules: {
|
baseDirectory: __dirname,
|
||||||
"@next/next/no-html-link-for-pages": "off",
|
});
|
||||||
},
|
|
||||||
|
module.exports = [
|
||||||
|
...compat.extends("next", "turbo", "prettier"),
|
||||||
|
{
|
||||||
|
languageOptions: {
|
||||||
|
parser: require("@babel/eslint-parser"),
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
requireConfigFile: false,
|
requireConfigFile: false,
|
||||||
babelOptions: {
|
babelOptions: {
|
||||||
presets: ["next/babel"],
|
presets: ["next/babel"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
},
|
||||||
|
rules: {
|
||||||
|
"@next/next/no-html-link-for-pages": "off",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
@@ -7,7 +7,8 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/parser": "^7.9.0",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
|
"@typescript-eslint/parser": "^8.35.1",
|
||||||
"eslint-config-next": "^14.2.18",
|
"eslint-config-next": "^14.2.18",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-config-turbo": "^2.0.9",
|
"eslint-config-turbo": "^2.0.9",
|
||||||
|
659
login/pnpm-lock.yaml
generated
659
login/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user