1.0.2 • Published 4 years ago
eslint-config-iq v1.0.2
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-iqalso add eslint and prettier if not already added
yarn add --dev eslint prettierExtend 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');