eslint-config-qwarry
v1.4.1
Published
``` npm i --save-dev \ eslint-config-qwarry \ eslint \ eslint-config-airbnb \ eslint-config-airbnb-base \ eslint-config-prettier \ eslint-config-react-app \ eslint-plugin-import \ eslint-plugin-jest \ eslint-plugin-jsonc \ es
Readme
Install
npm i --save-dev \
eslint-config-qwarry \
eslint \
eslint-config-airbnb \
eslint-config-airbnb-base \
eslint-config-prettier \
eslint-config-react-app \
eslint-plugin-import \
eslint-plugin-jest \
eslint-plugin-jsonc \
eslint-plugin-jsx-a11y \
eslint-plugin-lodash \
eslint-plugin-node \
eslint-plugin-prettier \
eslint-plugin-promise \
eslint-plugin-react \
eslint-plugin-react-hooksCreate a file named .eslintrc.js:
module.exports = {
root: true,
extends: ['qwarry', 'qwarry/react'], // or 'qwarry/node'
};Adapt your package.json, this is the only way to pass options to your local prettier:
{
...yourpackagejsondata,
"prettier": {
"printWidth": 100,
"singleQuote": true
}
}Contribute
Thank you for your interest in contributing to eslint-config-qwarry! Here's how you can adapt rules based on your needs:
- Clone the
eslint-config-qwarryrepository to your local machine by runninggit clone [email protected]:Qwarry/eslint-qwarry.gitin your terminal. - Make sure you have
commitlintinstalled by runningnpm iin your terminal. - Push a commit with a commit message that follows the Semantic Versioning specifications.
- This will trigger
commitlintto check your commit message and ensure it follows the correct format. - If your commit message doesn't follow the correct format,
commitlintwill give you an error and ask you to correct it before you can proceed.
- This will trigger
- A tag will be automatically created and pushed to the npm repository based on your commit message.
- Update the
package.jsonfile of your project with the new tag:"eslint-config-qwarry": "X.Y.Z"whereX.Y.Zis the version number you just pushed.- Alternatively, you can remove
"eslint-config-qwarry"from yourpackage.jsonfile and runnpm i --save-dev eslint-config-qwarryto install the latest version.
