New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@grapes-agency/eslint-config

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grapes-agency/eslint-config

Grapes eslint config

  • 1.7.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Grapes ESLint Config

Best practice eslint config.

Installation

Install using npm as dev dependency:

npm i -D @grapes-agency/eslint-config

Usage

The eslint rules are splitted to fit most use cases

Basic (without React and Prettier)

package.json:

{
  "eslintConfig": {
    "extends": "@grapes-agency/eslint-config"
  }
}

with Prettier

this package comes with a prettier configuration. Simply add the following line to your package.json:

{
  "prettier": "@grapes-agency/eslint-config/prettier"
}

If you want eslint to lint prettier rules, also add

{
  "eslintConfig": {
    "extends": [
        "@grapes-agency/eslint-config",
        "@grapes-agency/eslint-config/rules/prettier"
    ]
  }
}

Note: Keep in mind that prettier linting can make a significant performance impact. If you expirience slow linting, remove the eslint rule and refer to vscode.md.

If you want eslint to lint prettier only in your CI pipelines due to performance issues use the rule @grapes-agency/eslint-config/rules/prettier-ci

with React

package.json:

{
  "eslintConfig": {
    "extends": [
      "@grapes-agency/eslint-config",
      "@grapes-agency/eslint-config/rules/react",
    ]
  }

Lint Script (CI)

package.json:

{
  "scripts": {
    "lint": "eslint --max-warnings 0 --ext js,jsx,ts,tsx --cache src"
  }

--max-warnings 0 ensures that CI pipelines will fail on any warning

git

Add .eslintcache to your .gitignore

FAQs

Package last updated on 23 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc