Socket
Book a DemoInstallSign in
Socket

@showbie/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@showbie/eslint-config

ESLint configuration for Showbie projects

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
3
-25%
Maintainers
3
Weekly downloads
 
Created
Source

showbie-eslint-config

npm version

ESLint configuration for Showbie projects.

Usage

Install the conventions by running:

# Ember projects
yarn add -D eslint prettier @showbie/eslint-config eslint-plugin-{ember,hbs}

# React projects
npm i -D eslint prettier @showbie/eslint-config @typescript-eslint/{eslint-plugin,parser} eslint-plugin-react

Then add the extends to your .eslintrc.js:

{
  // Ember projects
  extends: ['@showbie', '@showbie/eslint-config/ember'],

  // React projects
  extends: ['@showbie', '@showbie/eslint-config/react'],

  rules: { /* … */ }
}

If Ember or React conventions aren’t required, don’t install the plugins and don’t include the extra extends item.

You’ll probably want to ensure you have a couple of Prettier’s options set as well.

"prettier": {
  "arrowParens": "always",
  "singleQuote": true,
  "trailingComma": "es5"
}

Keywords

eslint-config

FAQs

Package last updated on 17 Dec 2019

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