A shared code style and formatting config.
We use both eslint and prettier to lint our code:
- eslint is for code-quality.
- prettier is for formatting.
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');