eslint-config-shopify
eslint-plugin-shopify
package, which make use of the plugin configs introduced in ESLint 2.0.0.
Note: as of version 8.0.0, this package is deprecated. Instead, use the configs found in the
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
:
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
:
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
: