Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-qwik

Package Overview
Dependencies
Maintainers
1
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-qwik - npm Package Compare versions

Comparing version 0.0.18-6 to 0.0.18-dev123

11

index.js
"use strict";
exports.__esModule = true;
exports.rules = void 0;
exports.configs = exports.rules = void 0;
var noPropsDestructuting_1 = require("./lib/noPropsDestructuting");

@@ -10,1 +10,10 @@ var noUseAfterAwait_1 = require("./lib/noUseAfterAwait");

};
exports.configs = {
recommended: {
plugins: ['qwik'],
rules: {
'qwik/no-props-destructuring': 'error',
'qwik/no-use-after-await': 'error'
}
}
};

2

lib/noPropsDestructuting.js

@@ -26,3 +26,3 @@ "use strict";

context.report({
node: node,
node: node.arguments[0].params[0],
message: 'Props destructuring is not a good practice in Qwik'

@@ -29,0 +29,0 @@ });

@@ -33,7 +33,9 @@ "use strict";

var last = stack[stack.length - 1];
last.await = true;
if (last) {
last.await = true;
}
},
'CallExpression[callee.name=/^use/]': function (node) {
var last = stack[stack.length - 1];
if (last.await) {
if (last && last.await) {
context.report({

@@ -40,0 +42,0 @@ node: node,

{
"name": "eslint-plugin-qwik",
"version": "0.0.18-6",
"version": "0.0.18-dev123",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
"main": "dist/index.js",
"main": "index.js",
"author": "",

@@ -7,0 +7,0 @@ "license": "MIT",

@@ -1,1 +0,1 @@

# eslint-plugin-qwik
# eslint-plugin-qwik
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