0.0.8 • Published 6 years ago
eslint-config-coda v0.0.8
eslint-config-coda
This package provides CODA's extended JavaScript ESlint configuration, supplementing the base configuration with React and JSX-Aria linting rules.
Usage
Prequesite: Node must be installed (but you knew that already, didn't you?)
Install Eslint
$ npm install -g eslint@latest
Configure your editor to integrate with ESlint
- Visual Studio Code with the ESLint Extension
- Sublime Text with SublimeLinter-eslint
- Atom with linter-eslint
- JetBrain's with ESLint
Add the package to the devDependencies section of your
package.json
$ npm install --save-dev eslint-config-coda@latest
Add the following peer dependencies to your devDependencies section:
$ npm install --save-dev eslint-plugin-import@latest
$ npm install --save-dev eslint-plugin-jsx-a11y@latest
$ npm install --save-dev eslint-plugin-react@latest
- Add
"extends": "coda"
to your .eslintrc. - :sparkles: Start linting! :sparkles:
Contributing
Feel free to suggest changes to the rules. Before submitting a pull request please ensure that:
$ npm run prepublishOnly
Runs successfully without any errors.
Publishing
To publish this repo, please:
- Bump the version in
package.json
- Authenticate as the npm user
- run
npm publish