@yasainet/eslint 0.0.19 → 0.0.21

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.19",
3
+ "version": "0.0.21",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -67,6 +67,7 @@ export function generatePrefixLibMapping(featureRoot) {
67
67
  return mapping;
68
68
  }
69
69
 
70
+ /** @description Build glob patterns scoped to the given feature root */
70
71
  export const featuresGlob = (featureRoot, subpath) => [
71
72
  `${featureRoot}/${subpath}`,
72
73
  ];
@@ -64,7 +64,7 @@ export function createNamingConfigs(featureRoot, prefixLibMapping) {
64
64
  rules: {
65
65
  "check-file/filename-naming-convention": [
66
66
  "error",
67
- { "**/*.ts": "+([a-z0-9-]).schema" },
67
+ { "**/*.ts": `${prefixPattern}.schema` },
68
68
  ],
69
69
  },
70
70
  },
@@ -3,6 +3,7 @@ import checkFile from "eslint-plugin-check-file";
3
3
  import jsdocPlugin from "eslint-plugin-jsdoc";
4
4
  import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
5
5
 
6
+ /** @description Shared plugin instances used across ESLint configs */
6
7
  export const plugins = {
7
8
  "@stylistic": stylistic,
8
9
  "check-file": checkFile,
@@ -2,6 +2,7 @@ import tseslint from "typescript-eslint";
2
2
 
3
3
  import { simpleImportSortPlugin, stylistic } from "./plugins.mjs";
4
4
 
5
+ /** @description Base rule configs for code style and TypeScript checks */
5
6
  export const rulesConfigs = [
6
7
  {
7
8
  name: "rules/shared",
@@ -1,5 +1,6 @@
1
1
  import { createCommonConfigs } from "../common/index.mjs";
2
2
 
3
+ /** @description Deno ESLint flat config entry point */
3
4
  export const eslintConfig = [
4
5
  ...createCommonConfigs("supabase/functions/features", {
5
6
  banAliasImports: true,
@@ -1,3 +1,4 @@
1
+ /** @description Enforce "use server" / "use client" directives per file convention */
1
2
  export const directivesConfigs = [
2
3
  {
3
4
  name: "directives/server-action",
@@ -5,6 +5,7 @@ import { directivesConfigs } from "./directives.mjs";
5
5
  import { importPathStyleConfigs } from "./imports.mjs";
6
6
  import { namingConfigs } from "./naming.mjs";
7
7
 
8
+ /** @description Next.js ESLint flat config entry point */
8
9
  export const eslintConfig = [
9
10
  ...createCommonConfigs("src/features"),
10
11
  ...libBoundaryConfigs,
@@ -1,5 +1,6 @@
1
1
  import { checkFile } from "../common/plugins.mjs";
2
2
 
3
+ /** @description Next.js-specific naming convention configs for hooks and components */
3
4
  export const namingConfigs = [
4
5
  {
5
6
  name: "naming/hooks",
@@ -1,5 +1,6 @@
1
1
  import { createCommonConfigs } from "../common/index.mjs";
2
2
 
3
+ /** @description Node.js ESLint flat config entry point */
3
4
  export const eslintConfig = [
4
5
  ...createCommonConfigs("scripts/features", { banAliasImports: true }),
5
6
  ];