🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@growflow/eslint-config

Package Overview
Dependencies
Maintainers
11
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@growflow/eslint-config

Common ESLint configs for Growflow Org.

latest
Source
npmnpm
Version
10.4.1
Version published
Weekly downloads
718
-32.77%
Maintainers
11
Weekly downloads
 
Created
Source

GrowFlow Shared ESLint Configuration

Shareable ESLint configuration to apply consistent syntax and styling rules across GrowFlow projects.

Usage

You can install this package and all of its peer dependencies with install-peerdeps:

npx install-peerdeps --dev @growflow/eslint-config

You can then create a .eslintrc.js file with content similar to the following:

// see https://www.npmjs.com/package/@rushstack/eslint-patch
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
  extends: ['@growflow'],
  parserOptions: {
    project: 'tsconfig.json',
  },
};

This will apply the core eslint config settings as well as settings to eslint your tests with Jest. If you are not using Jest or only want to include the core settings for whatever reason, you can extend the core config:

// see https://www.npmjs.com/package/@rushstack/eslint-patch
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
  extends: ['@growflow/eslint-config/core'],
  parserOptions: {
    project: 'tsconfig.json',
  },
};

Or if you only want to include the Jest configuration within an .eslintrc.js within a test folder, you can do that as well:

// see https://www.npmjs.com/package/@rushstack/eslint-patch
require('@rushstack/eslint-patch/modern-module-resolution');

module.exports = {
  extends: ['@growflow/eslint-config/jest']
};

Editor Integration

You should be able to use your favorite editor's (*cough* VS Code) ESLint to easily format your code on save or with the Format command.

Keywords

eslint

FAQs

Package last updated on 17 Feb 2023

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