eslint-plugin-oev

0.5.3 • Public • Published

eslint-plugin-oev

Common lint and formatting rules for OEV Berlin projects.

Installation

yarn add -D eslint prettier eslint-plugin-oev

Use

Extend oev/* in your base eslint configuration:

{
  "extends": "plugin:oev/next"
}

To use the prettier configuration, add the following to your package.json:

{
  "prettier": "eslint-plugin-oev/prettier"
}

or add a .prettierrc file with the following content:

"eslint-plugin-oev/prettier"

Available Recommended Eslint Configurations

  • oev/next: Use for Next.js projects
  • oev/react: Use for React projects
  • oev/node: Use for Node projects

Overridden rules

Check the overrides documentation for a list of rules we override and the rationale behind it.

Tests

Execute the linting tests with:

yarn test

Note that linting errors are expected in the test files.

Package Sidebar

Install

npm i eslint-plugin-oev

Weekly Downloads

38

Version

0.5.3

License

none

Unpacked Size

4.06 kB

Total Files

8

Last publish

Collaborators

  • pinussilvestrus