1.0.6 • Published 3 years ago
@shelter-zone/eslint-config-proladon v1.0.6
shelter-zone custom eslint rule base
Usage
Installation
yarn add -D @shelter-zone/eslint-config-proladon
Configuration
.eslintrc.js
:
module.exports = {
root: true,
env: {
node: true
},
extends: [
'@shelter-zone/proladon/lib/eslintTypescript'
],
parserOptions: {
ecmaVersion: 2020
},
globals: {
},
rules: {
}
}
.vscode/.settings.json
:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"eslint.options": {
"extensions": [
".html",
".js",
".vue",
".ts"
]
},
"eslint.validate": [
"html",
"javascript",
"typescript",
"vue"
]
}
available extends:
@shelter-zone/eslint-config-proladon/lib/eslint-base
: define custom eslint rules@shelter-zone/eslint-config-proladon/lib/vue-base
: define custom vue rules@shelter-zone/eslint-config-proladon/lib/base
: define custom vue & eslint rules@shelter-zone/eslint-config-proladon/lib/vue2-essential
: base on@shelter-zone/eslint-config-proladon/lib/base
and vue-essential rules@shelter-zone/eslint-config-proladon/lib/vue2-recommended
: base on@shelter-zone/eslint-config-proladon/lib/base
and vue-recommended rules@shelter-zone/eslint-config-proladon/lib/vue3-base
: base on@shelter-zone/eslint-config-proladon/lib/base
and define custom vue3 rules@shelter-zone/eslint-config-proladon/lib/vue3-essential
: base on@shelter-zone/eslint-config-proladon/lib/vue3-base
and vue3-essential rules@shelter-zone/eslint-config-proladon/lib/vue3-recommended
: base on@shelter-zone/eslint-config-proladon/lib/vue3-base
and vue3-recommended rules