@zemd/eslint-astro 0.0.25 → 1.0.0
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.
- package/dist/index.d.mts +14 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +9 -11
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -10
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Linter } from "eslint";
|
|
2
|
+
export * from "@zemd/eslint-react";
|
|
3
|
+
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
type AstroOptions = {
|
|
6
|
+
files: string[];
|
|
7
|
+
};
|
|
8
|
+
declare function astro({
|
|
9
|
+
files
|
|
10
|
+
}?: Partial<AstroOptions>): Array<Linter.Config>;
|
|
11
|
+
declare function all(...params: Parameters<typeof astro>): Array<Linter.Config>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { astro, all as default };
|
|
14
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;KAOK,YAAA;EACH,KAAA;AAAA;AAAA,iBAGc,KAAA,CAAA;EAAQ;AAAA,IAAwB,OAAA,CAAQ,YAAA,IAAqB,KAAA,CAAM,MAAA,CAAO,MAAA;AAAA,iBAalE,GAAA,CAAA,GAAO,MAAA,EAAQ,UAAA,QAAkB,KAAA,IAAS,KAAA,CAAM,MAAA,CAAO,MAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{GLOB_ASTRO as e}from"@zemd/eslint-common";import t from"eslint-plugin-astro";import n from"@zemd/eslint-react";export*from"@zemd/eslint-react";function r({files:r=[e]}={}){return[...n(),...t.configs[`flat/recommended`].map(e=>({...e,name:`zemd/${e.name}`,files:e.files??r}))]}function i(...e){return[...n(),...r(...e)]}export{r as astro,i as default};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { GLOB_ASTRO } from \"@zemd/eslint-common\";\nimport type { Linter } from \"eslint\";\nimport astroPlugin from \"eslint-plugin-astro\";\nimport react from \"@zemd/eslint-react\";\n\nexport * from \"@zemd/eslint-react\";\n\ntype AstroOptions = {\n files: string[];\n};\n\nexport function astro({ files = [GLOB_ASTRO] }: Partial<AstroOptions> = {}): Array<Linter.Config> {\n return [\n ...react(),\n ...astroPlugin.configs[\"flat/recommended\"].map((config) => {\n return {\n ...config,\n name: `zemd/${config.name}`,\n files: config.files ?? files,\n };\n }),\n ];\n}\n\nexport default function all(...params: Parameters<typeof astro>): Array<Linter.Config> {\n return [...react(), ...astro(...params)];\n}\n"],"mappings":"sJAWA,SAAgB,EAAM,CAAE,QAAQ,CAAC,EAAW,EAA4B,EAAE,CAAwB,CAChG,MAAO,CACL,GAAG,GAAO,CACV,GAAG,EAAY,QAAQ,oBAAoB,IAAK,IACvC,CACL,GAAG,EACH,KAAM,QAAQ,EAAO,OACrB,MAAO,EAAO,OAAS,EACxB,EACD,CACH,CAGH,SAAwB,EAAI,GAAG,EAAwD,CACrF,MAAO,CAAC,GAAG,GAAO,CAAE,GAAG,EAAM,GAAG,EAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zemd/eslint-astro",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Shared ESLint config for Astro based projects",
|
|
6
6
|
"keywords": [
|
|
@@ -38,31 +38,29 @@
|
|
|
38
38
|
"type": "module",
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|
|
41
|
-
"import": "./dist/index.
|
|
42
|
-
"require": "./dist/index.cjs"
|
|
41
|
+
"import": "./dist/index.mjs"
|
|
43
42
|
}
|
|
44
43
|
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"types": "./dist/index.d.ts",
|
|
44
|
+
"module": "./dist/index.mjs",
|
|
45
|
+
"types": "./dist/index.d.mts",
|
|
48
46
|
"peerDependencies": {
|
|
49
47
|
"eslint": ">=9.2.0"
|
|
50
48
|
},
|
|
51
49
|
"dependencies": {
|
|
52
50
|
"eslint-plugin-astro": "^1.5.0",
|
|
53
|
-
"@zemd/eslint-react": "
|
|
54
|
-
"@zemd/eslint-common": "
|
|
51
|
+
"@zemd/eslint-react": "2.0.0",
|
|
52
|
+
"@zemd/eslint-common": "2.0.0"
|
|
55
53
|
},
|
|
56
54
|
"devDependencies": {
|
|
57
55
|
"@types/eslint": "^9.6.1",
|
|
58
56
|
"@zemd/tsconfig": "^1.4.0",
|
|
59
57
|
"eslint": "^9.39.2",
|
|
60
|
-
"
|
|
58
|
+
"tsdown": "^0.20.0-beta.4",
|
|
61
59
|
"typescript": "^5.9.3"
|
|
62
60
|
},
|
|
63
61
|
"scripts": {
|
|
64
|
-
"build": "
|
|
65
|
-
"dev": "
|
|
62
|
+
"build": "tsdown --minify",
|
|
63
|
+
"dev": "tsdown --watch",
|
|
66
64
|
"lint": "publint"
|
|
67
65
|
}
|
|
68
66
|
}
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var O=Object.create;var a=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var B=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var i=(r,e)=>a(r,"name",{value:e,configurable:!0});var L=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of A(e))!G.call(r,n)&&n!==t&&a(r,n,{get:()=>e[n],enumerable:!(p=z(e,n))||p.enumerable});return r},m=(r,e,t)=>(f(r,e,"default"),t&&f(t,e,"default")),u=(r,e,t)=>(t=r!=null?O(B(r)):{},f(e||!r||!r.__esModule?a(t,"default",{value:r,enumerable:!0}):t,r)),P=r=>f(a({},"__esModule",{value:!0}),r);var o={};L(o,{astro:()=>c,default:()=>x});module.exports=P(o);var s=require("@zemd/eslint-common"),d=u(require("eslint-plugin-astro"),1),l=u(require("@zemd/eslint-react"),1);m(o,require("@zemd/eslint-react"),module.exports);function c({files:r=[s.GLOB_ASTRO]}={}){return[...(0,l.default)(),...d.default.configs["flat/recommended"].map(e=>({...e,name:`zemd/${e.name}`,files:e.files??r}))]}i(c,"astro");function x(...r){return[...(0,l.default)(),...c(...r)]}i(x,"all");0&&(module.exports={astro,...require("@zemd/eslint-react")});
|
package/dist/index.d.cts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Linter } from 'eslint';
|
|
2
|
-
export * from '@zemd/eslint-react';
|
|
3
|
-
|
|
4
|
-
type AstroOptions = {
|
|
5
|
-
files: string[];
|
|
6
|
-
};
|
|
7
|
-
declare function astro({ files }?: Partial<AstroOptions>): Array<Linter.Config>;
|
|
8
|
-
declare function all(...params: Parameters<typeof astro>): Array<Linter.Config>;
|
|
9
|
-
|
|
10
|
-
export { astro, all as default };
|
package/dist/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Linter } from 'eslint';
|
|
2
|
-
export * from '@zemd/eslint-react';
|
|
3
|
-
|
|
4
|
-
type AstroOptions = {
|
|
5
|
-
files: string[];
|
|
6
|
-
};
|
|
7
|
-
declare function astro({ files }?: Partial<AstroOptions>): Array<Linter.Config>;
|
|
8
|
-
declare function all(...params: Parameters<typeof astro>): Array<Linter.Config>;
|
|
9
|
-
|
|
10
|
-
export { astro, all as default };
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var m=Object.defineProperty;var t=(r,e)=>m(r,"name",{value:e,configurable:!0});import{GLOB_ASTRO as n}from"@zemd/eslint-common";import a from"eslint-plugin-astro";import o from"@zemd/eslint-react";export*from"@zemd/eslint-react";function f({files:r=[n]}={}){return[...o(),...a.configs["flat/recommended"].map(e=>({...e,name:`zemd/${e.name}`,files:e.files??r}))]}t(f,"astro");function i(...r){return[...o(),...f(...r)]}t(i,"all");export{f as astro,i as default};
|