Skip to content

Commit 79c9878

Browse files
committed
refactor: rename base package to @sylphlab/eslint-config-sylph
Updates package.json files, tsconfig paths, and import statements to use the non-suffixed name for the base package.
1 parent 1de273f commit 79c9878

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed

packages/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@sylphlab/eslint-config-sylph-base",
2+
"name": "@sylphlab/eslint-config-sylph",
33
"version": "1.0.1",
44
"description": "Base ESLint Flat Config (TS, Airbnb, Unicorn, Prettier) for SylphLab projects.",
55
"main": "./dist/src/index.js",

packages/react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@
4343
"access": "public"
4444
},
4545
"dependencies": {
46-
"@sylphlab/eslint-config-sylph-base": "workspace:*"
46+
"@sylphlab/eslint-config-sylph": "workspace:*"
4747
},
4848
"devDependencies": {
4949
"@types/node": "^20.0.0",
5050
"typescript": "^5.0.0",
5151
"typescript-eslint": "^7.0.0"
5252
},
5353
"peerDependencies": {
54+
"@sylphlab/eslint-config-sylph": "workspace:*",
5455
"@eslint/js": "^9.0.0",
5556
"@typescript-eslint/eslint-plugin": "^7.0.0",
5657
"@typescript-eslint/parser": "^7.0.0",

packages/react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import tseslint from 'typescript-eslint';
77
import type { Linter } from 'eslint';
88

99
// Import base config to combine
10-
import { baseConfig } from '@sylphlab/eslint-config-sylph-base';
10+
import { baseConfig } from '@sylphlab/eslint-config-sylph';
1111

1212
// Framework plugins (Direct imports)
1313
import reactPlugin from 'eslint-plugin-react';

packages/rn/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"typescript-eslint": "^7.0.0"
5353
},
5454
"peerDependencies": {
55+
"@sylphlab/eslint-config-sylph-react": "workspace:*",
5556
"@eslint/js": "^9.0.0",
5657
"@typescript-eslint/eslint-plugin": "^7.0.0",
5758
"@typescript-eslint/parser": "^7.0.0",

packages/vue/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@
4444
"access": "public"
4545
},
4646
"dependencies": {
47-
"@sylphlab/eslint-config-sylph-base": "workspace:*"
47+
"@sylphlab/eslint-config-sylph": "workspace:*"
4848
},
4949
"devDependencies": {
5050
"@types/node": "^20.0.0",
5151
"typescript": "^5.0.0",
5252
"typescript-eslint": "^7.0.0"
5353
},
5454
"peerDependencies": {
55+
"@sylphlab/eslint-config-sylph": "workspace:*",
5556
"@eslint/js": "^9.0.0",
5657
"@typescript-eslint/eslint-plugin": "^7.0.0",
5758
"@typescript-eslint/parser": "^7.0.0",

packages/vue/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// configs/eslint-config-sylph/packages/vue/src/vue.ts
22
// Import base config to combine
3-
import { baseConfig } from '@sylphlab/eslint-config-sylph-base';
3+
import { baseConfig } from '@sylphlab/eslint-config-sylph';
44
import * as eslintGlobals from 'globals';
55
import tseslint from 'typescript-eslint';
66
import type { Linter } from 'eslint';

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"declarationMap": true, // Ensure declaration maps are generated (needed for composite)
1919
"baseUrl": ".", // Needed for paths mapping
2020
"paths": { // Map workspace packages to their source for local dev/build resolution
21-
"@sylphlab/eslint-config-sylph-base": ["./packages/base/src/index.ts"],
21+
"@sylphlab/eslint-config-sylph": ["./packages/base/src/index.ts"], // Renamed base package path
2222
"@sylphlab/eslint-config-sylph-react": ["./packages/react/src/index.ts"],
2323
"@sylphlab/eslint-config-sylph-vue": ["./packages/vue/src/index.ts"],
2424
"@sylphlab/eslint-config-sylph-rn": ["./packages/rn/src/index.ts"]

0 commit comments

Comments
 (0)