
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
bounce-in-style
Advanced tools
The Bounce style guide, formatter, and commit validator.
.eslintignore
and .prettierignore
files)# npm
npm install bounce-in-style -D
# yarn
yarn add bounce-in-style -D
npm uninstall husky
npm install husky -D
npx husky install
npm install
:{
"scripts": {
"prepare": "husky install"
}
}
Lint and format
# react projects
npx husky add .husky/pre-commit "npx bis --staged --react"
# react-native projects
npx husky add .husky/pre-commit "npx bis --staged --react-native"
# all other projects (ie backend)
npx husky add .husky/pre-commit "npx bis --staged"
Commit validation
npx husky add .husky/commit-msg "npx commitlint --edit "$1" --config ./node_modules/commitlint-config-bouncedinc/index.js"
# with npm
npx bis -h
# Usage
# $ npx bis [flags]
# Options
# --help Print help message.
# -r, --react Use for React projects.
# -n, --react-native Use for React Native projects.
# -s, --staged Only run on staged files. Useful when adding as a git hook.
# -c, --check Only check files. Skips running Prettier and doesn't use the --fix flag for ESLint.
# This option does not support the --staged flag.
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
To add linting capabilities to VSCode
.vscode
folder at the root of your projectconfigFile
path with ./node_modules/eslint-config-bouncedinc-react/index.js
configFile
path with ./node_modules/eslint-config-bouncedinc-react-native/index.js
tsc
All Bounce projects should have a git hook (either pre-commit or pre-push) for running tsc
.
We don't recommend extending the config when using internal to Bounce, instead a PR should be made into this repo to add the change for everyone. If you do need to extend the config, you can treat it like any other eslint config. The simplest way to do so can be seen in the .eslintrc
file at the root of this repo.
FAQs
The Bounce style guide, formatter, and commit validator.
The npm package bounce-in-style receives a total of 3 weekly downloads. As such, bounce-in-style popularity was classified as not popular.
We found that bounce-in-style demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.