Skip to content
eslint-plugin / 0.3.1

eslint-plugin 0.3.1

Install from the command line:
Learn more about npm packages
$ npm install @gaudiy/eslint-plugin@0.3.1
Install via package.json:
"@gaudiy/eslint-plugin": "0.3.1"

About this version

@gaudiy/eslint-plugin

License: MIT

Gaudiy’s ESLint rules and configs.

Installation

Install ESLint and @gaudiy/eslint-plugin

With npm

$ npm install eslint @gaudiy/eslint-plugin --save-dev

Usage

Gaudiy’s ESLint configs come bundled in this package. In order to use them, you simply extend the relevant configuration in your project’s .eslintrc. For example, the following will extend the ts base config:

{
  "extends": "plugin:@gaudiy/base"
}

If you are working on an React project, extend the react version of the configuration:

{
  "extends": "plugin:@gaudiy/react"
}

These are the configs you can use in combination.

{
  "extends": [
    "plugin:@shopify/base",
    "plugin:@shopify/react",
    "plugin:@shopify/jest",
    "plugin:@shopify/tailwind",
  ]
}

Additional configurations

Install @typescript-eslint/eslint-plugin and @typescript-eslint/parser because it is bundled as peerDependencies.

With npm

$ npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser --save-dev

This config requires knowledge of your TypeScript config. In your ESLint config, set parserOptions.project to the path of your tsconfig.json.

For example:

{
  "extends": [
    "plugin:@gaudiy/base",
    ...
  ],
  "parserOptions": {
    "project": "tsconfig.json"
  }
}

Details


Assets

  • eslint-plugin-0.3.1.tgz

Download activity

  • Total downloads 9,911
  • Last 30 days 0
  • Last week 0
  • Today 0