eslint-plugin-jethr
v1.0.1
Published
Jet HR Eslint custom rules
Downloads
622
Readme
JetHR Eslint Plugin
Getting Started
Installation
Install via npm
npm install --save-dev eslint-plugin-jethr
Setup plugin
Add our plugin to eslint.config.js
in extends
extends: [
'eslint:recommended',
'plugin:jethr/recommended',
],
or plugin
plugins: {
"jethr": jetEslintPlugin
},
Setup rules
Add our rules to eslint.config.js
rules: {
"jethr/imports-order": ['error', 'always']
}
You can customize the imports order as your pleasure
rules: {
"jethr/imports-order": ['error', 'always', {
order: [
['named'],
['default', 'js'],
['sideeffect'],
['namespace'],
['default', 'vue'],
]
}],
},