New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-shopify

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-shopify

Shopify's baseline ESLint config.

8.0.0
latest
stable
Source
npm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

eslint-config-shopify

Note: as of version 8.0.0, this package is deprecated. Instead, use the configs found in the eslint-plugin-shopify package, which make use of the plugin configs introduced in ESLint 2.0.0.

NPM version

This package provides Shopify's .eslintrc as an extensible shared config.

Usage

React

Install this module, as well as the other eslint modules on which it is dependent:

npm install --save-dev eslint babel-eslint eslint-plugin-react eslint-plugin-shopify # dependencies
npm install --save-dev eslint-config-shopify

then, extend the React version of this configuration in your own .eslintrc.json:

{
  "extends": "shopify/react"
}

ES2015 and Beyond Projects

Install this module, as well as the other eslint modules on which it is dependent:

npm install --save-dev eslint babel-eslint eslint-plugin-shopify # dependencies
npm install --save-dev eslint-config-shopify

then, extend the base version of this configuration in your own .eslintrc:

{
  "extends": "shopify"
}

ES5 Projects

Projects with a legacy codebase or that target a tool that targets node may continue to use ES5. To lint these projects, first install this module, as well as the other eslint modules on which it is dependent:

npm install --save-dev eslint eslint-plugin-shopify # dependencies
npm install --save-dev eslint-config-shopify

then, extend the ES5 version of this configuration in your own .eslintrc:

{
  "extends": "shopify/es5"
}

Keywords

eslint

FAQs

Package last updated on 17 Feb 2016

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