category: packages
eslint-plugin-instructure-ui
A UI component library made by Instructure Inc.
Installation
Install eslint
yarn add eslint --dev
yarn add 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"
}