Skip to content

ofk/eslint-config-recommend

Repository files navigation

@ofk/eslint-config-recommend

This is an my eslint config.

It uses @ofk/eslint-config as a base, has Prettier baked in, and overrides some rules I've seen ourselves having to change often.

Quick start

  1. Install the following dev-dependencies:

    npm install --save-dev @ofk/eslint-config-recommend eslint prettier typescript
  2. Extend the @ofk/eslint-config-recommend config in your eslint.config.js:

    import config from '@ofk/eslint-config-recommend';
    
    export default config();
  3. Run eslint on your project as part of your lint and format scripts:

    "scripts": {
      "lint": "eslint . && prettier --check .",
      "format": "eslint --fix . && prettier --write .",
      "pretest": "npm run lint",
      "test": "test command"
    }
  4. (Optional) Set up prettier config in prettier key in your package.json:

    "prettier": "@ofk/eslint-config-recommend/.prettierrc.json"

    Read more about shared configs here, especially if you need to extend/override the default configuration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published