diff --git a/CHANGELOG.md b/CHANGELOG.md index 34f7585..8c55a1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ > Changes to the `js` flavor are also applied to all the other flavors. > Changes to the `ts` flavor are also applied to `react` and `react-native` flavors. -## 3.10.0~1 +## 3.10.0~2 - Improved the bin. Now the dependency is added with the command and we are using a lighter package for the CLI parsing. diff --git a/README.md b/README.md index 60bcd34..fb21a99 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Take a look into the source files to see what will be used as plugins, extends, ### Automatically -Run `npx eslint-config-gev `, being flavor one of the following: `ts, react-ts, react-native-ts, js, react-js, react-native-js`. This list and further options can be seen by running `npx eslint-config-gev -h`. +Run `npx eslint-config-gev `, being flavor one of the following: `ts, react-ts, react-native-ts, js, react-js, react-native-js`. This list and further options can be seen by running `npx eslint-config-gev --help`. This command adds the required package to your package.json and sets up the `.eslintrc.cjs`. diff --git a/bin.js b/bin.js index dfcab95..a9254b5 100644 --- a/bin.js +++ b/bin.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const { defineCommand, runMain, showUsage } = require('citty'); +const { defineCommand, runMain } = require('citty'); const path = require('path'); const fs = require('fs'); @@ -60,15 +60,8 @@ const main = defineCommand({ required: true, description: `Your project kind. One of these: ${flavorsString}`, }, - help: { - type: 'boolean', - alias: 'h', - description: 'Display help', - }, }, - run: ({ args: { flavor, force, js, help } }) => { - if (help) showUsage(main); - + run: ({ args: { flavor, force, js } }) => { if (!flavors.includes(flavor)) throw new Error(`The flavor must be one of these: ${flavorsString}`); diff --git a/package.json b/package.json index 41b21ff..5bd22a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-gev", - "version": "3.10.1", + "version": "3.10.2", "description": "Common ESLint configs for my JS/TS and React/RN projects", "main": "index.js", "bin": "bin.js",