The official ESLint configuration for Ramsey Solutions.
Support for Babel and Prettier is pre-configured out of the box.
eslint
prettier
- Though not strictly required, this config relies onprettier
to enforce many stylistic rules.
Install eslint
and prettier
as devDependencies
if you have not already:
yarn add eslint prettier --dev
Install @ramseyinhouse/eslint-config
:
yarn add @ramseyinhouse/eslint-config --dev
Configure ESLint to extend @ramseyinhouse/eslint-config
.
- Add a
.eslintrc.js
(or other supported file format) to the root of your project. - Extend
@ramseyinhouse
via theextends
property:
module.exports = {
extends: ['@ramseyinhouse'],
};