Skip to content

Commit

Permalink
3.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBrahma committed Dec 20, 2023
1 parent 9a89838 commit 4410d6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <flavor>`, 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 <flavor>`, 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`.

Expand Down
11 changes: 2 additions & 9 deletions bin.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down Expand Up @@ -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}`);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 4410d6c

Please sign in to comment.