Skip to content

Commit 7b269ed

Browse files
committed
chore: remove deprecated ESLint and Prettier configurations, update project structure and dependencies
- Deleted obsolete .eslintignore and .eslintrc.cjs files. - Introduced new eslint.config.js for ESLint configuration. - Updated .gitignore to exclude new files. - Added .prettierrc.cjs for Prettier configuration. - Updated package.json scripts for linting and building. - Updated dependencies in pnpm-lock.yaml and package.json. - Added new vitest.workspace.ts for workspace configuration. - Created publish-preview-release.js script for CI package publishing. Signed-off-by: prisis <d.bannert@anolilab.de>
1 parent ad419b1 commit 7b269ed

File tree

24 files changed

+4122
-5820
lines changed

24 files changed

+4122
-5820
lines changed

.cursor/mcp.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"mcpServers": {
3+
"nx-mcp": {
4+
"url": "http://localhost:9448/sse"
5+
}
6+
}
7+
}

.eslintignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 35 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,6 @@ common/autoinstallers/*/.npmrc
136136
/packages/commitlint-config/.czrc
137137
/packages/lint-staged-config/.lintstagedrc.js
138138
/packages/lint-staged-config/.husky
139+
140+
.cursor/rules/nx-rules.mdc
141+
.github/instructions/nx.instructions.md

.lintstagedrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import { defineConfig } from "./packages/lint-staged-config/dist/index.mjs";
22

3-
export default defineConfig();
3+
export default defineConfig({
4+
eslint: {
5+
config: "./eslint.config.js",
6+
}
7+
});

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.18
1+
20.18

.prettierrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exports.modules = require("./packages/prettier-config");

.prettierrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"nxConsole.generateAiAgentRules": true,
3+
4+
// Disable the default formatter, use eslint instead
5+
"prettier.enable": false,
6+
"editor.formatOnSave": false,
7+
8+
// Auto fix
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": "explicit",
11+
"source.organizeImports": "never"
12+
},
13+
14+
"eslint.runtime": "node",
15+
16+
// Silent the stylistic rules in you IDE, but still auto fix them
17+
"eslint.rules.customizations": [
18+
{ "rule": "@stylistic/*", "severity": "off", "fixable": true },
19+
{ "rule": "*-indent", "severity": "off", "fixable": true },
20+
{ "rule": "*-spacing", "severity": "off", "fixable": true },
21+
{ "rule": "*-spaces", "severity": "off", "fixable": true },
22+
{ "rule": "*-order", "severity": "off", "fixable": true },
23+
{ "rule": "*-dangle", "severity": "off", "fixable": true },
24+
{ "rule": "*-newline", "severity": "off", "fixable": true },
25+
{ "rule": "*quotes", "severity": "off", "fixable": true },
26+
{ "rule": "*semi", "severity": "off", "fixable": true }
27+
],
28+
29+
// Enable eslint for all supported languages
30+
"eslint.validate": [
31+
"javascript",
32+
"javascriptreact",
33+
"typescript",
34+
"typescriptreact",
35+
"vue",
36+
"html",
37+
"markdown",
38+
"json",
39+
"json5",
40+
"jsonc",
41+
"yaml",
42+
"toml",
43+
"xml"
44+
],
45+
}

babel.config.cjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { createConfig } from "./packages/eslint-config/dist/index.mjs";
2+
3+
export default createConfig({
4+
zod: true,
5+
unocss: true,
6+
ignores: [
7+
"eslint.config.js"
8+
]
9+
});

nx.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@
1313
},
1414
"lint:eslint": {
1515
"dependsOn": ["default"],
16-
"inputs": ["default", "{workspaceRoot}/.eslintrc.cjs", "{workspaceRoot}/.eslintrc.js"],
16+
"inputs": [
17+
"default",
18+
"{workspaceRoot}/eslint.config.js"
19+
],
1720
"cache": true
1821
},
1922
"lint:eslint:fix": {
2023
"dependsOn": ["default"],
21-
"inputs": ["default", "{workspaceRoot}/.eslintrc.cjs", "{workspaceRoot}/.eslintrc.js"],
24+
"inputs": [
25+
"default",
26+
"{workspaceRoot}/eslint.config.js"
27+
],
2228
"cache": true
2329
},
2430
"lint:package-json": {
@@ -38,11 +44,19 @@
3844
"cache": true
3945
},
4046
"test": {
41-
"dependsOn": ["default", "^default", "{projectRoot}/vitest.config.ts"],
47+
"dependsOn": [
48+
"default",
49+
"^default",
50+
"{projectRoot}/vitest.config.ts"
51+
],
4252
"cache": true
4353
},
4454
"test:coverage": {
45-
"dependsOn": ["default", "^default", "{projectRoot}/vitest.config.ts"],
55+
"dependsOn": [
56+
"default",
57+
"^default",
58+
"{projectRoot}/vitest.config.ts"
59+
],
4660
"cache": true
4761
}
4862
},
@@ -52,15 +66,18 @@
5266
}
5367
},
5468
"namedInputs": {
55-
"default": ["sharedGlobals", "{projectRoot}/**/*", "!{projectRoot}/**/*.md"],
69+
"default": [
70+
"sharedGlobals",
71+
"{projectRoot}/**/*",
72+
"!{projectRoot}/**/*.md"
73+
],
5674
"public": [
5775
"default",
5876
"{workspaceRoot}/dist",
5977
"!{workspaceRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
6078
"!{workspaceRoot}/vite.config.ts",
6179
"!{workspaceRoot}/vitest.config.ts",
62-
"!{workspaceRoot}/.eslintrc.js",
63-
"!{workspaceRoot}/.eslintrc.cjs",
80+
"!{workspaceRoot}/eslint.config.js",
6481
"!{workspaceRoot}/.storybook/**/*",
6582
"!{workspaceRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)"
6683
],
@@ -75,15 +92,10 @@
7592
"default",
7693
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
7794
"!{projectRoot}/tsconfig.spec.json",
78-
"!{projectRoot}/.eslintrc.json",
79-
"!{projectRoot}/eslint.config.js",
80-
"!{projectRoot}/eslint.config.cjs"
95+
"!{projectRoot}/eslint.config.js"
8196
]
8297
},
8398
"parallel": 5,
84-
"affected": {
85-
"defaultBase": "main"
86-
},
8799
"defaultBase": "main",
88100
"$schema": "./node_modules/nx/schemas/nx-schema.json"
89101
}

0 commit comments

Comments
 (0)