xenopomp-essentials 0.1.0 → 0.1.2

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.
@@ -5,6 +5,33 @@ type RiridParams = Parameters<typeof ririd>;
5
5
  type RiridOptions = Defined<RiridParams[0]>;
6
6
  type UserConfig = Defined<RiridParams[1]>;
7
7
 
8
+ /**
9
+ * XenoPOMP`s default ESLint config. Uses @ririd/eslint-config
10
+ * under the hood.
11
+ *
12
+ * @param options
13
+ * @param userConfigs
14
+ *
15
+ * @example
16
+ * import { xenopomp } from 'xenopomp-essentials';
17
+ *
18
+ * export default xenopomp(
19
+ * // Setup Ririd options
20
+ * {
21
+ * react: false,
22
+ * },
23
+ *
24
+ * // Setup custom user configs
25
+ * {
26
+ * name: 'Custom config #1',
27
+ * rules: {
28
+ * 'some/rule-name': 'warn',
29
+ * },
30
+ * // ...
31
+ * },
32
+ * // ...
33
+ * );
34
+ */
8
35
  declare function xenopomp(options?: RiridOptions, ...userConfigs: UserConfig[]): ReturnType<typeof ririd>;
9
36
 
10
- export { xenopomp as default };
37
+ export { xenopomp };
package/eslint/index.d.ts CHANGED
@@ -5,6 +5,33 @@ type RiridParams = Parameters<typeof ririd>;
5
5
  type RiridOptions = Defined<RiridParams[0]>;
6
6
  type UserConfig = Defined<RiridParams[1]>;
7
7
 
8
+ /**
9
+ * XenoPOMP`s default ESLint config. Uses @ririd/eslint-config
10
+ * under the hood.
11
+ *
12
+ * @param options
13
+ * @param userConfigs
14
+ *
15
+ * @example
16
+ * import { xenopomp } from 'xenopomp-essentials';
17
+ *
18
+ * export default xenopomp(
19
+ * // Setup Ririd options
20
+ * {
21
+ * react: false,
22
+ * },
23
+ *
24
+ * // Setup custom user configs
25
+ * {
26
+ * name: 'Custom config #1',
27
+ * rules: {
28
+ * 'some/rule-name': 'warn',
29
+ * },
30
+ * // ...
31
+ * },
32
+ * // ...
33
+ * );
34
+ */
8
35
  declare function xenopomp(options?: RiridOptions, ...userConfigs: UserConfig[]): ReturnType<typeof ririd>;
9
36
 
10
- export { xenopomp as default };
37
+ export { xenopomp };
package/eslint/index.mjs CHANGED
@@ -1 +1 @@
1
- import s from"@ririd/eslint-config";import{deepmerge as r}from"deepmerge-ts";import e from"globals";const n={next:!0,react:!0,jsonc:!1,yaml:!1,stylistic:{semi:!0,quotes:"single"},typescript:{overrides:{"ts/consistent-type-definitions":["error","interface"],"ts/interface-name-prefix":"off","ts/explicit-function-return-type":"off","ts/explicit-module-boundary-types":"off","ts/no-explicit-any":"off"}},rules:{"import/order":"off","react/react-in-jsx-scope":"off","react/prop-types":"off","antfu/top-level-function":"off","perfectionist/sort-imports":"off","perfectionist/sort-named-imports":"off","perfectionist/sort-named-exports":"off","antfu/consistent-chaining":"off","perfectionist/sort-exports":"off","style/no-multiple-empty-lines":"off"}};function i(t,...o){return s(r(n,t),{name:"Old config",languageOptions:{globals:{...e.browser,...e.jquery,...e.node,document:"readonly",navigator:"readonly",window:"readonly"}},ignores:["**/.next/*","**/node_modules/*","**/.github/*","cypress","**/__tests__/e2e/*","*.json","**/*.d.ts",".eslintrc.js","eslint.config.js",".prettierrc",".stylelintrc.js","tsconfig.json","package.json","*.md","*.config.ts","*.config.js","*.md"]},{name:"Rules breakup #1",rules:{"@next/next/no-duplicate-head":"off"}},{name:"Rules breakup #2",rules:{"style/operator-linebreak":"off","test/consistent-test-it":"off","test/prefer-lowercase-title":"off","style/jsx-quotes":"off","style/multiline-ternary":"off","style/indent":"off"},ignores:["cypress"]},...o)}export{i as default};
1
+ import s from"@ririd/eslint-config";import{deepmerge as n}from"deepmerge-ts";import e from"globals";const r={next:!0,react:!0,jsonc:!1,yaml:!1,stylistic:{semi:!0,quotes:"single"},typescript:{overrides:{"ts/consistent-type-definitions":["error","interface"],"ts/interface-name-prefix":"off","ts/explicit-function-return-type":"off","ts/explicit-module-boundary-types":"off","ts/no-explicit-any":"off"}},rules:{"import/order":"off","react/react-in-jsx-scope":"off","react/prop-types":"off","antfu/top-level-function":"off","perfectionist/sort-imports":"off","perfectionist/sort-named-imports":"off","perfectionist/sort-named-exports":"off","antfu/consistent-chaining":"off","perfectionist/sort-exports":"off","style/no-multiple-empty-lines":"off"}};function i(t,...o){return s(n(r,t),{name:"Old config",languageOptions:{globals:{...e.browser,...e.jquery,...e.node,document:"readonly",navigator:"readonly",window:"readonly"}},ignores:["**/.next/*","**/node_modules/*","**/.github/*","cypress","**/__tests__/e2e/*","*.json","**/*.d.ts",".eslintrc.js","eslint.config.js",".prettierrc",".stylelintrc.js","tsconfig.json","package.json","*.md","*.config.ts","*.config.js","*.md"]},{name:"Rules breakup #1",rules:{"@next/next/no-duplicate-head":"off"}},{name:"Rules breakup #2",rules:{"style/operator-linebreak":"off","test/consistent-test-it":"off","test/prefer-lowercase-title":"off","style/jsx-quotes":"off","style/multiline-ternary":"off","style/indent":"off"},ignores:["cypress"]},...o)}export{i as xenopomp};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xenopomp-essentials",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "author": "XenoPOMP <101574433+XenoPOMP@users.noreply.github.com>",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,9 +12,6 @@
12
12
  "engines": {
13
13
  "node": "20 || >=22"
14
14
  },
15
- "publishConfig": {
16
- "tag": "beta"
17
- },
18
15
  "scripts": {
19
16
  "build": "run-p build:* && run-p build:packages:*",
20
17
  "build:main": "unbuild --config .config/build.config.ts",