- Standard. No configuration. – Stop worrying about style and focus on your work.
- Modern – Uses modern linting tools like
- Auto-fix – Auto-fix is enabled by-default through in
eslint. Many rules will fix themselves!
This styleguide is used by dozens of product teams at GoDaddy. Have a question or comment? Open an issue!
# Legacy ES5 (including React rules)npm i eslint-config-godaddy-es5 --save-dev
There are two ways to use this styleguide depending on your own tooling preference: directly using pre-included binaries or running
eslint yourself with a custom
1. Use the pre-included binaries.
These use exactly the configuration defined in this package (
eslint-config-godaddy-es5) with auto-fix enabled automatically.
"scripts":"lint": eslint-godaddy-es5 files/ you/ want-to/ lint/","lint-react": "eslint-godaddy-es5-react files/ you/ want-to/ lint/"}}
2. Define your local
.eslintrc and run
moduleexports =// Or for ES5 + React:// extends: 'godaddy-es5-react',extends: 'godaddy-es5'rules://// Put any rules you wish to override here.//
--fix option in
eslint is only available as a CLI option. Auto-fix will NOT be enabled unless you run
eslint --fix in your
"scripts":"lint": "eslint --fix files/ you/ want-to/ lint/"