Socket
Socket
Sign inDemoInstall

@paralect/eslint-config

Package Overview
Dependencies
1
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paralect/eslint-config

Paralect ESLint config


Version published
Maintainers
4
Created

Changelog

Source

v1.1.0 (2019-06-25)

  • Update dependencies

Readme

Source

ESLint config

ESLint configuration. Currently based on eslint-config-airbnb.

Usage

Our default export contains all of our ESLint rules, including ECMAScript 6+ and React. It requires eslint, babel-eslint, eslint-plugin-import, eslint-plugin-react, and eslint-plugin-jsx-a11y.

  1. Install the correct versions of each package, which are listed by the command:
npm info "@paralect/eslint-config@latest" peerDependencies

Linux/OSX users can run

(
  export PKG=@paralect/eslint-config;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

Which produces and runs a command like:

npm install --save-dev @paralect/eslint-config eslint@#.#.# babel-eslint@#.#.# eslint-plugin-import@#.#.# eslint-plugin-react@#.#.# eslint-plugin-jsx-a11y@#.#.#

Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

npm install -g install-peerdeps
install-peerdeps --dev @paralect/eslint-config

The cli will produce and run a command like:

npm install --save-dev @paralect/eslint-config eslint@#.#.# babel-eslint@#.#.# eslint-plugin-import@#.#.# eslint-plugin-react@#.#.# eslint-plugin-jsx-a11y@#.#.#
  1. Add "extends": "@paralect/eslint-config" to your .eslintrc
module.exports = {
  "extends": "@paralect/eslint-config"
}

This configuration of the ESLint can be changed. See how to configure ESLint on the official site.

Keywords

FAQs

Last updated on 25 Jun 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc