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
262
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-dev123 to 0.0.18-dev20220422050522

3

index.js
"use strict";
exports.__esModule = true;
exports.configs = exports.rules = void 0;
var noPropsDestructuting_1 = require("./lib/noPropsDestructuting");
var noUseAfterAwait_1 = require("./lib/noUseAfterAwait");
exports.rules = {
'no-props-destructuring': noPropsDestructuting_1.noPropsDestructuring,
'no-use-after-await': noUseAfterAwait_1.noUseAfterAwait

@@ -14,3 +12,2 @@ };

rules: {
'qwik/no-props-destructuring': 'error',
'qwik/no-use-after-await': 'error'

@@ -17,0 +14,0 @@ }

2

package.json
{
"name": "eslint-plugin-qwik",
"version": "0.0.18-dev123",
"version": "0.0.18-dev20220422050522",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",

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

@@ -19,16 +19,2 @@ "use strict";

};
describe('no-props-destructuring', function () {
var ruleTester = new RuleTester(testConfig);
ruleTester.run('my-rule', index_1.rules['no-props-destructuring'], {
valid: [
"export const HelloWorld = component$((props) => {\n return $(({prop}) => {\n return (\n <Host>\n {prop}\n {props}\n </Host>\n );\n });\n });",
],
invalid: [
{
code: "export const HelloWorld = component$(({prop}) => {\n return $(() => {\n return (\n <Host>\n {prop}\n </Host>\n );\n });\n });",
errors: ['Props destructuring is not a good practice in Qwik']
},
]
});
});
describe('no-use-after-await', function () {

@@ -35,0 +21,0 @@ var ruleTester = new RuleTester(testConfig);

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