@genesislcap/eslint-config 14.436.0-FUI-2489.2 → 14.437.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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/index.js +3 -28
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # ESLint configuration
2
2
 
3
- Shared [ESLint](https://eslint.org/) configuration for Genesis apps. It is **not** run by the default monorepo **`npm run lint`** pipeline (that uses Oxlint, Oxfmt, and Stylelint). Use **`genx lint -l eslint`**, **`npm run lint:eslint`**, or **`npm run lint:with-eslint`** when you need this full policy, together with the root **`eslint.config.mjs`** (flat config) in this monorepo.
3
+ Shared [ESLint](https://eslint.org/) configuration.
4
+
4
5
 
5
6
  ## Installation
6
7
 
package/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ const path = require('path');
2
+
1
3
  module.exports = {
2
4
  parser: '@typescript-eslint/parser',
3
5
  plugins: ['@typescript-eslint', 'eslint-plugin-import', 'unused-imports', 'react-hooks'],
@@ -7,7 +9,7 @@ module.exports = {
7
9
  sourceType: 'module',
8
10
  },
9
11
  extends: ['google', 'plugin:prettier/recommended', 'plugin:import/typescript'],
10
- ignorePatterns: ['**/dist/**', '**/.genx/**', '.eslintrc.js'],
12
+ ignorePatterns: ['**/dist/**', '.eslintrc.js'],
11
13
  settings: {
12
14
  'import/resolver': {
13
15
  node: false,
@@ -43,22 +45,6 @@ module.exports = {
43
45
  ignoreRegExpLiterals: true,
44
46
  },
45
47
  ],
46
- // Allow `/// <reference />` (Vite / TS) without a space after `//` — same line is valid TS, not a style slip.
47
- 'spaced-comment': [
48
- 'error',
49
- 'always',
50
- {
51
- line: {
52
- markers: ['/'],
53
- exceptions: ['-', '+'],
54
- },
55
- block: {
56
- balanced: true,
57
- markers: ['!'],
58
- exceptions: ['*'],
59
- },
60
- },
61
- ],
62
48
  'eol-last': ['error', 'always'],
63
49
  'require-await': ['off'],
64
50
  'require-yield': ['error'],
@@ -114,17 +100,6 @@ module.exports = {
114
100
  ],
115
101
  },
116
102
  overrides: [
117
- {
118
- // Playwright `test.extend` fixture factories — not React; hooks rules misfire on `async ({ use }) =>`.
119
- files: [
120
- 'packages/foundation/foundation-testing/src/playwright-bdd/**/*.ts',
121
- 'packages/foundation/foundation-testing/src/playwright/test.ts',
122
- ],
123
- rules: {
124
- 'react-hooks/rules-of-hooks': 'off',
125
- 'react-hooks/exhaustive-deps': 'off',
126
- },
127
- },
128
103
  {
129
104
  files: [
130
105
  '*.styles.ts',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/eslint-config",
3
3
  "description": "ESLint config",
4
- "version": "14.436.0-FUI-2489.2",
4
+ "version": "14.437.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "engines": {
7
7
  "node": ">=22.0.0"
@@ -31,5 +31,5 @@
31
31
  "lint": "genx lint --profile",
32
32
  "lint:fix": "genx lint --fix"
33
33
  },
34
- "gitHead": "16309f873a08dfa541589cd172482677ff5dfd20"
34
+ "gitHead": "c30c777f0ab5e45f4e931a9cc1200ac85bcace35"
35
35
  }