2.0.0 • Published 3 years ago
eslint-config-sw-in-fe v2.0.0
Installation
Install the package with
npm install eslint-config-sw-in-fe --save-dev
# or
yarn add eslint-config-sw-in-fe -Deslint-config-sw-in-fe requires you to take care of it's peerDependencies.
Install the correct version of each peerDependencies package, which are listed
with the following command:
npm info "eslint-config-sw-in-fe@latest" peerDependenciesIf using npm 5+, use this shortcut:
npx install-peerdeps --dev eslint-config-sw-in-fe
# or
yarn add eslint-config-sw-in-fe -D --peerUsage
Now add eslint-config-sw-in-fe to either your package.json:
{
"eslintConfig": {
"extends": "eslint-config-sw-in-fe"
}
}to your .eslintrc:
{
"extends": "eslint-config-sw-in-fe"
}or .eslintrc.js:
module.exports = {
extends: 'eslint-config-sw-in-fe'
};Prettier Config
This is how you can use or extend the eslint-config-sw-in-fe prettier config in your
app:
// .prettierrc.js
module.exports = {
...require('eslint-config-sw-in-fe/prettier.config')
};