Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@krakenjs/eslint-config-grumbler

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@krakenjs/eslint-config-grumbler

Eslint configs for grumbler modules

latest
Source
npmnpm
Version
8.2.0
Version published
Maintainers
7
Created
Source

@krakenjs/eslint-config-grumbler

This package assumes you are already using Prettier.

Installation

npm install -D @krakenjs/eslint-config-grumbler

Config Files

  • eslintrc-browser - browser-based rules + FlowType
  • eslintrc-typescript-browser - browser-based rules + TypeScript
  • eslintrc-typescript - TypeScript rules
  • eslintrc-node - node.js rules

Usage

  • Create a .eslintrc.js file at the root of your package.

  • Identify the type of eslint config to use: node or browser.

3a. For node packages add the following contents to your .eslintrc.js:

module.exports = {
    extends: "@krakenjs/eslint-config-grumbler/eslint-node",
};

3b. For browser packages add the following contents to your .babelrc:

module.exports = {
    extends: "@krakenjs/eslint-config-grumbler/eslint-browser",
};
  • Ensure you have a browserlist configuration in your package.json
 "browserslist": [
   "IE >= 9",
   "chrome >= 27",
   "firefox >= 30",
   "safari >= 5",
   "opera >= 23"
],

Keywords

template

FAQs

Package last updated on 07 May 2024

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