eslint-plugin-qwik
Advanced tools
Comparing version 0.0.18-dev123 to 0.0.18-dev20220422050522
"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 @@ } |
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4416
5
100