category: packages
eslint-plugin-instructure-ui
An eslint configuration for Instructure UI.
Installation
Install eslint
npm install eslint --dev
npm install eslint-plugin-instructure-ui --dev
Configuration
Use our preset to get reasonable defaults:
"extends": [
"eslint:recommended",
"plugin:instructure-ui/recommended"
]
If you do not use a preset you will need to specify individual rules and add extra configuration.
Add "instructure-ui" to the plugins section.
{
"plugins": ["instructure-ui"]
}
Enable the rules that you would like to use.
"rules": {
"inst/no-relative-package-imports": "error"
}