@inthepocket/eslint-config-web
v1.3.7
Published
This contains all ESLint rules to lint a web project, maintained by the web practice. It contains a set of rules that ensure consistency throughout projects created at In The Pocket.
Downloads
134
Maintainers
Keywords
Readme
@inthepocket/eslint-config-web
This contains all ESLint rules to lint a web project, maintained by the web practice. It contains a set of rules that ensure consistency throughout projects created at In The Pocket.
Keep in mind that this serves as a guiding principle, meaning that while we believe it should be included in every project because of the solid baseline it provides, you're allowed to turn off or add new rules based on the team's preferences.
Usage
Install
npm i -D @inthepocket/eslint-config-web
Configure ESLint
create an .eslintrc.js
file with the following:
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['@inthepocket/eslint-config-web'],
};
Add Lint script
{
"scripts": {
"lint": "eslint '**/*.{js,jsx,ts,tsx}' --fix"
}
}