@useinsider/eslint-config 1.10.0-beta.1 → 1.10.0-beta.3
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/README.md +5 -4
- package/dist/configs/vue2-typescript/index.d.ts +3 -0
- package/dist/{index-BjqFNarr.cjs → index-2_9rBSpP.cjs} +1 -1
- package/dist/{index-fI1e4MqV.cjs → index-B41cHtId.cjs} +1 -1
- package/dist/index-B7ziFULj.js +27 -0
- package/dist/index-B8X0IqOU.cjs +1 -0
- package/dist/index-BI2IfhR3.cjs +1 -0
- package/dist/index-BQVf1P-Y.cjs +1 -0
- package/dist/index-BdD-lO5i.cjs +1 -0
- package/dist/index-Bfy7vNWN.cjs +1 -0
- package/dist/{index-IJ5JatZj.js → index-BouM73dF.js} +1 -1
- package/dist/{index-DgHV2stm.cjs → index-CRh3p5Gs.cjs} +1 -1
- package/dist/index-Ch7IiQIe.js +40 -0
- package/dist/index-CjRTXK0e.cjs +1 -0
- package/dist/index-CzL7XbjX.js +10 -0
- package/dist/{index-D9bTg7j3.cjs → index-DEJ1oa9h.cjs} +1 -1
- package/dist/{index-DvOKf9k2.js → index-DaCYoMI6.js} +1 -1
- package/dist/index-Dm722vxt.js +40 -0
- package/dist/{index-D1KdUFk4.js → index-DqwajayA.js} +1 -1
- package/dist/{index-BnTzUbum.js → index-QCaWMEMK.js} +1 -1
- package/dist/index-VIzBYZzv.js +27 -0
- package/dist/index-_FfUOn5J.js +27 -0
- package/dist/main.cjs +2 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +55 -53
- package/dist/rules/vue2.d.ts +2 -2
- package/dist/stylistic-BGCob372.cjs +1 -0
- package/dist/stylistic-DcItXUA4.js +418 -0
- package/dist/{rules/typescript.cjs → typescript-BvnP4VCM.cjs} +1 -1
- package/dist/{rules/typescript.js → typescript-Dg4zKuYI.js} +1 -1
- package/dist/{rules/vue.js → vue-5XWMLJUh.js} +1 -1
- package/dist/{rules/vue.cjs → vue-D2lo_IGG.cjs} +1 -1
- package/dist/{rules/vue2.js → vue2-7aDd9M-9.js} +8 -3
- package/dist/vue2-CpDCkxcX.cjs +1 -0
- package/package.json +1 -9
- package/dist/base-B-PS5UHr.cjs +0 -1
- package/dist/base-BA0DI93B.js +0 -33
- package/dist/index-BBpi_Vtq.cjs +0 -1
- package/dist/index-BGJZVkll.cjs +0 -1
- package/dist/index-BQhhxQGU.cjs +0 -1
- package/dist/index-C05_dgDY.cjs +0 -1
- package/dist/index-CG4b8J5I.js +0 -48
- package/dist/index-CQ1RJV11.js +0 -28
- package/dist/index-D-NRhaYV.cjs +0 -1
- package/dist/index-DbBU_JDe.js +0 -41
- package/dist/index-nLGFKikH.js +0 -48
- package/dist/index-o9oM4y-o.js +0 -65
- package/dist/rules/core.cjs +0 -1
- package/dist/rules/core.js +0 -101
- package/dist/rules/cspell.cjs +0 -1
- package/dist/rules/cspell.js +0 -10
- package/dist/rules/importRules.cjs +0 -1
- package/dist/rules/importRules.js +0 -33
- package/dist/rules/jsdoc.cjs +0 -1
- package/dist/rules/jsdoc.js +0 -74
- package/dist/rules/stylistic.cjs +0 -1
- package/dist/rules/stylistic.js +0 -182
- package/dist/rules/vue2.cjs +0 -1
package/README.md
CHANGED
|
@@ -45,10 +45,11 @@ configured for different environments, such as ServiceWorkers, WebWorkers, etc.
|
|
|
45
45
|
|
|
46
46
|
### Framework-specific
|
|
47
47
|
|
|
48
|
-
| Environment
|
|
49
|
-
|
|
|
50
|
-
| **Vue 3
|
|
51
|
-
| **Vue 2 (
|
|
48
|
+
| Environment | JavaScript | TypeScript |
|
|
49
|
+
| :-------------------------------- | :-------------------------------------------------------- | :-------------------------------------------------------- |
|
|
50
|
+
| **Vue 3 (Setup/Composition API)** | [`vue3`](./src/configs/vue3#readme) | [`vue3-typescript`](./src/configs/vue3-typescript#readme) |
|
|
51
|
+
| **Vue 2 (Setup/Composition API)** | [`vue2-typescript`](./src/configs/vue2-typescript#readme) | [`vue2-typescript`](./src/configs/vue2-typescript#readme) |
|
|
52
|
+
| **Vue 2 (Options API)** | [`vue2`](./src/configs/vue2#readme) | - |
|
|
52
53
|
|
|
53
54
|
### ⏳ Upcoming Configurations
|
|
54
55
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-BI2IfhR3.cjs"),o=r.merge(t.default,{languageOptions:{globals:{...e.browser}}});exports.default=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-Bfy7vNWN.cjs"),o=r.merge(t.default,{languageOptions:{globals:{...e.browser}}});exports.default=o;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "@stylistic/eslint-plugin";
|
|
2
|
+
import r from "eslint-config-airbnb-extended";
|
|
3
|
+
import { importX as s } from "eslint-plugin-import-x";
|
|
4
|
+
import i from "eslint-plugin-jsdoc";
|
|
5
|
+
import m from "eslint-plugin-vue";
|
|
6
|
+
import t from "eslint-plugin-vue-scoped-css";
|
|
7
|
+
import l from "globals";
|
|
8
|
+
import { b as n, s as a, a as p, i as f, c, p as g } from "./stylistic-DcItXUA4.js";
|
|
9
|
+
import { v as u } from "./vue-5XWMLJUh.js";
|
|
10
|
+
import { merge as d, mergeAll as o } from "./main.js";
|
|
11
|
+
const R = d(o(m.configs["flat/recommended"], t.configs["flat/recommended"]), s.flatConfigs.recommended, o(r.configs.base.recommended), i.configs["flat/recommended"], g(), c, f, p, { plugins: { "@stylistic": e } }, a, u, n(), {
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parserOptions: {
|
|
14
|
+
sourceType: "module",
|
|
15
|
+
ecmaFeatures: {
|
|
16
|
+
jsx: !0
|
|
17
|
+
},
|
|
18
|
+
extraFileExtensions: [".vue"]
|
|
19
|
+
},
|
|
20
|
+
globals: {
|
|
21
|
+
...l.browser
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
R as default
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@stylistic/eslint-plugin"),i=require("eslint-config-airbnb-extended"),o=require("eslint-plugin-import-x"),t=require("eslint-plugin-jsdoc"),n=require("eslint-plugin-vue"),l=require("eslint-plugin-vue-scoped-css"),u=require("globals"),e=require("./stylistic-BGCob372.cjs"),c=require("./vue2-CpDCkxcX.cjs"),s=require("./main.cjs"),g=s.merge(s.mergeAll(n.configs["flat/vue2-recommended"],l.configs["flat/vue2-recommended"]),o.importX.flatConfigs.recommended,s.mergeAll(i.configs.base.recommended),t.configs["flat/recommended"],e.preConfig(),e.core,e.importRules,e.cspell,{plugins:{"@stylistic":r}},e.stylisticRules,c.vue2Options,e.postConfig(),{languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]},globals:{...u.browser}}});exports.default=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@eslint/js"),c=require("@stylistic/eslint-plugin"),o=require("eslint-config-airbnb-extended"),n=require("eslint-plugin-import-x"),l=require("eslint-plugin-jsdoc"),t=require("typescript-eslint"),e=require("./stylistic-BGCob372.cjs"),p=require("./typescript-BvnP4VCM.cjs"),r=require("./main.cjs"),u=r.mergeAll(t.config(i.configs.recommended,n.importX.flatConfigs.recommended,o.configs.base.all,...t.configs.recommended,...t.configs.recommendedTypeChecked.filter(s=>!s.plugins),l.configs["flat/recommended-typescript-error"],r.merge(e.preConfig(),e.core,e.importRules,e.cspell,{plugins:{"@stylistic":c}},e.stylisticRules,p.typescript,e.postConfig(),{settings:{jsdoc:{mode:"typescript",tagNamePreference:{callback:"watch",desc:"use"}},"import/resolver":{typescript:!0,node:!0}}})));exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@eslint/js"),o=require("@stylistic/eslint-plugin"),n=require("eslint-config-airbnb-extended"),c=require("eslint-plugin-import-x"),l=require("eslint-plugin-jsdoc"),u=require("eslint-plugin-vue"),a=require("eslint-plugin-vue-scoped-css"),p=require("globals"),s=require("typescript-eslint"),e=require("./stylistic-BGCob372.cjs"),d=require("./typescript-BvnP4VCM.cjs"),g=require("./vue-D2lo_IGG.cjs"),t=require("./main.cjs"),m=t.mergeAll(s.config(i.configs.recommended,c.importX.flatConfigs.recommended,n.configs.base.all,...s.configs.recommended,...s.configs.recommendedTypeChecked.filter(r=>!r.plugins),...u.configs["flat/recommended"].map(r=>(delete r.files,r)),...a.configs["flat/recommended"],l.configs["flat/recommended-typescript-error"],t.merge(e.preConfig(),e.core,e.importRules,e.cspell,{plugins:{"@stylistic":o}},e.stylisticRules,g.vue,d.typescript,e.postConfig(),{languageOptions:{globals:{...p.browser},parserOptions:{parser:s.parser,sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]}},settings:{jsdoc:{mode:"typescript",tagNamePreference:{callback:"watch",desc:"use"}}}})));exports.default=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@eslint/js"),o=require("@stylistic/eslint-plugin"),n=require("eslint-config-airbnb-extended"),c=require("eslint-plugin-import-x"),l=require("eslint-plugin-jsdoc"),u=require("eslint-plugin-vue"),p=require("eslint-plugin-vue-scoped-css"),a=require("globals"),s=require("typescript-eslint"),e=require("./stylistic-BGCob372.cjs"),m=require("./typescript-BvnP4VCM.cjs"),d=require("./vue2-CpDCkxcX.cjs"),t=require("./main.cjs"),g=t.mergeAll(s.config(i.configs.recommended,c.importX.flatConfigs.recommended,n.configs.base.all,...s.configs.recommended,...s.configs.recommendedTypeChecked.filter(r=>!r.plugins),...u.configs["flat/vue2-recommended"].map(r=>(delete r.files,r)),...p.configs["flat/vue2-recommended"],l.configs["flat/recommended-typescript-error"],t.merge(e.preConfig(),e.core,e.importRules,e.cspell,{plugins:{"@stylistic":o}},e.stylisticRules,d.vue2Composition,m.typescript,e.postConfig(),{languageOptions:{globals:{...a.browser},parserOptions:{parser:s.parser,sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]}},settings:{jsdoc:{mode:"typescript",tagNamePreference:{callback:"watch",desc:"use"}}}})));exports.default=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@stylistic/eslint-plugin"),s=require("eslint-config-airbnb-extended"),r=require("eslint-plugin-import-x"),o=require("eslint-plugin-jsdoc"),e=require("./stylistic-BGCob372.cjs"),i=require("./main.cjs"),n=i.merge(r.importX.flatConfigs.recommended,i.mergeAll(s.configs.base.recommended),o.configs["flat/recommended"],e.preConfig(),e.core,e.importRules,e.cspell,{plugins:{"@stylistic":t}},e.stylisticRules,e.postConfig());exports.default=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),t=require("./main.cjs"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),t=require("./main.cjs"),n=require("./index-Bfy7vNWN.cjs"),o=t.merge(n.default,{languageOptions:{globals:{...e.node}}});exports.default=o;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import r from "@eslint/js";
|
|
2
|
+
import s from "@stylistic/eslint-plugin";
|
|
3
|
+
import i from "eslint-config-airbnb-extended";
|
|
4
|
+
import { importX as t } from "eslint-plugin-import-x";
|
|
5
|
+
import m from "eslint-plugin-jsdoc";
|
|
6
|
+
import p from "eslint-plugin-vue";
|
|
7
|
+
import a from "eslint-plugin-vue-scoped-css";
|
|
8
|
+
import c from "globals";
|
|
9
|
+
import o from "typescript-eslint";
|
|
10
|
+
import { b as n, s as l, a as f, i as d, c as g, p as u } from "./stylistic-DcItXUA4.js";
|
|
11
|
+
import { t as b } from "./typescript-Dg4zKuYI.js";
|
|
12
|
+
import { a as y } from "./vue2-7aDd9M-9.js";
|
|
13
|
+
import { mergeAll as C, merge as x } from "./main.js";
|
|
14
|
+
const E = C(o.config(r.configs.recommended, t.flatConfigs.recommended, i.configs.base.all, ...o.configs.recommended, ...o.configs.recommendedTypeChecked.filter((e) => !e.plugins), ...p.configs["flat/vue2-recommended"].map((e) => (delete e.files, e)), ...a.configs["flat/vue2-recommended"], m.configs["flat/recommended-typescript-error"], x(u(), g, d, f, { plugins: { "@stylistic": s } }, l, y, b, n(), {
|
|
15
|
+
languageOptions: {
|
|
16
|
+
globals: {
|
|
17
|
+
...c.browser
|
|
18
|
+
},
|
|
19
|
+
parserOptions: {
|
|
20
|
+
parser: o.parser,
|
|
21
|
+
sourceType: "module",
|
|
22
|
+
ecmaFeatures: {
|
|
23
|
+
jsx: !0
|
|
24
|
+
},
|
|
25
|
+
extraFileExtensions: [".vue"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
settings: {
|
|
29
|
+
jsdoc: {
|
|
30
|
+
mode: "typescript",
|
|
31
|
+
tagNamePreference: {
|
|
32
|
+
callback: "watch",
|
|
33
|
+
desc: "use"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
})));
|
|
38
|
+
export {
|
|
39
|
+
E as default
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@stylistic/eslint-plugin"),i=require("eslint-config-airbnb-extended"),o=require("eslint-plugin-import-x"),t=require("eslint-plugin-jsdoc"),n=require("eslint-plugin-vue"),l=require("eslint-plugin-vue-scoped-css"),c=require("globals"),e=require("./stylistic-BGCob372.cjs"),u=require("./vue-D2lo_IGG.cjs"),r=require("./main.cjs"),g=r.merge(r.mergeAll(n.configs["flat/recommended"],l.configs["flat/recommended"]),o.importX.flatConfigs.recommended,r.mergeAll(i.configs.base.recommended),t.configs["flat/recommended"],e.preConfig(),e.core,e.importRules,e.cspell,{plugins:{"@stylistic":s}},e.stylisticRules,u.vue,e.postConfig(),{languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]},globals:{...c.browser}}});exports.default=g;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import o from "@stylistic/eslint-plugin";
|
|
2
|
+
import s from "eslint-config-airbnb-extended";
|
|
3
|
+
import { importX as i } from "eslint-plugin-import-x";
|
|
4
|
+
import r from "eslint-plugin-jsdoc";
|
|
5
|
+
import { p as m, c as e, i as t, a, s as p, b as c } from "./stylistic-DcItXUA4.js";
|
|
6
|
+
import { merge as f, mergeAll as l } from "./main.js";
|
|
7
|
+
const C = f(i.flatConfigs.recommended, l(s.configs.base.recommended), r.configs["flat/recommended"], m(), e, t, a, { plugins: { "@stylistic": o } }, p, c());
|
|
8
|
+
export {
|
|
9
|
+
C as default
|
|
10
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),o=require("./main.cjs"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),o=require("./main.cjs"),t=require("./index-BI2IfhR3.cjs"),n=o.merge(t.default,{languageOptions:{globals:{...e.node}}});exports.default=n;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import o from "@eslint/js";
|
|
2
|
+
import s from "@stylistic/eslint-plugin";
|
|
3
|
+
import t from "eslint-config-airbnb-extended";
|
|
4
|
+
import { importX as i } from "eslint-plugin-import-x";
|
|
5
|
+
import m from "eslint-plugin-jsdoc";
|
|
6
|
+
import p from "eslint-plugin-vue";
|
|
7
|
+
import c from "eslint-plugin-vue-scoped-css";
|
|
8
|
+
import a from "globals";
|
|
9
|
+
import r from "typescript-eslint";
|
|
10
|
+
import { b as l, s as n, a as f, i as d, c as g, p as u } from "./stylistic-DcItXUA4.js";
|
|
11
|
+
import { t as b } from "./typescript-Dg4zKuYI.js";
|
|
12
|
+
import { v as y } from "./vue-5XWMLJUh.js";
|
|
13
|
+
import { mergeAll as x, merge as C } from "./main.js";
|
|
14
|
+
const E = x(r.config(o.configs.recommended, i.flatConfigs.recommended, t.configs.base.all, ...r.configs.recommended, ...r.configs.recommendedTypeChecked.filter((e) => !e.plugins), ...p.configs["flat/recommended"].map((e) => (delete e.files, e)), ...c.configs["flat/recommended"], m.configs["flat/recommended-typescript-error"], C(u(), g, d, f, { plugins: { "@stylistic": s } }, n, y, b, l(), {
|
|
15
|
+
languageOptions: {
|
|
16
|
+
globals: {
|
|
17
|
+
...a.browser
|
|
18
|
+
},
|
|
19
|
+
parserOptions: {
|
|
20
|
+
parser: r.parser,
|
|
21
|
+
sourceType: "module",
|
|
22
|
+
ecmaFeatures: {
|
|
23
|
+
jsx: !0
|
|
24
|
+
},
|
|
25
|
+
extraFileExtensions: [".vue"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
settings: {
|
|
29
|
+
jsdoc: {
|
|
30
|
+
mode: "typescript",
|
|
31
|
+
tagNamePreference: {
|
|
32
|
+
callback: "watch",
|
|
33
|
+
desc: "use"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
})));
|
|
38
|
+
export {
|
|
39
|
+
E as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import o from "@stylistic/eslint-plugin";
|
|
2
|
+
import r from "eslint-config-airbnb-extended";
|
|
3
|
+
import { importX as s } from "eslint-plugin-import-x";
|
|
4
|
+
import i from "eslint-plugin-jsdoc";
|
|
5
|
+
import m from "eslint-plugin-vue";
|
|
6
|
+
import t from "eslint-plugin-vue-scoped-css";
|
|
7
|
+
import l from "globals";
|
|
8
|
+
import { b as n, s as p, a, i as f, c, p as u } from "./stylistic-DcItXUA4.js";
|
|
9
|
+
import { v as g } from "./vue2-7aDd9M-9.js";
|
|
10
|
+
import { merge as d, mergeAll as e } from "./main.js";
|
|
11
|
+
const R = d(e(m.configs["flat/vue2-recommended"], t.configs["flat/vue2-recommended"]), s.flatConfigs.recommended, e(r.configs.base.recommended), i.configs["flat/recommended"], u(), c, f, a, { plugins: { "@stylistic": o } }, p, g, n(), {
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parserOptions: {
|
|
14
|
+
sourceType: "module",
|
|
15
|
+
ecmaFeatures: {
|
|
16
|
+
jsx: !0
|
|
17
|
+
},
|
|
18
|
+
extraFileExtensions: [".vue"]
|
|
19
|
+
},
|
|
20
|
+
globals: {
|
|
21
|
+
...l.browser
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
R as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import o from "@eslint/js";
|
|
2
|
+
import s from "@stylistic/eslint-plugin";
|
|
3
|
+
import t from "eslint-config-airbnb-extended";
|
|
4
|
+
import { importX as i } from "eslint-plugin-import-x";
|
|
5
|
+
import m from "eslint-plugin-jsdoc";
|
|
6
|
+
import e from "typescript-eslint";
|
|
7
|
+
import { p as c, c as p, i as f, a as n, s as l, b as a } from "./stylistic-DcItXUA4.js";
|
|
8
|
+
import { t as d } from "./typescript-Dg4zKuYI.js";
|
|
9
|
+
import { mergeAll as g, merge as u } from "./main.js";
|
|
10
|
+
const w = g(e.config(o.configs.recommended, i.flatConfigs.recommended, t.configs.base.all, ...e.configs.recommended, ...e.configs.recommendedTypeChecked.filter((r) => !r.plugins), m.configs["flat/recommended-typescript-error"], u(c(), p, f, n, { plugins: { "@stylistic": s } }, l, d, a(), {
|
|
11
|
+
settings: {
|
|
12
|
+
jsdoc: {
|
|
13
|
+
mode: "typescript",
|
|
14
|
+
tagNamePreference: {
|
|
15
|
+
callback: "watch",
|
|
16
|
+
desc: "use"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"import/resolver": {
|
|
20
|
+
typescript: !0,
|
|
21
|
+
node: !0
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
})));
|
|
25
|
+
export {
|
|
26
|
+
w as default
|
|
27
|
+
};
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("node:fs"),y=require("node:path"),w=require("node:url"),h=require("@antfu/install-pkg"),b=require("ts-deepmerge"),v=require("node:console");var l=typeof document<"u"?document.currentScript:null;let u=!1;const d=new Set,R=["@cspell/eslint-plugin","@eslint/eslintrc","@eslint/js","@stylistic/eslint-plugin","@types/eslint","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","eslint","eslint-config-airbnb-base","eslint-config-airbnb-typescript","eslint-import-resolver-typescript","eslint-plugin-import","eslint-plugin-jsdoc","globals","typescript","typescript-eslint"];function p(e){const r=y.resolve(e,"package.json"),s=m.readFileSync(r,"utf8");if(!s)throw new Error(`Unable to locate package.json: ${r}`);return JSON.parse(s)}function S(){const e=p(process.cwd());return{...e.dependencies,...e.devDependencies}}function q(){return p(w.fileURLToPath(new URL("../",typeof document>"u"?require("url").pathToFileURL(__filename).href:l&&l.tagName.toUpperCase()==="SCRIPT"&&l.src||new URL("main.cjs",document.baseURI).href))).dependencies}async function P(){if(u)return;const e=S(),s=Object.entries(q()).filter(([n,t])=>R.includes(n)&&!d.has(n)&&(!e[n]||e[n]!==t));if(!s.length)return;const i=s.map(([n,t])=>`${n}@${t.replace(/^\W+/,"")}`);console.info("Missing dependencies detected:"),console.info(i.map(n=>` - ${n}`).join(`
|
|
2
2
|
`)),console.info(`
|
|
3
|
-
Installing dependencies:`),await
|
|
3
|
+
Installing dependencies:`),await h.installPackage(i,{dev:!0,additionalArgs:["-E"]}),process.exit(1)}function k(e){if(typeof e=="boolean"){u=e;return}e.forEach(r=>d.add(String(r)))}function o(...e){return b.merge.withOptions({mergeArrays:!1},...e)}const f=new Set;function x(e){e.forEach(r=>{f.add(r)})}function j(e){if(!Array.isArray(e))return"warn";const[,...r]=e;return["warn",...r]}function c(e,r){let s=r||f;return Array.isArray(s)&&(s=new Set(s)),!e||!s.size?e:(r&&s.forEach(i=>{e[i]||v.warn(`Unknown rule "${i}". Please remove it from the silenced rules list.`)}),Object.entries(e).reduce((i,[n,t])=>(t&&(i[n]=s.has(n)?j(t):t),i),{}))}function C(...e){return e.flat().reduce((r,s)=>o(r,s),{})}const a={async config(){return Promise.resolve().then(()=>require("./index-BmBugWe4.cjs"))},async javascript(){return Promise.resolve().then(()=>require("./index-Bfy7vNWN.cjs"))},async"javascript-node"(){return Promise.resolve().then(()=>require("./index-CRh3p5Gs.cjs"))},async"javascript-dom"(){return Promise.resolve().then(()=>require("./index-B41cHtId.cjs"))},async typescript(){return Promise.resolve().then(()=>require("./index-BI2IfhR3.cjs"))},async"typescript-node"(){return Promise.resolve().then(()=>require("./index-DEJ1oa9h.cjs"))},async"typescript-dom"(){return Promise.resolve().then(()=>require("./index-2_9rBSpP.cjs"))},async vue3(){return Promise.resolve().then(()=>require("./index-CjRTXK0e.cjs"))},async"vue3-typescript"(){return Promise.resolve().then(()=>require("./index-BQVf1P-Y.cjs"))},async vue2(){return Promise.resolve().then(()=>require("./index-B8X0IqOU.cjs"))},async"vue2-typescript"(){return Promise.resolve().then(()=>require("./index-BdD-lO5i.cjs"))},async jest(){return Promise.resolve().then(()=>require("./index-jfME37P0.cjs"))},async"jsdoc-based-ts"(){return Promise.resolve().then(()=>require("./index-B7Hdni5X.cjs"))}};async function D(e){await P();const r=e.preset.map(async t=>typeof a[t]=="function"&&(await a[t]()).default).filter(Boolean),i=(await Promise.all(r)).reduce((t,g)=>o(t,g),{});delete i.files;const n=o(i,e.config);return n?(e.silenceRules?n.rules=c(n.rules,e.silenceRules):n.rules=c(n.rules),n):Promise.reject(new Error("No config found"))}exports.merge=o;exports.mergeAll=C;exports.silenceDependencyWarning=k;exports.silenceRules=x;exports.useInsider=D;
|
package/dist/main.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare const configMap: {
|
|
|
10
10
|
vue3(): Promise<typeof import("./configs/vue3")>;
|
|
11
11
|
'vue3-typescript'(): Promise<typeof import("./configs/vue3-typescript")>;
|
|
12
12
|
vue2(): Promise<typeof import("./configs/vue2")>;
|
|
13
|
+
'vue2-typescript'(): Promise<typeof import("./configs/vue2-typescript")>;
|
|
13
14
|
jest(): Promise<typeof import("./configs/jest")>;
|
|
14
15
|
'jsdoc-based-ts'(): Promise<typeof import("./configs/jsdoc-based-ts")>;
|
|
15
16
|
};
|
package/dist/main.js
CHANGED
|
@@ -10,10 +10,7 @@ const f = /* @__PURE__ */ new Set(), S = [
|
|
|
10
10
|
"@eslint/eslintrc",
|
|
11
11
|
"@eslint/js",
|
|
12
12
|
"@stylistic/eslint-plugin",
|
|
13
|
-
"@stylistic/eslint-plugin-migrate",
|
|
14
13
|
"@types/eslint",
|
|
15
|
-
"@types/eslint__eslintrc",
|
|
16
|
-
"@types/eslint__js",
|
|
17
14
|
"@typescript-eslint/eslint-plugin",
|
|
18
15
|
"@typescript-eslint/parser",
|
|
19
16
|
"eslint",
|
|
@@ -27,10 +24,10 @@ const f = /* @__PURE__ */ new Set(), S = [
|
|
|
27
24
|
"typescript-eslint"
|
|
28
25
|
];
|
|
29
26
|
function m(e) {
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
32
|
-
throw new Error(`Unable to locate package.json: ${
|
|
33
|
-
return JSON.parse(
|
|
27
|
+
const s = y.resolve(e, "package.json"), n = w.readFileSync(s, "utf8");
|
|
28
|
+
if (!n)
|
|
29
|
+
throw new Error(`Unable to locate package.json: ${s}`);
|
|
30
|
+
return JSON.parse(n);
|
|
34
31
|
}
|
|
35
32
|
function k() {
|
|
36
33
|
const e = m(process.cwd());
|
|
@@ -49,62 +46,62 @@ function E() {
|
|
|
49
46
|
async function D() {
|
|
50
47
|
if (d)
|
|
51
48
|
return;
|
|
52
|
-
const e = k(),
|
|
53
|
-
if (!
|
|
49
|
+
const e = k(), n = Object.entries(E()).filter(([t, o]) => S.includes(t) && !f.has(t) && (!e[t] || e[t] !== o));
|
|
50
|
+
if (!n.length)
|
|
54
51
|
return;
|
|
55
|
-
const
|
|
56
|
-
console.info("Missing dependencies detected:"), console.info(
|
|
52
|
+
const r = n.map(([t, o]) => `${t}@${o.replace(/^\W+/, "")}`);
|
|
53
|
+
console.info("Missing dependencies detected:"), console.info(r.map((t) => ` - ${t}`).join(`
|
|
57
54
|
`)), console.info(`
|
|
58
|
-
Installing dependencies:`), await h(
|
|
55
|
+
Installing dependencies:`), await h(r, { dev: !0, additionalArgs: ["-E"] }), process.exit(1);
|
|
59
56
|
}
|
|
60
57
|
function $(e) {
|
|
61
58
|
if (typeof e == "boolean") {
|
|
62
59
|
d = e;
|
|
63
60
|
return;
|
|
64
61
|
}
|
|
65
|
-
e.forEach((
|
|
62
|
+
e.forEach((s) => f.add(String(s)));
|
|
66
63
|
}
|
|
67
64
|
function u(...e) {
|
|
68
65
|
return v.withOptions({ mergeArrays: !1 }, ...e);
|
|
69
66
|
}
|
|
70
67
|
const a = /* @__PURE__ */ new Set();
|
|
71
68
|
function c(e) {
|
|
72
|
-
e.forEach((
|
|
73
|
-
a.add(
|
|
69
|
+
e.forEach((s) => {
|
|
70
|
+
a.add(s);
|
|
74
71
|
});
|
|
75
72
|
}
|
|
76
|
-
function
|
|
73
|
+
function C(e) {
|
|
77
74
|
if (!Array.isArray(e))
|
|
78
75
|
return "warn";
|
|
79
|
-
const [, ...
|
|
80
|
-
return ["warn", ...
|
|
76
|
+
const [, ...s] = e;
|
|
77
|
+
return ["warn", ...s];
|
|
81
78
|
}
|
|
82
|
-
function l(e,
|
|
83
|
-
let
|
|
84
|
-
return Array.isArray(
|
|
85
|
-
e[
|
|
86
|
-
}), Object.entries(e).reduce((
|
|
79
|
+
function l(e, s) {
|
|
80
|
+
let n = s || a;
|
|
81
|
+
return Array.isArray(n) && (n = new Set(n)), !e || !n.size ? e : (s && n.forEach((r) => {
|
|
82
|
+
e[r] || j(`Unknown rule "${r}". Please remove it from the silenced rules list.`);
|
|
83
|
+
}), Object.entries(e).reduce((r, [t, o]) => (o && (r[t] = n.has(t) ? C(o) : o), r), {}));
|
|
87
84
|
}
|
|
88
85
|
if (import.meta.vitest) {
|
|
89
|
-
const { vi: e, describe:
|
|
86
|
+
const { vi: e, describe: s, test: n, expect: r, afterEach: t } = import.meta.vitest, o = e.hoisted(() => ({
|
|
90
87
|
warn: e.fn()
|
|
91
88
|
}));
|
|
92
|
-
e.mock("node:console", () => o),
|
|
89
|
+
e.mock("node:console", () => o), t(() => {
|
|
93
90
|
a.clear();
|
|
94
|
-
}),
|
|
95
|
-
|
|
91
|
+
}), s("silenceRules", () => {
|
|
92
|
+
n("should register given rule keys as silenced", () => {
|
|
96
93
|
const i = "@stylistic/type-generic-spacing";
|
|
97
|
-
|
|
94
|
+
r(a.has(i)).toBe(!1), c([i]), r(a.has(i)).toBe(!0);
|
|
98
95
|
});
|
|
99
|
-
}),
|
|
100
|
-
|
|
96
|
+
}), s("filterSilencedRules", () => {
|
|
97
|
+
n("should return the same rules object if no rules are silenced", () => {
|
|
101
98
|
const i = {
|
|
102
99
|
"no-console": "warn",
|
|
103
100
|
"no-debugger": "warn"
|
|
104
101
|
};
|
|
105
|
-
|
|
106
|
-
}),
|
|
107
|
-
c(["no-console"]),
|
|
102
|
+
r(l(i)).toBe(i);
|
|
103
|
+
}), n("should return a new rules object with silenced rules silenced and other rules unchanged", () => {
|
|
104
|
+
c(["no-console"]), r(l({
|
|
108
105
|
"no-console": "error",
|
|
109
106
|
"no-debugger": "warn",
|
|
110
107
|
"no-alert": "error"
|
|
@@ -113,8 +110,8 @@ if (import.meta.vitest) {
|
|
|
113
110
|
"no-debugger": "warn",
|
|
114
111
|
"no-alert": "error"
|
|
115
112
|
});
|
|
116
|
-
}),
|
|
117
|
-
c(["no-bitwise", "new-cap"]),
|
|
113
|
+
}), n("should return a new rules object with silenced rules silenced and other rules unchanged", () => {
|
|
114
|
+
c(["no-bitwise", "new-cap"]), r(l({
|
|
118
115
|
"max-len": "off",
|
|
119
116
|
"new-cap": ["error"],
|
|
120
117
|
"no-alert": ["error"],
|
|
@@ -129,24 +126,24 @@ if (import.meta.vitest) {
|
|
|
129
126
|
allow: ["~"]
|
|
130
127
|
}]
|
|
131
128
|
});
|
|
132
|
-
}),
|
|
129
|
+
}), n("should not warn about unknown rules", () => {
|
|
133
130
|
c(["no-console", "no-bitwise"]), l({
|
|
134
131
|
"no-console": "error",
|
|
135
132
|
"no-debugger": "warn",
|
|
136
133
|
"no-alert": "error"
|
|
137
|
-
}),
|
|
138
|
-
}),
|
|
134
|
+
}), r(o.warn).not.toHaveBeenCalled(), r(o.warn).not.toHaveBeenCalled();
|
|
135
|
+
}), n("should warn about unknown rules", () => {
|
|
139
136
|
l({
|
|
140
137
|
"no-console": "error",
|
|
141
138
|
"no-debugger": "warn",
|
|
142
139
|
"no-alert": "error"
|
|
143
|
-
}, ["no-console", "no-bitwise"]),
|
|
144
|
-
}),
|
|
140
|
+
}, ["no-console", "no-bitwise"]), r(o.warn).toHaveBeenCalledTimes(1), r(o.warn).toHaveBeenCalledWith('Unknown rule "no-bitwise". Please remove it from the silenced rules list.');
|
|
141
|
+
}), n.each([
|
|
145
142
|
[["@typescript-eslint/no-unsafe-call"], "warn"],
|
|
146
143
|
[/* @__PURE__ */ new Set(["@typescript-eslint/no-unsafe-call"]), "warn"],
|
|
147
144
|
[[], "error"]
|
|
148
145
|
])("#%# should filter scope-related rules and ignore globally silenced rules", (i, g) => {
|
|
149
|
-
c(["@typescript-eslint/no-unsafe-assignment"]),
|
|
146
|
+
c(["@typescript-eslint/no-unsafe-assignment"]), r(l({
|
|
150
147
|
"@typescript-eslint/no-unsafe-assignment": "error",
|
|
151
148
|
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
152
149
|
"@typescript-eslint/no-unsafe-call": "error"
|
|
@@ -159,38 +156,41 @@ if (import.meta.vitest) {
|
|
|
159
156
|
});
|
|
160
157
|
}
|
|
161
158
|
function U(...e) {
|
|
162
|
-
return e.flat().reduce((
|
|
159
|
+
return e.flat().reduce((s, n) => u(s, n), {});
|
|
163
160
|
}
|
|
164
161
|
const p = {
|
|
165
162
|
async config() {
|
|
166
163
|
return import("./index-C2p6z9H4.js");
|
|
167
164
|
},
|
|
168
165
|
async javascript() {
|
|
169
|
-
return import("./index-
|
|
166
|
+
return import("./index-CzL7XbjX.js");
|
|
170
167
|
},
|
|
171
168
|
async "javascript-node"() {
|
|
172
|
-
return import("./index-
|
|
169
|
+
return import("./index-QCaWMEMK.js");
|
|
173
170
|
},
|
|
174
171
|
async "javascript-dom"() {
|
|
175
|
-
return import("./index-
|
|
172
|
+
return import("./index-BouM73dF.js");
|
|
176
173
|
},
|
|
177
174
|
async typescript() {
|
|
178
|
-
return import("./index-
|
|
175
|
+
return import("./index-_FfUOn5J.js");
|
|
179
176
|
},
|
|
180
177
|
async "typescript-node"() {
|
|
181
|
-
return import("./index-
|
|
178
|
+
return import("./index-DaCYoMI6.js");
|
|
182
179
|
},
|
|
183
180
|
async "typescript-dom"() {
|
|
184
|
-
return import("./index-
|
|
181
|
+
return import("./index-DqwajayA.js");
|
|
185
182
|
},
|
|
186
183
|
async vue3() {
|
|
187
|
-
return import("./index-
|
|
184
|
+
return import("./index-B7ziFULj.js");
|
|
188
185
|
},
|
|
189
186
|
async "vue3-typescript"() {
|
|
190
|
-
return import("./index-
|
|
187
|
+
return import("./index-Dm722vxt.js");
|
|
191
188
|
},
|
|
192
189
|
async vue2() {
|
|
193
|
-
return import("./index-
|
|
190
|
+
return import("./index-VIzBYZzv.js");
|
|
191
|
+
},
|
|
192
|
+
async "vue2-typescript"() {
|
|
193
|
+
return import("./index-Ch7IiQIe.js");
|
|
194
194
|
},
|
|
195
195
|
async jest() {
|
|
196
196
|
return import("./index-CG7O0RJO.js");
|
|
@@ -201,8 +201,10 @@ const p = {
|
|
|
201
201
|
};
|
|
202
202
|
async function H(e) {
|
|
203
203
|
await D();
|
|
204
|
-
const
|
|
205
|
-
|
|
204
|
+
const s = e.preset.map(async (o) => typeof p[o] == "function" && (await p[o]()).default).filter(Boolean), r = (await Promise.all(s)).reduce((o, i) => u(o, i), {});
|
|
205
|
+
delete r.files;
|
|
206
|
+
const t = u(r, e.config);
|
|
207
|
+
return t ? (e.silenceRules ? t.rules = l(t.rules, e.silenceRules) : t.rules = l(t.rules), t) : Promise.reject(new Error("No config found"));
|
|
206
208
|
}
|
|
207
209
|
export {
|
|
208
210
|
u as merge,
|
package/dist/rules/vue2.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
declare const
|
|
3
|
-
export
|
|
2
|
+
export declare const vue2Options: Linter.Config;
|
|
3
|
+
export declare const vue2Composition: Linter.Config;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("node:path"),t=require("node:url"),n=require("@cspell/eslint-plugin/recommended"),i=require("@eslint/eslintrc"),a=require("@eslint/js"),r=require("./main.cjs");var e=typeof document<"u"?document.currentScript:null;const l={rules:{"jsdoc/check-param-names":["error"],"jsdoc/check-tag-names":["error"],"jsdoc/no-undefined-types":"off","jsdoc/require-param":["error",{enableRestElementFixer:!1,enableRootFixer:!1}],"jsdoc/require-jsdoc":["off"],"jsdoc/require-param-description":"off","jsdoc/require-param-type":["error"],"jsdoc/require-property-description":"off","jsdoc/require-returns":["error",{contexts:["TSInterfaceDeclaration","TSMethodSignature"],forceRequireReturn:!0,exemptedBy:["inheritdoc","watch"]}],"jsdoc/require-returns-check":["error"],"jsdoc/require-returns-description":"off","jsdoc/tag-lines":["error"],"jsdoc/valid-types":"off","jsdoc/check-types":["error"],"jsdoc/no-multi-asterisks":["error"],"jsdoc/check-alignment":["error"],"jsdoc/sort-tags":["error",{linesBetween:1,tagSequence:[{tags:["todo","description","deprecated","namespace","private","protected","public","static","readonly","since","access","template","typedef","class","augments","mixes","extends","interface","this","constructor","alias","memberof","example","use","see","link","global","fires","listens","type","param","property","yields","returns","lends","override","todo"]}]}]}},c=new i.FlatCompat({baseDirectory:o.dirname(t.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:e&&e.tagName.toUpperCase()==="SCRIPT"&&e.src||new URL("stylistic-BGCob372.cjs",document.baseURI).href))});function p(s=[]){return r.merge(a.configs.recommended,n,s&&r.mergeAll(c.plugins(...s)))}function u(){return r.merge(l,{languageOptions:{ecmaVersion:2022,parserOptions:{ecmaVersion:2022}},rules:{"jsdoc/require-param":"off","jsdoc/require-jsdoc":"off","jsdoc/require-returns":"off","jsdoc/require-param-type":"off","jsdoc/check-param-names":"off"}})}const d={"no-spaced-func":"off"},f={rules:{...d,"arrow-parens":"off",camelcase:["error",{allow:["^\\$_"]}],"class-methods-use-this":"off","comma-dangle":"off","consistent-return":["error"],curly:["error","all"],"dot-notation":["error"],"function-paren-newline":"off","guard-for-in":"error","handle-callback-err":["error"],indent:"off","max-len":"off","new-cap":["error"],"no-alert":["error"],"no-bitwise":["error",{allow:["~"]}],"no-caller":["error"],"no-case-declarations":["error"],"no-confusing-arrow":["error",{allowParens:!0}],"no-console":["error"],"no-debugger":["error"],"no-div-regex":["error"],"no-dupe-args":["error"],"no-dupe-keys":["error"],"no-duplicate-case":["error"],"no-else-return":["error"],"no-empty":["error"],"no-extra-bind":["error"],"no-extra-boolean-cast":"error","no-fallthrough":["error"],"no-implicit-coercion":["error",{boolean:!0,number:!0,string:!0}],"implicit-arrow-linebreak":"off","no-invalid-regexp":["error"],"no-iterator":["error"],"no-mixed-operators":"off","no-multi-spaces":"off","no-multi-str":["error"],"no-multiple-empty-lines":"off","no-native-reassign":"error","no-nested-ternary":["error"],"no-new":"off","no-new-object":["error"],"no-new-require":["error"],"no-param-reassign":["error",{props:!1}],"no-plusplus":"off","no-process-exit":["error"],"no-promise-executor-return":["error",{allowVoid:!0}],"no-return-assign":["error","except-parens"],"no-self-compare":["error"],"no-sequences":["error"],"no-shadow":["error",{allow:["state"]}],"no-undef":["error"],"no-underscore-dangle":"off","no-unexpected-multiline":["error"],"no-unreachable":["error"],"no-unused-vars":["error"],"no-use-before-define":"error","no-useless-call":["error"],"no-void":"off","no-with":["error"],"object-curly-newline":"off","object-shorthand":["error","always"],"padded-blocks":"off","prefer-const":["error",{destructuring:"all"}],"prefer-destructuring":["error"],radix:["error","as-needed"],semi:"off","space-before-function-paren":"off","space-in-parens":"off",strict:["error","never"],"use-isnan":["error"],"valid-typeof":["error"],"no-trailing-spaces":"off"}},y={rules:{"@cspell/spellchecker":["error",{customWordListFile:"./cspell.json"}]}},m={rules:{"import-x/extensions":["error",{css:"always",js:"never",json:"always",jsx:"never",sass:"always",scss:"always",svg:"always",ts:"never",tsx:"never",vue:"always"}],"import-x/no-cycle":"off","import-x/no-unresolved":"off","import-x/order":["error",{alphabetize:{caseInsensitive:!0,order:"asc"},groups:["index","builtin","object","type","external","parent","internal","sibling"],pathGroups:[{group:"internal",pattern:"@/**"}]}],"import-x/prefer-default-export":"off"}},g={rules:{"@stylistic/array-bracket-newline":["error","consistent"],"@stylistic/array-bracket-spacing":["error","never"],"@stylistic/array-element-newline":["error","consistent"],"@stylistic/arrow-parens":["error","as-needed"],"@stylistic/arrow-spacing":["error"],"@stylistic/brace-style":["error","1tbs"],"@stylistic/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline",enums:"always-multiline",generics:"always-multiline",tuples:"always-multiline"}],"@stylistic/comma-spacing":["error"],"@stylistic/computed-property-spacing":["error"],"@stylistic/dot-location":["error","property"],"@stylistic/eol-last":["error","always"],"@stylistic/function-call-argument-newline":["error","consistent"],"@stylistic/function-call-spacing":["error","never"],"@stylistic/function-paren-newline":["error","consistent"],"@stylistic/implicit-arrow-linebreak":["error","beside"],"@stylistic/indent":["error",4,{SwitchCase:1,ignoredNodes:["PropertyDefinition[decorators]","TSUnionType"]}],"@stylistic/key-spacing":["error"],"@stylistic/keyword-spacing":["error"],"@stylistic/linebreak-style":["error","unix"],"@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/max-len":["error",120,{ignoreComments:!0,ignoreRegExpLiterals:!0,ignoreTrailingComments:!0,ignoreUrls:!0}],"@stylistic/max-statements-per-line":["error",{max:2}],"@stylistic/member-delimiter-style":["error",{multiline:{requireLast:!0},singleline:{requireLast:!1}}],"@stylistic/multiline-ternary":["error","always-multiline"],"@stylistic/new-parens":["error","always"],"@stylistic/no-extra-parens":["error","all",{allowParensAfterCommentPattern:"@type|@satisfies",enforceForArrowConditionals:!1,nestedBinaryExpressions:!1,returnAssign:!1}],"@stylistic/no-extra-semi":["error"],"@stylistic/no-floating-decimal":"error","@stylistic/no-mixed-operators":["error",{allowSamePrecedence:!0,groups:[["&","|","^","~","<<",">>",">>>"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]]}],"@stylistic/no-mixed-spaces-and-tabs":["error"],"@stylistic/no-multi-spaces":["error"],"@stylistic/no-multiple-empty-lines":["error",{max:1,maxEOF:0,maxBOF:0}],"@stylistic/no-trailing-spaces":["error"],"@stylistic/no-whitespace-before-property":["error"],"@stylistic/object-curly-newline":["error",{consistent:!0}],"@stylistic/object-curly-spacing":["error","always"],"@stylistic/padded-blocks":["error","never"],"@stylistic/quote-props":["error","as-needed"],"@stylistic/quotes":["error","single",{avoidEscape:!0}],"@stylistic/rest-spread-spacing":["error","never"],"@stylistic/semi":["error"],"@stylistic/semi-spacing":["error",{after:!0,before:!1}],"@stylistic/semi-style":["error","last"],"@stylistic/space-before-blocks":["error"],"@stylistic/space-before-function-paren":["error",{anonymous:"always",named:"always"}],"@stylistic/space-in-parens":["error","never"],"@stylistic/space-infix-ops":["error"],"@stylistic/spaced-comment":["error","always",{markers:["/"]}],"@stylistic/template-curly-spacing":["error","never"],"@stylistic/template-tag-spacing":["error","never"],"@stylistic/type-annotation-spacing":["error"],"@stylistic/type-generic-spacing":["error"],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",next:"*",prev:["const","let","var","if","block-like","directive"]},{blankLine:"always",next:["const","let","var","if","while","directive","throw","return","break","default","cjs-export","export","continue","iife"],prev:"*"},{blankLine:"always",prev:["*"],next:["cjs-export","export"]},{blankLine:"any",next:["const","let","var","directive"],prev:["const","let","var","directive"]},{blankLine:"never",next:["singleline-const","singleline-let","singleline-var"],prev:["singleline-const","singleline-let","singleline-var"]},{blankLine:"always",next:["multiline-block-like"],prev:["*"]},{blankLine:"always",next:["*"],prev:["multiline-block-like"]},{blankLine:"any",next:["case"],prev:["case"]},{blankLine:"any",next:["singleline-const","singleline-let","singleline-var"],prev:["cjs-import"]}]}};exports.core=f;exports.cspell=y;exports.importRules=m;exports.postConfig=u;exports.preConfig=p;exports.stylisticRules=g;
|