Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@twostoryrobot/eslint-config
Advanced tools
The Two Story Robot sharable eslint configuration so you can lint like us.
Install the package
npm install --save-dev @twostoryrobot/eslint-config
Make sure to install the peer dependencies
npm install --save-dev eslint eslint-plugin-jest eslint-plugin-react
If you are using NPM >5 you can also do this:
npx install-peerdeps --dev @twostoryrobot/eslint-config
Add @twostoryrobot/eslint-config
(or just @twostoryrobot
) or
@twostoryrobot/eslint-config/react
(no shortcut for the react config, sorry)
to the extends
of your .eslintrc
.
Example: .eslintrc.js
:
module.exports = {
extends: ['@twostoryrobot/eslint-config/react']
}
Now you can add a script to your project's package.json that calls eslint and it will reference the config file in the root of your project directory.
"scripts": {
"eslint": "eslint '**/*.js'"
}
If you install husky you can invoke eslint as a hook for various actions (precommit, prepush, etc)
"scripts": {
"precommit": "eslint '**/*.js'"
}
FAQs
Two Story Robot eslint configuration
The npm package @twostoryrobot/eslint-config receives a total of 5 weekly downloads. As such, @twostoryrobot/eslint-config popularity was classified as not popular.
We found that @twostoryrobot/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.