Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ESM, bump deps, remove flow types #14

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
f658926
.babelrc remove env
milahu Sep 14, 2022
887db7b
package.json type module
milahu Sep 14, 2022
9bdb8a5
package.json remove babel
milahu Sep 14, 2022
5609771
package.json remove flow
milahu Sep 14, 2022
d5d268a
.eslintrc fix Directory import errors
milahu Sep 14, 2022
bccb57b
ncu -u
milahu Sep 14, 2022
3915820
fix .eslintrc
milahu Sep 14, 2022
2793813
fix .eslintrc
milahu Sep 14, 2022
5d23b01
eslint fix
milahu Sep 14, 2022
446b51d
remove eslint options
milahu Sep 14, 2022
7d973ab
fix autofixed directory import
milahu Sep 14, 2022
4e77904
update deps
milahu Sep 14, 2022
bf2ecf2
.eslintrc add parser @babel/eslint-parser
milahu Sep 14, 2022
2a9711f
babel-upgrade -w
milahu Sep 14, 2022
5ec61b0
eslint --fix ./src
milahu Sep 14, 2022
e188f65
fix autofixed import path
milahu Sep 14, 2022
961c034
fix: require is not defined
milahu Sep 14, 2022
d916a49
fixup require
milahu Sep 14, 2022
d9169ee
fixup require
milahu Sep 14, 2022
0da52dd
fix imports
milahu Sep 14, 2022
1c7e886
.eslintrc no-process-exit off
milahu Sep 14, 2022
e99a00f
eslint-plugin-node -> eslint-plugin-n
milahu Sep 14, 2022
4c266a2
fix: import() expressions are not supported
milahu Sep 14, 2022
1779cc2
fix autofixed import path
milahu Sep 14, 2022
1571d37
fix: ErrnoError is not defined
milahu Sep 14, 2022
b88a8ae
fix: cluster$Worker is not defined
milahu Sep 14, 2022
b9a353f
.gitignore rm lib
milahu Sep 14, 2022
3710182
prettier
milahu Sep 14, 2022
d424663
add .prettierrc.yaml
milahu Sep 14, 2022
1a9b0b3
prepare command: also run prettier
milahu Sep 14, 2022
57504da
remove flow types
milahu Sep 14, 2022
97d3bc0
fix .eslintrc
milahu Sep 14, 2022
fc01efc
remove flow types
milahu Sep 14, 2022
fb123ba
.gitignore: add .yarn
milahu Sep 14, 2022
1e1d4b0
remove flow types
milahu Sep 14, 2022
16609e1
rm .travis.yml
milahu Sep 14, 2022
c84d4f3
add pnpm-lock.yaml
milahu Sep 14, 2022
9116b1d
rm yarn.lock
milahu Sep 14, 2022
196e1cc
cleanup
milahu Sep 14, 2022
68ef6ab
fix parsing argv
milahu Sep 14, 2022
9499976
fix comments
milahu Aug 31, 2023
fdd7687
create reporter early
milahu Aug 31, 2023
0c34079
restore process.exit(0)
milahu Aug 31, 2023
1ac91d8
add debug prints
milahu Aug 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

25 changes: 21 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
{
"parser": "babel-eslint",
"extends": [
"gitbook"
"eslint:recommended",
//"plugin:node/recommended"
"plugin:n/recommended"
],
"plugins": [
"flowtype"
],
"env": {
"jest": true
"parser": "@babel/eslint-parser",
"parserOptions": {
// Only ESLint 6.2.0 and later support ES2020.
"ecmaVersion": 2020
},
"rules": {
"n/no-process-exit": ["off"],
"no-unused-vars": ["warn"],
// eslint-plugin-node -> eslint-plugin-n
"n/exports-style": ["error", "module.exports"],
"n/file-extension-in-import": ["error", "always"],
"n/prefer-global/buffer": ["error", "always"],
"n/prefer-global/console": ["error", "always"],
"n/prefer-global/process": ["error", "always"],
"n/prefer-global/url-search-params": ["error", "always"],
"n/prefer-global/url": ["error", "always"],
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": ["warn"]
}
}
2 changes: 0 additions & 2 deletions .flowconfig

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

lib
#lib

# Cache stored by Travis
.cache
Expand Down Expand Up @@ -42,3 +42,5 @@ node_modules

# VScode
.vscode

.yarn
6 changes: 6 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
trailingComma: "none"
tabWidth: 4
semi: true
singleQuote: true
arrowParens: "avoid"
printWidth: 80
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

48 changes: 19 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,33 @@
"version": "0.4.2",
"author": "Samy Pessé <samypesse@gmail.com>",
"repository": "https://github.com/GitbookIO/bipbip",
"type": "module",
"license": "MIT",
"files": [
"lib"
"src"
],
"dependencies": {
"cli-color": "^1.2.0",
"cli-spinner": "^0.2.8",
"cli-table": "^0.3.1",
"commander": "^2.15.1",
"fast-stats": "^0.0.3",
"globby": "^8.0.1",
"pretty-ms": "^3.1.0"
"cli-color": "^2.0.3",
"cli-spinner": "^0.2.10",
"cli-table": "^0.3.11",
"commander": "^9.4.0",
"fast-stats": "^0.0.6",
"globby": "^13.1.2",
"pretty-ms": "^8.0.0"
},
"devDependencies": {
"babel": "^6.23.0",
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.3",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-env": "^1.7.0",
"babel-preset-flow": "^6.23.0",
"eslint": "^4.19.1",
"eslint-config-gitbook": "^3.0.0",
"eslint-plugin-flowtype": "^2.46.3",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^5.1.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.8.2",
"flow-bin": "^0.72.0",
"prettier": "^1.12.1"
"eslint": "^8.23.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.5",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1"
},
"scripts": {
"lint": "eslint ./src",
"flow": "flow ./src",
"test": "babel-node ./src/bin.js",
"prepare": "babel --ignore '**/__tests__/*.js' --out-dir ./lib ./src"
"test": "node ./src/bin.js"
},
"bin": {
"bipbip": "./lib/bin.js"
}
"engines": {
"node": ">=13.2.0"
},
"bin": "./src/bin.js"
}
Loading