Skip to content

Files

Latest commit

 

History

History

eslint-plugin-opentrons

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

eslint-plugin-app-import-structure

Rules about importing different parts of the app code

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-app-import-structure:

npm install eslint-plugin-app-import-structure --save-dev

Usage

Add app-import-structure to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["app-import-structure"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "app-import-structure/rule-name": 2
  }
}

Configurations

TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).

Rules

TODO: Run eslint-doc-generator to generate the rules list.