Skip to content

Commit

Permalink
chore: renmame hyperse-io to hyperse
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed May 27, 2024
1 parent 1fe03a1 commit 98ebdf8
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-ties-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/eslint-config-hyperse": patch
---

renmame `hyperse-io` to `hyperse`
2 changes: 1 addition & 1 deletion .changeset/slow-sheep-hear.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@hyperse-io/eslint-config-hyperse": patch
'@hyperse/eslint-config-hyperse': patch
---

initial eslint-config-hyperse based eslint V9
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# @hyperse-io/eslint-config-hyperse
# @hyperse/eslint-config-hyperse
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# @hyperse-io/eslint-config-hyperse
# @hyperse/eslint-config-hyperse

🛠 These are my settings for TypeScript / ESLint / Prettier in a project, also support mono / esm 📦

These are the ESLint and Prettier settings for a Next.js project ⚡️

# Table of Contents

- [Eslint / Prettier Setup of @hyperse-io 📦](#eslint--prettier-setup-of-hyperse)
- [Eslint / Prettier Setup of @hyperse 📦](#eslint--prettier-setup-of-hyperse)
- [Table of Contents](#table-of-contents)
- [What it does](#what-it-does)
- [Local / Per Project Install](#local--per-project-install)
Expand All @@ -30,15 +30,15 @@ These are the ESLint and Prettier settings for a Next.js project ⚡️
2. Then we need to install the config:

```
npm i -D @hyperse-io/eslint-config-hyperse
npm i -D @hyperse/eslint-config-hyperse
```

1. Create a `eslint.config.js` file in the root of your project's directory (it should live where package.json does). Your `eslint.config.js` file should look like this:

2. Extends your config with the minimal base of `@hyperse-io` config :
2. Extends your config with the minimal base of `@hyperse` config :

```ts
import { base, defineConfig } from '@hyperse-io/eslint-config-hyperse';
import { base, defineConfig } from '@hyperse/eslint-config-hyperse';

export default defineConfig([
// ...typescript
Expand Down Expand Up @@ -69,7 +69,7 @@ You can add two scripts to your package.json to lint and/or fix your code:
You can also add additional rules for Next.js

```ts
import { base, nextjs, defineConfig } from '@hyperse-io/eslint-config-hyperse';
import { base, nextjs, defineConfig } from '@hyperse/eslint-config-hyperse';

export default defineConfig([
// ...typescript
Expand All @@ -88,7 +88,7 @@ export default defineConfig([
You can also add additional rules for only React.js ecosystem (without Next.js).

```ts
import { base, nextjs, defineConfig } from '@hyperse-io/eslint-config-hyperse';
import { base, nextjs, defineConfig } from '@hyperse/eslint-config-hyperse';

export default defineConfig([
// ...typescript
Expand Down
2 changes: 1 addition & 1 deletion examples/next/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noEmit": false,
"incremental": true,
"paths": {
"@hyperse-io/eslint-config-hyperse": [
"@hyperse/eslint-config-hyperse": [
"../../src/index.ts"
]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lint": "eslint . --ext .ts,.mts,.tsx,.js,.jsx,.cjs,.mjs --cache --cache-location ../../.cache/eslint/commander.eslintcache"
},
"dependencies": {
"@hyperse-io/eslint-config-hyperse": "workspace:*"
"@hyperse/eslint-config-hyperse": "workspace:*"
},
"devDependencies": {
"@types/node": "20.12.11",
Expand Down
2 changes: 1 addition & 1 deletion examples/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noEmit": false,
"incremental": true,
"paths": {
"@hyperse-io/eslint-config-hyperse": ["../../src/index.ts"]
"@hyperse/eslint-config-hyperse": ["../../src/index.ts"]
},

"types": ["vitest/globals"]
Expand Down
2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lint": "eslint . --ext .ts,.mts,.tsx,.js,.jsx,.cjs,.mjs --cache --cache-location ../../.cache/eslint/commander.eslintcache"
},
"dependencies": {
"@hyperse-io/eslint-config-hyperse": "workspace:*"
"@hyperse/eslint-config-hyperse": "workspace:*"
},
"devDependencies": {
"@types/node": "20.12.11",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noEmit": false,
"incremental": true,
"paths": {
"@hyperse-io/eslint-config-hyperse": ["../../src/index.ts"]
"@hyperse/eslint-config-hyperse": ["../../src/index.ts"]
},
"types": ["vitest/globals"]
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperse-io/eslint-config-hyperse",
"name": "@hyperse/eslint-config-hyperse",
"version": "1.0.0",
"description": "🛠 These are settings for TypeScript / ESLint / Prettier in a project",
"keywords": [
Expand Down Expand Up @@ -51,7 +51,7 @@
"build": "rimraf dist && tsc -p ./tsconfig.build.json ",
"clean": "rimraf --no-glob ./dist ./coverage ./.eslintcache ./tsconfig.tsbuildinfo",
"test": "vitest run",
"lint": "tsc --noEmit && eslint .",
"lint": "yarn run typecheck && eslint .",
"lint:fix": "npm run lint -- --fix",
"typecheck": "tsc --project ./tsconfig.json --noEmit",
"lint-staged-files": "lint-staged --allow-empty",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,9 @@ __metadata:
languageName: node
linkType: hard

"@hyperse-io/eslint-config-hyperse@workspace:.":
"@hyperse/eslint-config-hyperse@workspace:.":
version: 0.0.0-use.local
resolution: "@hyperse-io/eslint-config-hyperse@workspace:."
resolution: "@hyperse/eslint-config-hyperse@workspace:."
dependencies:
"@changesets/changelog-github": "npm:0.5.0"
"@changesets/cli": "npm:2.27.3"
Expand Down

0 comments on commit 98ebdf8

Please sign in to comment.