Giter VIP home page Giter VIP logo

eslint-plugin-shopify-zero's Introduction

eslint-plugin-shopify-zero

It turns out that because @shopify/eslint-plugin, the project that this project was forked from, relies on several other plugins like eslint-plugin-import, ESLint attempts to require those plugins at runtime and can't find them because they aren't listed as dependencies, and so aren't installed.

In a nutshell, unless all those other plugins are also bundled together and their reference as plugins in each configuration removed, it's not possible for this project to be ported to a single file output with zero dependencies.

So, do not use this project, it does not work. Install @shopify/eslint-plugin instead and try not to think about the extra dependencies that come with it. I'll still put this in a public repo for posterity.

Zero-dependency ESLint plugin for Shopify's JavaScript style guide.

Includes only React and TypeScript plugins.

Usage

  1. npm install -D eslint
  2. npm install -D eslint-plugin-shopify-zero
  3. Extend in .eslintrc:
{
  "extends": [
    "plugin:eslint-plugin-shopify-zero/typescript",
    "plugin:eslint-plugin-shopify-zero/react"
  ]
}

Custom rules

This plugin provides the following custom rules:

eslint-plugin-shopify-zero's People

Contributors

tyhopp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.