This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 400,000 packages pre-installed, including @fuelrats/eslint-config-react
with all npm
packages installed. Try it out:
require()
any package directly from npmawait
any promise instead of using callbacks (example)This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
@fuelrats/eslint-config
+ react plugins and rules. Built specifically for our react projects.
eslint-plugin-react
for react and better JSX linting.eslint-plugin-react-hooks
for react "rules of hooks" enforcement.eslint-plugin-jsx-a11y
for enforcing website accessibility best practices.The TechRat team of The FuelRats utilize ECMAScript on all fronts. Over time these projects have strayed in code standards as no common base has been shared between them.
@fuelrats/eslint-config
aims to help unify style and standards across all major FuelRats projects.
These configs are in a draft stage, and are subject to frequent adjustments as we begin to unify across projects
yarn global add install-peerdeps
. (this is such a useful tool you should have it anyway 😃)install-peerdeps @fuelrats/eslint-config-react
.
npx
you could run npx install-peerdeps @fuelrats/eslint-config-react
."extends": ["@fuelrats/eslint-config-react"],
to your .eslintrc
file.eslint-plugin-react
configuration docs.
React
pragma, and the current react version used in our react projects.Our code style and this config set was inspired by and derived from the AirBnB javascript style guide. Send some love their way 😍🎉🎊