eslint-plugin-goodt
v0.7.1
Published
Goodt projects rules
Downloads
34
Maintainers
Readme
eslint-plugin-goodt
Goodt projects rules
https://wiki.goodt.me/display/AP/Eslint+plugin
Installation
You'll first need to install ESLint:
npm i -D eslint
Next, install eslint-plugin-goodt
and other dependencies:
npm i -D eslint-plugin-goodt
npm i -D @typescript-eslint/eslint-plugin
npm i -D @vue/eslint-config-typescript,
Usage for JS/TS
Add goodt
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"goodt"
],
"extends": [
"plugin:goodt/recommended"
]
}
either you can use rules only for specified file types
{
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:goodt/typescript"
],
"rules": {}
}
]
}
Usage for Vue 3
npm i -D eslint-plugin-import
{
"overrides": [
{
"files": [
"*.vue"
],
"plugins": [
"goodt",
"import"
],
"extends": [
"@vue/eslint-config-typescript",
"plugin:goodt/vue-typescript",
"plugin:vue/vue3-essential"
],
"rules": {
"import/extensions": "off"
}
}
]
}