eslint-config-iq
v1.0.2
Published
A shared code style and formatting config.
Downloads
4
Readme
eslint-config-iq
A shared code style and formatting config.
Background
We use both eslint and prettier to lint our code:
- eslint is for code-quality.
- prettier is for formatting.
Installation
yarn add --dev eslint-config-iq
also add eslint
and prettier
if not already added
yarn add --dev eslint prettier
Extend the shared eslint config in your .eslintrc.js
:
// .eslintrc.js
module.exports = {
extends: 'eslint-config-iq',
rules: {
// Your project-specific rules
},
};
Extend the shared prettier config in your .prettierrc.js
:
// .prettierrc.js
module.exports = require('eslint-config-iq/.prettierrc');