eslint-home-agency
Linting rules for HOME dev projects.
.eslintrc.js
Eslint files should be in at least the following folders.
/
/frontend
/backend
/integration
To use in the given folder
npm i --save-dev @home_agency/eslint-home-agency
- Create an eslintrc.js file
- Include the relevant lint
Base lint
const {base} = require(`@home_agency/eslint-home-agency`);
Required dev dependencies
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"commitlint": "^12.1.4",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import-quotes": "0.0.1",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-no-unsanitized": "^3.1.5",
"eslint-plugin-no-wildcard-postmessage": "^0.2.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-prototype-pollution-security-rules": "^1.0.6",
"eslint-plugin-scanjs-rules": "^0.2.1",
"eslint-plugin-security": "^1.4.0",
"prettier": "^2.3.2",
"prettier-eslint": "^13.0.0"
Integration lint
const {integration} = require(`@home_agency/eslint-home-agency`);
React lint
const {react} = require(`@home_agency/eslint-home-agency`);