diff --git a/.changeset/flat-ties-beam.md b/.changeset/flat-ties-beam.md new file mode 100644 index 0000000..bf85251 --- /dev/null +++ b/.changeset/flat-ties-beam.md @@ -0,0 +1,5 @@ +--- +"@hyperse/eslint-config-hyperse": patch +--- + +renmame `hyperse-io` to `hyperse` diff --git a/.changeset/slow-sheep-hear.md b/.changeset/slow-sheep-hear.md index 29abaec..22a5d5b 100644 --- a/.changeset/slow-sheep-hear.md +++ b/.changeset/slow-sheep-hear.md @@ -1,5 +1,5 @@ --- -"@hyperse-io/eslint-config-hyperse": patch +'@hyperse/eslint-config-hyperse': patch --- initial eslint-config-hyperse based eslint V9 diff --git a/CHANGELOG.md b/CHANGELOG.md index 57c9f69..ec567f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -# @hyperse-io/eslint-config-hyperse +# @hyperse/eslint-config-hyperse diff --git a/README.md b/README.md index 7cf8449..b277bd4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @hyperse-io/eslint-config-hyperse +# @hyperse/eslint-config-hyperse 🛠 These are my settings for TypeScript / ESLint / Prettier in a project, also support mono / esm 📦 @@ -6,7 +6,7 @@ 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) @@ -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 @@ -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 @@ -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 diff --git a/examples/next/tsconfig.json b/examples/next/tsconfig.json index 71dcc5e..d1ba8ec 100644 --- a/examples/next/tsconfig.json +++ b/examples/next/tsconfig.json @@ -8,7 +8,7 @@ "noEmit": false, "incremental": true, "paths": { - "@hyperse-io/eslint-config-hyperse": [ + "@hyperse/eslint-config-hyperse": [ "../../src/index.ts" ] }, diff --git a/examples/node/package.json b/examples/node/package.json index 29da3cd..3f7d29f 100644 --- a/examples/node/package.json +++ b/examples/node/package.json @@ -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", diff --git a/examples/node/tsconfig.json b/examples/node/tsconfig.json index ee4b0c8..4ff73fa 100644 --- a/examples/node/tsconfig.json +++ b/examples/node/tsconfig.json @@ -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"] diff --git a/examples/react/package.json b/examples/react/package.json index 6b1f2de..5d408c7 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -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", diff --git a/examples/react/tsconfig.json b/examples/react/tsconfig.json index d96c58c..1ec9469 100644 --- a/examples/react/tsconfig.json +++ b/examples/react/tsconfig.json @@ -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"] }, diff --git a/package.json b/package.json index e3878c0..ae916cf 100644 --- a/package.json +++ b/package.json @@ -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": [ @@ -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", diff --git a/yarn.lock b/yarn.lock index 93f39c6..1de7c1e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"