A repository for JavaScript linting rules that have been derived from best practices.
The rules for our JS linting are defined in index.js
.
npm i --save-dev @godaddy-wordpress/eslint-config
Create a .eslintrc.js
file in the root of your project and extend the config file:
module.exports = {
extends: ['@godaddy-wordpress/eslint-config'],
}
npm version minor git push git push --tags npm publish