zirka 0.0.28 → 0.0.30
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/styleguide.cjs
CHANGED
|
@@ -463,6 +463,22 @@ var init_import = __esm({
|
|
|
463
463
|
* Source: Vercel Style Guide → https://github.com/vercel/style-guide
|
|
464
464
|
*/
|
|
465
465
|
"import/no-extraneous-dependencies": ["error", { includeTypes: true }],
|
|
466
|
+
/**
|
|
467
|
+
* Disallow relative imports that reach into src when alias imports are available.
|
|
468
|
+
* 🚫 Not fixable - https://eslint.org/docs/latest/rules/no-restricted-imports
|
|
469
|
+
* Source: Added by bredansky → https://github.com/bredansky
|
|
470
|
+
*/
|
|
471
|
+
"no-restricted-imports": [
|
|
472
|
+
"error",
|
|
473
|
+
{
|
|
474
|
+
patterns: [
|
|
475
|
+
{
|
|
476
|
+
group: ["./src/**", "../src/**", "../../src/**", "../../../src/**", "../../../../src/**"],
|
|
477
|
+
message: "Use the @/ alias for imports from src."
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
],
|
|
466
482
|
/**
|
|
467
483
|
* Disallow mutable exports.
|
|
468
484
|
* 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md
|
package/dist/styleguide.js
CHANGED
|
@@ -447,6 +447,22 @@ var init_import = __esm({
|
|
|
447
447
|
* Source: Vercel Style Guide → https://github.com/vercel/style-guide
|
|
448
448
|
*/
|
|
449
449
|
"import/no-extraneous-dependencies": ["error", { includeTypes: true }],
|
|
450
|
+
/**
|
|
451
|
+
* Disallow relative imports that reach into src when alias imports are available.
|
|
452
|
+
* 🚫 Not fixable - https://eslint.org/docs/latest/rules/no-restricted-imports
|
|
453
|
+
* Source: Added by bredansky → https://github.com/bredansky
|
|
454
|
+
*/
|
|
455
|
+
"no-restricted-imports": [
|
|
456
|
+
"error",
|
|
457
|
+
{
|
|
458
|
+
patterns: [
|
|
459
|
+
{
|
|
460
|
+
group: ["./src/**", "../src/**", "../../src/**", "../../../src/**", "../../../../src/**"],
|
|
461
|
+
message: "Use the @/ alias for imports from src."
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
],
|
|
450
466
|
/**
|
|
451
467
|
* Disallow mutable exports.
|
|
452
468
|
* 🚫 Not fixable - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zirka",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Bredansky/zirka"
|
|
8
|
+
},
|
|
5
9
|
"license": "ISC",
|
|
6
10
|
"author": "",
|
|
7
11
|
"type": "module",
|
|
@@ -22,7 +26,8 @@
|
|
|
22
26
|
"build": "tsup",
|
|
23
27
|
"check": "npm run fix && npm run typecheck",
|
|
24
28
|
"fix": "eslint . --fix",
|
|
25
|
-
"prepare": "husky"
|
|
29
|
+
"prepare": "husky",
|
|
30
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
26
31
|
},
|
|
27
32
|
"lint-staged": {
|
|
28
33
|
"!(*.ts|*.mts|*.cts|*.tsx|*.js|*.cjs|*.mjs|*.jsx)": "prettier --write --ignore-unknown",
|
|
@@ -65,6 +70,6 @@
|
|
|
65
70
|
"typescript": "^5.8.3"
|
|
66
71
|
},
|
|
67
72
|
"engines": {
|
|
68
|
-
"node": ">=22
|
|
73
|
+
"node": ">=22"
|
|
69
74
|
}
|
|
70
75
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
declare module "@next/eslint-plugin-next" {
|
|
2
|
-
import type { ESLint, Linter } from "eslint";
|
|
3
|
-
|
|
4
|
-
interface NextESLintPlugin extends ESLint.Plugin {
|
|
5
|
-
configs: {
|
|
6
|
-
recommended: {
|
|
7
|
-
rules: Linter.RulesRecord;
|
|
8
|
-
};
|
|
9
|
-
"core-web-vitals": {
|
|
10
|
-
rules: Linter.RulesRecord;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const plugin: NextESLintPlugin;
|
|
16
|
-
// eslint-disable-next-line import/no-default-export -- @next/eslint-plugin-next exports plugin by default
|
|
17
|
-
export default plugin;
|
|
18
|
-
}
|
|
1
|
+
declare module "@next/eslint-plugin-next" {
|
|
2
|
+
import type { ESLint, Linter } from "eslint";
|
|
3
|
+
|
|
4
|
+
interface NextESLintPlugin extends ESLint.Plugin {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: {
|
|
7
|
+
rules: Linter.RulesRecord;
|
|
8
|
+
};
|
|
9
|
+
"core-web-vitals": {
|
|
10
|
+
rules: Linter.RulesRecord;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const plugin: NextESLintPlugin;
|
|
16
|
+
// eslint-disable-next-line import/no-default-export -- @next/eslint-plugin-next exports plugin by default
|
|
17
|
+
export default plugin;
|
|
18
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare module "@eslint-community/eslint-plugin-eslint-comments/configs" {
|
|
2
|
-
import type { Linter } from "eslint";
|
|
3
|
-
|
|
4
|
-
const recommended: Linter.Config;
|
|
5
|
-
}
|
|
1
|
+
declare module "@eslint-community/eslint-plugin-eslint-comments/configs" {
|
|
2
|
+
import type { Linter } from "eslint";
|
|
3
|
+
|
|
4
|
+
const recommended: Linter.Config;
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare module "eslint-plugin-import" {
|
|
2
|
-
import type { Linter } from "eslint";
|
|
3
|
-
|
|
4
|
-
const flatConfigs: {
|
|
5
|
-
recommended: Linter.Config;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
1
|
+
declare module "eslint-plugin-import" {
|
|
2
|
+
import type { Linter } from "eslint";
|
|
3
|
+
|
|
4
|
+
const flatConfigs: {
|
|
5
|
+
recommended: Linter.Config;
|
|
6
|
+
};
|
|
7
|
+
}
|