Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@pathscale/eslint-plugin-vue3
Advanced tools
linting rules to help enforce our rather limited view of the world.. Highly opinionated and not for everyone
Currently requires eslint-plugin-vue
.
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @pathscale/eslint-plugin-vue3
:
$ npm install @pathscale/eslint-plugin-vue3 --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must
also install @pathscale/eslint-plugin-vue3
globally.
Add @pathscale/vue3
to the plugins section of your .eslintrc
configuration
file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@pathscale/vue3"
]
}
Then configure the rules you want to use under the rules section. Defaults shown below.
{
"rules": {
"@pathscale/vue3/v-directive": ["error", {
// Add AST that should always be allowed
"safe": [
"Literal",
"Identifier",
// This only allows the inner template elements; one can still
// block `TemplateLiteral`
"TemplateElement"
],
// Add AST that should not be allowed
"unsafe": [
// These just add a single operator, so not blocked by default
// 'SpreadElement',
// 'UnaryExpression',
// This can have design features so not blocking by default
// 'TemplateLiteral',
// Note: in avoiding these, one can use a call expression
"AssignmentExpression",
"BinaryExpression",
"LogicalExpression",
"ConditionalExpression",
],
// Add AST that should not be allowed except at root
"unsafeNested": [
"CallExpression"
]
}]
}
}
@pathscale/vue3/v-directive
- See example aboveFAQs
Extra linting rules for clean Vue3
We found that @pathscale/eslint-plugin-vue3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.