eslint-plugin-qwik 2.0.0-alpha.7 → 2.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -374,4 +374,4 @@ import Image from '~/media/image.png';
374
374
  <Image />`.trim(),eE=`
375
375
  <img src="/image.png">`.trim(),rE=`
376
376
  <img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),tE=`
377
- <img src="/static/images/portrait-01.webp">`.trim();function Vv(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${Uv(r)}`}function Uv(r){return`${r}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,t,n)=>`${t.toUpperCase()+n}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}var _l={meta:{type:"suggestion",docs:{description:"Detect useVisibleTask$() functions.",recommended:!0,url:"https://qwik.dev/docs/guides/best-practices/#use-usevisibletask-as-a-last-resort"},messages:{noUseVisibleTask:"useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead. If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment."}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;e.callee.name==="useVisibleTask$"&&r.report({node:e.callee,messageId:"noUseVisibleTask"})}}}};var En={name:"eslint-plugin-qwik",description:"An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",version:"2.0.0-alpha.7",author:"Qwik Team",bugs:"https://github.com/QwikDev/qwik/issues",dependencies:{"@typescript-eslint/utils":"^8.12.2","jsx-ast-utils":"^3.3.5"},devDependencies:{"@qwik.dev/core":"workspace:*","@qwik.dev/router":"workspace:*","@types/eslint":"9.6.1","@types/estree":"1.0.5","@typescript-eslint/rule-tester":"8.14.0",redent:"4.0.0"},engines:{node:"^18.17.0 || ^20.3.0 || >=21.0.0"},files:["README.md","dist"],homepage:"https://github.com/QwikDev/qwik#readme",keywords:["builder.io","eslint","qwik"],license:"MIT",main:"dist/index.js",repository:{type:"git",url:"https://github.com/QwikDev/qwik.git",directory:"packages/eslint-rules"},scripts:{test:"cd ../..; ./node_modules/.bin/vitest packages/eslint-plugin-qwik/qwik.unit.ts"}};var kl={"use-method-usage":El,"valid-lexical-scope":Al,"loader-location":hl,"no-react-props":bl,"prefer-classlist":xl,"jsx-no-script-url":gl,"jsx-key":ml,"unused-server":Sl,"jsx-img":Il,"jsx-a":Pn,"no-use-visible-task":_l},Cl={"qwik/use-method-usage":"error","qwik/valid-lexical-scope":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/loader-location":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn","qwik/jsx-a":"warn","qwik/no-use-visible-task":"warn"},Fl={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/loader-location":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error","qwik/jsx-img":"error","qwik/jsx-a":"error","qwik/no-use-visible-task":"warn"},Jv={recommended:{plugins:["qwik"],rules:Cl},strict:{plugins:["qwik"],rules:Fl}},Bv={configs:{recommended:[{plugins:{qwik:void 0},rules:Cl}],strict:[{plugins:{qwik:void 0},rules:Fl}]},meta:{name:En.name,version:En.version},rules:kl};0&&(module.exports={configs,qwikEslint9Plugin,rules});
377
+ <img src="/static/images/portrait-01.webp">`.trim();function Vv(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${Uv(r)}`}function Uv(r){return`${r}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,t,n)=>`${t.toUpperCase()+n}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}var _l={meta:{type:"suggestion",docs:{description:"Detect useVisibleTask$() functions.",recommended:!0,url:"https://qwik.dev/docs/guides/best-practices/#use-usevisibletask-as-a-last-resort"},messages:{noUseVisibleTask:"useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead. If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment."}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;e.callee.name==="useVisibleTask$"&&r.report({node:e.callee,messageId:"noUseVisibleTask"})}}}};var En={name:"eslint-plugin-qwik",description:"An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",version:"2.0.0-alpha.8",author:"Qwik Team",bugs:"https://github.com/QwikDev/qwik/issues",dependencies:{"@typescript-eslint/utils":"^8.12.2","jsx-ast-utils":"^3.3.5"},devDependencies:{"@qwik.dev/core":"workspace:*","@qwik.dev/router":"workspace:*","@types/eslint":"9.6.1","@types/estree":"1.0.5","@typescript-eslint/rule-tester":"8.14.0",redent:"4.0.0"},engines:{node:"^18.17.0 || ^20.3.0 || >=21.0.0"},files:["README.md","dist"],homepage:"https://github.com/QwikDev/qwik#readme",keywords:["builder.io","eslint","qwik"],license:"MIT",main:"dist/index.js",repository:{type:"git",url:"https://github.com/QwikDev/qwik.git",directory:"packages/eslint-rules"},scripts:{test:"cd ../..; ./node_modules/.bin/vitest packages/eslint-plugin-qwik/qwik.unit.ts"}};var kl={"use-method-usage":El,"valid-lexical-scope":Al,"loader-location":hl,"no-react-props":bl,"prefer-classlist":xl,"jsx-no-script-url":gl,"jsx-key":ml,"unused-server":Sl,"jsx-img":Il,"jsx-a":Pn,"no-use-visible-task":_l},Cl={"qwik/use-method-usage":"error","qwik/valid-lexical-scope":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/loader-location":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn","qwik/jsx-a":"warn","qwik/no-use-visible-task":"warn"},Fl={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/loader-location":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error","qwik/jsx-img":"error","qwik/jsx-a":"error","qwik/no-use-visible-task":"warn"},Jv={recommended:{plugins:["qwik"],rules:Cl},strict:{plugins:["qwik"],rules:Fl}},Bv={configs:{recommended:[{plugins:{qwik:void 0},rules:Cl}],strict:[{plugins:{qwik:void 0},rules:Fl}]},meta:{name:En.name,version:En.version},rules:kl};0&&(module.exports={configs,qwikEslint9Plugin,rules});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-qwik",
3
3
  "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
4
- "version": "2.0.0-alpha.7",
4
+ "version": "2.0.0-alpha.8",
5
5
  "author": "Qwik Team",
6
6
  "bugs": "https://github.com/QwikDev/qwik/issues",
7
7
  "dependencies": {
@@ -13,8 +13,8 @@
13
13
  "@types/estree": "1.0.5",
14
14
  "@typescript-eslint/rule-tester": "8.14.0",
15
15
  "redent": "4.0.0",
16
- "@qwik.dev/core": "2.0.0-alpha.7",
17
- "@qwik.dev/router": "2.0.0-alpha.7"
16
+ "@qwik.dev/core": "2.0.0-alpha.8",
17
+ "@qwik.dev/router": "2.0.0-alpha.8"
18
18
  },
19
19
  "engines": {
20
20
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0"