eslint-plugin-qwik
Advanced tools
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' | ||
} | ||
} | ||
}; |
@@ -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 |
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
6500
149
2