@dvukovic/style-guide 0.20.1 → 0.21.0

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.
@@ -0,0 +1,2 @@
1
+ /** @type {import("@eslint/config-helpers").Config} */
2
+ export const arrayFunction: import("@eslint/config-helpers").Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvukovic/style-guide",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "My own style guide",
5
5
  "repository": {
6
6
  "type": "git",
@@ -69,6 +69,7 @@
69
69
  "@tanstack/eslint-plugin-query": "5.91.4",
70
70
  "@typescript-eslint/parser": "8.53.1",
71
71
  "@vitest/eslint-plugin": "1.6.9",
72
+ "eslint-plugin-array-func": "5.1.1",
72
73
  "eslint-plugin-baseline-js": "0.4.2",
73
74
  "eslint-plugin-import-x": "4.16.1",
74
75
  "eslint-plugin-jest": "29.12.1",
@@ -1,4 +1,5 @@
1
1
  import { ALL_JS_TS_FILES } from "../file-patterns.js"
2
+ import { arrayFunction } from "../plugins/array-function.js"
2
3
  import { baseline } from "../plugins/baseline.js"
3
4
  import { dvukovic } from "../plugins/dvukovic.js"
4
5
  import { eslint } from "../plugins/eslint.js"
@@ -15,6 +16,7 @@ import { unicorn } from "../plugins/unicorn.js"
15
16
  import { unusedImports } from "../plugins/unused-imports.js"
16
17
 
17
18
  export const coreConfig = [
19
+ arrayFunction,
18
20
  baseline,
19
21
  eslint,
20
22
  eslintComments,
@@ -0,0 +1,11 @@
1
+ import plugin from "eslint-plugin-array-func"
2
+
3
+ /** @type {import("@eslint/config-helpers").Config} */
4
+ export const arrayFunction = {
5
+ plugins: {
6
+ "array-func": plugin,
7
+ },
8
+ rules: {
9
+ "array-func/from-map": "error",
10
+ },
11
+ }
@@ -4,7 +4,7 @@ const SPECIAL_FILES = new Map([
4
4
  ["page", "Page"],
5
5
  ["layout", "Layout"],
6
6
  ["loading", "Loading"],
7
- ["error", "Error"],
7
+ ["error", "ErrorBoundary"],
8
8
  ["not-found", "NotFound"],
9
9
  ["template", "Template"],
10
10
  ["default", "Default"],