New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-crisp

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-crisp - npm Package Compare versions

Comparing version 1.0.21 to 1.0.22

rules/vue-header-check.js

1

index.js

@@ -34,2 +34,3 @@ module.exports = {

"vue-emits-order": require("./rules/vue-emits-order"),
"vue-header-check": require("./rules/vue-header-check"),
"vue-html-quotes": require("./rules/vue-html-quotes"),

@@ -36,0 +37,0 @@ "vue-props-declaration-order": require("./rules/vue-props-declaration-order")

2

package.json
{
"name": "eslint-plugin-crisp",
"version": "1.0.21",
"version": "1.0.22",
"description": "Custom EsLint Rules for Crisp",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -75,2 +75,3 @@ module.exports = {

"crisp/regex-in-constructor": "error",
"crisp/ternary-parenthesis": "error",
"crisp/variable-names": "error",

@@ -182,2 +183,3 @@ "crisp/no-short-parameters": [

"crisp/vue-emits-order": "error",
"crisp/vue-header-check": "error",
"crisp/vue-html-quotes": "error",

@@ -184,0 +186,0 @@ "crisp/vue-props-declaration-order": "error"

@@ -10,2 +10,3 @@ module.exports = {

schema: [], // no options
fixable: "code",
},

@@ -24,2 +25,9 @@ create(context) {

message: "The condition in ternary expressions with an operator should be wrapped in parentheses",
fix(fixer) {
const conditionText = sourceCode.getText(node.test);
return [
fixer.insertTextBefore(node.test, "("),
fixer.insertTextAfter(node.test, ")"),
];
},
});

@@ -26,0 +34,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc