Skip to content

Commit

Permalink
perf: Change eslint-config-vitnode to vitnode-config
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Jul 12, 2024
1 parent 7c4f359 commit 0884d1d
Show file tree
Hide file tree
Showing 30 changed files with 99 additions and 96 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,18 @@ jobs:

- name: Publish canary
if: github.event.inputs.release == 'canary'
run: pnpm publish --provenance --access public --filter vitnode-backend --filter vitnode-frontend --filter vitnode-shared --filter create-vitnode-app --filter eslint-config-vitnode --tag canary --no-git-checks
run: pnpm publish --provenance --access public --filter vitnode-backend --filter vitnode-frontend --filter vitnode-shared --filter create-vitnode-app --filter vitnode-config --tag canary --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish release candidate
if: github.event.inputs.release == 'release-candidate'
run: pnpm publish --provenance --access public --filter vitnode-backend --filter vitnode-frontend --filter vitnode-shared --filter create-vitnode-app --filter eslint-config-vitnode --tag rc --no-git-checks
run: pnpm publish --provenance --access public --filter vitnode-backend --filter vitnode-frontend --filter vitnode-shared --filter create-vitnode-app --filter vitnode-config --tag rc --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish stable
if: github.event.inputs.release == 'stable'
run: pnpm publish --provenance --access public --filter vitnode-backend --filter vitnode-frontend --filter vitnode-shared --filter create-vitnode-app --filter eslint-config-vitnode --no-git-checks
run: pnpm publish --provenance --access public --filter vitnode-backend --filter vitnode-frontend --filter vitnode-shared --filter create-vitnode-app --filter vitnode-config --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion apps/backend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["eslint-config-vitnode/.eslintrc.shared.json"],
"extends": ["vitnode-config/.eslintrc.shared.json"],
"ignorePatterns": ["uploads"]
}
2 changes: 1 addition & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"drizzle-kit": "^0.23.0",
"drizzle-orm": "^0.32.0",
"eslint": "^8.57.0",
"eslint-config-vitnode": "workspace:*",
"vitnode-config": "workspace:*",
"object-path": "^0.11.8",
"source-map-support": "^0.5.21",
"ts-jest": "^29.2.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "eslint-config-vitnode/tsconfig.nest.json",
"extends": "vitnode-config/tsconfig.nest.json",
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"ignorePatterns": ["next-config-temp.js"],
"extends": ["eslint-config-vitnode/.eslintrc.react.json"]
"extends": ["vitnode-config/.eslintrc.react.json"]
}
2 changes: 1 addition & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-next": "15.0.0-canary.64",
"eslint-config-vitnode": "workspace:*",
"vitnode-config": "workspace:*",
"geist": "^1.3.0",
"postcss": "^8.4.39",
"tailwind-merge": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "eslint-config-vitnode/tsconfig.next.json",
"extends": "vitnode-config/tsconfig.next.json",
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
Expand Down
7 changes: 5 additions & 2 deletions bump-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const packages = [
'create-vitnode-app',
'frontend',
'shared',
'eslint-config-vitnode',
'config',
];

const getPackageJson = () => {
Expand Down Expand Up @@ -233,7 +233,10 @@ function logError(error) {
newVersion = `${tagPrefix}${newVersion}${tagSuffix}`;

// Bump the version
console.log(`Bumping version from ${currentVersion} to ${newVersion}`, version);
console.log(
`Bumping version from ${currentVersion} to ${newVersion}`,
version,
);
await runInWorkspace('npm', [
'version',
'--allow-same-version=true',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"prettier": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.5",
"turbo": "^2.0.6",
"eslint-config-vitnode": "workspace:*"
"vitnode-config": "workspace:*"
},
"packageManager": "[email protected]",
"prettier": "eslint-config-vitnode/.prettierrc.json"
"prettier": "vitnode-config/.prettierrc.json"
}
2 changes: 1 addition & 1 deletion packages/backend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["eslint-config-vitnode/.eslintrc.shared.json"],
"extends": ["vitnode-config/.eslintrc.shared.json"],
"ignorePatterns": ["tsup.config.ts"]
}
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"nodemailer": "^6.9.14",
"concurrently": "^8.2.2",
"dotenv": "^16.4.5",
"eslint-config-vitnode": "workspace:*",
"vitnode-config": "workspace:*",
"http-errors": "^2.0.0",
"object-path": "^0.11.8",
"ts-node": "^10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "eslint-config-vitnode/tsconfig.nest.json",
"extends": "vitnode-config/tsconfig.nest.json",
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ Package providing ESLint & TSConfig configuration from [VitNode](https://vitnode
## Installation

```bash
npm install --save-dev eslint-config-vitnode
npm install --save-dev vitnode-config
```

or

```bash
pnpm add --save-dev eslint-config-vitnode
pnpm add --save-dev vitnode-config
```

or

```bash
yarn add --dev eslint-config-vitnode
yarn add --dev vitnode-config
```

## ESLint
Expand All @@ -49,7 +49,7 @@ File: `.eslintrc.json`

```json
{
"extends": "eslint-config-vitnode/.eslintrc.shared.json"
"extends": "vitnode-config/.eslintrc.shared.json"
}
```

Expand All @@ -61,7 +61,7 @@ File: `.eslintrc.json`

```json
{
"extends": "eslint-config-vitnode/.eslintrc.react.json"
"extends": "vitnode-config/.eslintrc.react.json"
}
```

Expand All @@ -75,7 +75,7 @@ File: `tsconfig.json`

```json
{
"extends": "eslint-config-vitnode/tsconfig.shared.json"
"extends": "vitnode-config/tsconfig.shared.json"
}
```

Expand All @@ -87,7 +87,7 @@ File: `tsconfig.json`

```json
{
"extends": "eslint-config-vitnode/tsconfig.nest.json"
"extends": "vitnode-config/tsconfig.nest.json"
}
```

Expand All @@ -99,7 +99,7 @@ File: `tsconfig.json`

```json
{
"extends": "eslint-config-vitnode/tsconfig.next.json"
"extends": "vitnode-config/tsconfig.next.json"
}
```

Expand All @@ -111,6 +111,6 @@ File: `package.json`

```json
{
"prettier": "eslint-config-vitnode/.prettierrc.json"
"prettier": "vitnode-config/.prettierrc.json"
}
```
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "eslint-config-vitnode",
"name": "vitnode-config",
"version": "0.0.7-canary.0",
"description": "ESLint, TSConfig config for VitNode",
"description": "ESLint, TSConfig, Prettier config for VitNode",
"author": "VitNode Team",
"license": "MIT",
"homepage": "https://VitNode.com",
"repository": {
"type": "git",
"url": "git+https://github.com/aXenDeveloper/VitNode.git",
"directory": "packages/eslint-config-vitnode"
"directory": "packages/config"
},
"type": "module",
"files": [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/create-vitnode-app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["eslint-config-vitnode/.eslintrc.shared.json"],
"extends": ["vitnode-config/.eslintrc.shared.json"],
"ignorePatterns": ["tsup.config.ts"],
"rules": {
"no-console": "off"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vitnode-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"commander": "^12.1.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3",
"eslint-config-vitnode": "workspace:*"
"vitnode-config": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["eslint-config-vitnode/.eslintrc.react.json"],
"extends": ["vitnode-config/.eslintrc.react.json"],
"ignorePatterns": [
"tailwind.config.ts",
"src/graphql/graphql.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"clsx": "^2.1.1",
"concurrently": "^8.2.2",
"dotenv": "^16.4.5",
"eslint-config-vitnode": "workspace:*",
"vitnode-config": "workspace:*",
"graphql": "^16.9.0",
"graphql-tag": "^2.12.6",
"tailwind-merge": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "eslint-config-vitnode/tsconfig.next.json",
"extends": "vitnode-config/tsconfig.next.json",
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["eslint-config-vitnode/.eslintrc.shared.json"]
"extends": ["vitnode-config/.eslintrc.shared.json"]
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"eslint-config-vitnode": "workspace:*",
"vitnode-config": "workspace:*",
"typescript": "^5.5.3"
}
}
2 changes: 1 addition & 1 deletion packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "eslint-config-vitnode/tsconfig.shared.json",
"extends": "vitnode-config/tsconfig.shared.json",
"compilerOptions": {
"target": "ESNext",
"module": "CommonJS",
Expand Down
Loading

0 comments on commit 0884d1d

Please sign in to comment.