Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.