@yasainet/eslint 0.0.84 → 0.0.86

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "scripts": {
39
- "check": "node scripts/check-layer-selectors.mjs"
39
+ "check": "node scripts/check-layer-selectors.mjs && node scripts/check-rule-scoping.mjs"
40
40
  },
41
41
  "dependencies": {
42
42
  "@stylistic/eslint-plugin": "^5.9.0",
@@ -1,3 +1,5 @@
1
1
  import type { Linter } from "eslint";
2
2
 
3
- export declare const eslintConfig: Linter.Config[];
3
+ declare const yasainetConfig: Linter.Config[];
4
+
5
+ export default yasainetConfig;
@@ -12,7 +12,7 @@ const denoNamespaceImportConfigs = createEntryPointConfigs(
12
12
  ["supabase/functions/_*/**"],
13
13
  );
14
14
 
15
- export const eslintConfig = [
15
+ const yasainetConfig = [
16
16
  ...createCommonConfigs(FEATURE_ROOT, {
17
17
  banAliasImports: true,
18
18
  typeAware: false,
@@ -23,3 +23,5 @@ export const eslintConfig = [
23
23
  ...denoUtilsBoundaryConfigs,
24
24
  ...denoNamespaceImportConfigs,
25
25
  ];
26
+
27
+ export default yasainetConfig;
@@ -1,3 +1,5 @@
1
1
  import type { Linter } from "eslint";
2
2
 
3
- export declare const eslintConfig: Linter.Config[];
3
+ declare const yasainetConfig: Linter.Config[];
4
+
5
+ export default yasainetConfig;
@@ -14,12 +14,14 @@ const nextEntryPointConfigs = createEntryPointConfigs(
14
14
  ["src/app/**/*.ts", "src/app/**/*.tsx"],
15
15
  );
16
16
 
17
- export const eslintConfig = [
17
+ const yasainetConfig = [
18
18
  {
19
19
  name: "rules/ignore-shadcn-ui",
20
20
  ignores: ["src/components/shared/ui/*.{ts,tsx}"],
21
21
  },
22
- ...createCommonConfigs("src/features"),
22
+ ...createCommonConfigs("src/features", {
23
+ rulesFiles: ["src/**/*.ts", "src/**/*.tsx"],
24
+ }),
23
25
  ...libBoundaryConfigs,
24
26
  ...calleeBoundaryConfigs,
25
27
  ...hooksLayerConfigs,
@@ -30,3 +32,5 @@ export const eslintConfig = [
30
32
  ...tailwindcssConfigs,
31
33
  ...nextEntryPointConfigs,
32
34
  ];
35
+
36
+ export default yasainetConfig;
@@ -1,3 +1,5 @@
1
1
  import type { Linter } from "eslint";
2
2
 
3
- export declare const eslintConfig: Linter.Config[];
3
+ declare const yasainetConfig: Linter.Config[];
4
+
5
+ export default yasainetConfig;
@@ -5,7 +5,12 @@ const nodeEntryPointConfigs = createEntryPointConfigs(
5
5
  ["scripts/commands/*.ts"],
6
6
  );
7
7
 
8
- export const eslintConfig = [
9
- ...createCommonConfigs("scripts/features", { banAliasImports: true }),
8
+ const yasainetConfig = [
9
+ ...createCommonConfigs("scripts/features", {
10
+ banAliasImports: true,
11
+ rulesFiles: ["scripts/**/*.ts"],
12
+ }),
10
13
  ...nodeEntryPointConfigs,
11
14
  ];
15
+
16
+ export default yasainetConfig;