https://github.com/einride/eslint-plugin
Einride's ESLint configuration as a sharable plugin
https://github.com/einride/eslint-plugin
einride eslint eslint-plugin plugin react styleguide typescript web
Last synced: about 2 months ago
JSON representation
Einride's ESLint configuration as a sharable plugin
- Host: GitHub
- URL: https://github.com/einride/eslint-plugin
- Owner: einride
- License: mit
- Created: 2020-02-07T09:00:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-04-09T11:24:29.000Z (3 months ago)
- Last Synced: 2026-04-09T13:20:05.002Z (3 months ago)
- Topics: einride, eslint, eslint-plugin, plugin, react, styleguide, typescript, web
- Language: JavaScript
- Homepage:
- Size: 1.43 MB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# @einride/eslint-plugin
[](https://github.com/einride/eslint-plugin/blob/main/LICENSE)
[](https://www.npmjs.com/package/@einride/eslint-plugin)
[](https://www.npmjs.com/package/@einride/eslint-plugin)
Einride's default ESLint config
## Installation
Install `@einride/eslint-plugin` as a dev dependency:
```bash
yarn add @einride/eslint-plugin --dev
```
Make sure ESLint and Prettier are also installed in your project.
## Usage
### Enable all default rules
Add `plugin:@einride/default` to the `extends` array in your ESLint configuration file. In
`.eslintrc.js`:
```js
module.exports = {
extends: ["plugin:@einride/default"],
}
```
Note that you can omit the `/eslint-plugin` part of the package name, since it will be automatically
assumed by ESLint.
To override a rule, add it to the `rules` object:
```js
module.exports = {
extends: ["plugin:@einride/default"],
rules: {
"max-depth": "off",
},
}
```
## Contribute
See [Contributing Guide](https://github.com/einride/eslint-plugin/blob/main/CONTRIBUTING.md).
## License
MIT