Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-powel

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-powel

Powel ESLint configs

  • 14.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
93
increased by38.81%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-powel

Version npm

ESLint configuration presets for Powel projects.

Usage

Common

npm i -D eslint eslint-config-powel

Add to your .eslintrc

{
  "extends": "powel"
}

Babel

To use the Babel rule set:

npm i -D eslint eslint-config-powel @babel/eslint-parser

Add this to your .eslintrc:

{
  "extends": "powel/babel"
}

Flow

To use the flow rule set:

npm i -D eslint eslint-config-powel @babel/eslint-parser eslint-plugin-flowtype eslint-plugin-flowtype-errors

Add this to your .eslintrc:

{
  "extends": "powel/flow"
}

TypeScript

To use the TypeScript rule set:

npm i -D eslint eslint-config-powel @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-import-resolver-typescript

Add this to your .eslintrc:

{
  "extends": "powel/typescript"
}

React

To use the React rule set:

npm i -D eslint eslint-config-powel eslint-plugin-react eslint-plugin-react-hooks

Add this to your .eslintrc:

{
  "extends": "powel/react"
}

Import

To use the eslint-plugin-import rule set:

npm i -D eslint eslint-config-powel eslint-plugin-import

Add this to your .eslintrc:

{
  "extends": "powel/import"
}

Jest

To use the Jest rule set:

npm i -D eslint eslint-config-powel eslint-plugin-jest

Add this to your .eslintrc:

{
  "extends": "powel/jest"
}

Mocha

To use the Mocha rule set:

npm i -D eslint eslint-config-powel

Add this to your .eslintrc:

{
  "extends": "powel/mocha"
}

css-modules

To use the eslint-plugin-css-modules rule set:

npm i -D eslint eslint-config-powel eslint-plugin-css-modules

Add this to your .eslintrc:

{
  "extends": "powel/css-modules"
}

Composition

You can use any combination of these presets.

Install the dependencies:

npm i -D eslint eslint-config-powel eslint-plugin-import @babel/eslint-parser @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-import-resolver-typescript eslint-plugin-react eslint-plugin-jest eslint-plugin-css-modules

.eslintrc:

{
  "extends": [
    "powel",
    "powel/babel",
    "powel/import",
    "powel/typescript",
    "powel/react",
    "powel/jest",
    "powel/css-modules"
  ],
  "rules": {
    // custom tweaks
  }
}

Patch

Our shareable config uses rules from external plugins such as eslint-plugin-prettier. This patch improves how ESLint loads plugins when working for example in a monorepo, see: https://github.com/eslint/eslint/issues/3458

.eslintrc.js

// Patch ESLint module resolution to find shared configs' plugins
require('eslint-config-powel/patch/modern-module-resolution');

module.exports = {
  extends: ['powel']
};

Keywords

FAQs

Package last updated on 19 Jan 2022

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