Skip to content

Commit 07ca34d

Browse files
committed
chore: update lint
1 parent 57205f5 commit 07ca34d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3178
-2146
lines changed

.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@antfu",
3+
"rules": {
4+
"no-console": "off",
5+
"no-undef": "off",
6+
"promise/param-names": "off"
7+
}
8+
}

.eslintrc.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/CI-CD.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ name: CI-CD
88
on:
99
push:
1010
branches:
11-
- "*"
11+
- '*'
1212
tags-ignore:
13-
- "*"
13+
- '*'
1414

1515
schedule:
16-
- cron: "0 0 1 * *"
16+
- cron: '0 0 1 * *'
1717

1818
jobs:
1919
test:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

.vscode/launch.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
2020
"args": [
2121
"--timeout=60000",
22-
"--retries=0",
22+
"--retries=0"
2323
],
2424
"console": "integratedTerminal",
2525
"outFiles": [
@@ -28,10 +28,9 @@
2828
"smartStep": true,
2929
"skipFiles": [
3030
"<node_internals>/**/*.js"
31-
],
31+
]
3232
},
3333

34-
3534
{
3635
"type": "node",
3736
"request": "launch",
@@ -52,7 +51,7 @@
5251
"smartStep": true,
5352
"skipFiles": [
5453
"<node_internals>/**/*.js"
55-
],
54+
]
5655
}
5756
]
5857
}

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"group": {
2929
"kind": "test",
3030
"isDefault": true
31-
},
32-
},
31+
}
32+
}
3333
]
3434
}

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ Forked from [`version-bump-prompt`](https://github.com/JS-DevTools/version-bump-
66

77
###### Changes in this fork
88

9-
- Renamed to `bumpp` - so you can use `npx bumpp` directly
10-
- Ships ESM and CJS bundles
11-
- Add a new argument `--execute` to execute the command before committing
9+
- Renamed to `bumpp` - so you can use `npx bumpp` directly.
10+
- Ships ESM and CJS bundles.
11+
- Add a new argument `--execute` to execute the command before committing.
12+
- Use current version's `preid` when avaliable.
13+
- Enable `--commit` `--tag` `--push` by default. (opt-out by `--no-push`, etc.)
1214

1315
<details>
1416
<summary>Original README</summary>

bin/bumpp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env node
2-
"use strict";
3-
const { main } = require("../dist/cli");
4-
main(process.argv.slice(2));
2+
'use strict'
3+
const { main } = require('../dist/cli')
4+
main(process.argv.slice(2))

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
"version": "7.2.0",
44
"packageManager": "[email protected]",
55
"description": "Automatically (or with prompts) bump your version number, commit changes, tag, and push to Git",
6+
"author": {
7+
"name": "James Messinger",
8+
"url": "https://jamesmessinger.com"
9+
},
10+
"license": "MIT",
11+
"homepage": "https://jstools.dev/version-bump-prompt",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/antfu/bumpp.git"
15+
},
616
"keywords": [
717
"version",
818
"bump",
@@ -15,16 +25,6 @@
1525
"push",
1626
"prompt"
1727
],
18-
"author": {
19-
"name": "James Messinger",
20-
"url": "https://jamesmessinger.com"
21-
},
22-
"license": "MIT",
23-
"homepage": "https://jstools.dev/version-bump-prompt",
24-
"repository": {
25-
"type": "git",
26-
"url": "https://github.com/antfu/bumpp.git"
27-
},
2828
"main": "dist/index.js",
2929
"types": "dist/index.d.ts",
3030
"bin": {
@@ -34,9 +34,12 @@
3434
"bin",
3535
"dist"
3636
],
37+
"engines": {
38+
"node": ">=10"
39+
},
3740
"scripts": {
3841
"clean": "rimraf .nyc_output coverage dist",
39-
"lint": "eslint src test",
42+
"lint": "eslint .",
4043
"build": "tsup src/index.ts src/cli/index.ts --format esm,cjs --dts --clean",
4144
"watch": "npm run build -- --watch src",
4245
"start": "esno src/cli/run.ts",
@@ -47,9 +50,17 @@
4750
"prepublishOnly": "npm run clean && npm run build",
4851
"release": "npm run bumpp && npm publish"
4952
},
53+
"dependencies": {
54+
"@jsdevtools/ez-spawn": "^3.0.4",
55+
"cac": "^6.7.12",
56+
"chalk": "^4.1.2",
57+
"globby": "^11.0.4",
58+
"prompts": "^2.4.1",
59+
"semver": "^7.3.5"
60+
},
5061
"devDependencies": {
62+
"@antfu/eslint-config": "^0.25.1",
5163
"@jsdevtools/chai-exec": "^2.1.1",
52-
"@jsdevtools/eslint-config": "^1.1.4",
5364
"@types/chai": "^4.2.21",
5465
"@types/inquirer": "^7.3.3",
5566
"@types/mocha": "^8.2.3",
@@ -59,7 +70,7 @@
5970
"chai": "^4.3.4",
6071
"detect-indent": "^7.0.0",
6172
"detect-newline": "^3.1.0",
62-
"eslint": "^7.32.0",
73+
"eslint": "^8.8.0",
6374
"esno": "^0.9.1",
6475
"log-symbols": "^4.1.0",
6576
"mocha": "^8.4.0",
@@ -70,16 +81,5 @@
7081
"tsup": "^5.11.9",
7182
"typescript": "^4.4.2"
7283
},
73-
"dependencies": {
74-
"@jsdevtools/ez-spawn": "^3.0.4",
75-
"cac": "^6.7.12",
76-
"chalk": "^4.1.2",
77-
"globby": "^11.0.4",
78-
"prompts": "^2.4.1",
79-
"semver": "^7.3.5"
80-
},
81-
"engines": {
82-
"node": ">=10"
83-
},
8484
"engineStrict": true
8585
}

0 commit comments

Comments
 (0)