Skip to content

Commit 058c2e6

Browse files
authored
Configured to use for TypeScript import resolution (#25)
1 parent 9b96f89 commit 058c2e6

5 files changed

Lines changed: 342 additions & 19 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ The goal is to provide consistent linting rules across all Hystax projects.
77

88
## 🧱 Packages
99

10-
| Package | Description |
11-
|-----------------------------------------------|-----------------------------------------------------------------|
12-
| [`@hystax/eslint-config-ui`](./packages/ui) | Shared ESLint config for **frontend/React/TypeScript** projects |
13-
| [`@hystax/eslint-config-server`](./packages/server) | ESLint config for **Node.js / backend** projects |
14-
| *(coming soon)* `@hystax/eslint-config-base` | Base rules for all Hystax projects |
10+
| Package | Description |
11+
| --------------------------------------------------- | --------------------------------------------------------------- |
12+
| [`@hystax/eslint-config-ui`](./packages/ui) | Shared ESLint config for **frontend/React/TypeScript** projects |
13+
| [`@hystax/eslint-config-server`](./packages/server) | ESLint config for **Node.js / backend** projects |
14+
| _(coming soon)_ `@hystax/eslint-config-base` | Base rules for all Hystax projects |
1515

1616
> Each package can be installed and used independently.
1717
@@ -30,11 +30,13 @@ For details on usage, overriding rules, or customizing file globs, see the [`@hy
3030
These commands are for contributors and maintainers to verify that all ESLint configs load correctly:
3131

3232
#### Run tests for all packages
33+
3334
```bash
3435
npm test
3536
```
3637

3738
#### Run tests for a specific package
39+
3840
```bash
3941
npm run test --workspace=@hystax/eslint-config-ui
4042
```

packages/ui/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,27 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## [2.1.0] - 2026-04-02
7+
8+
### Updated
9+
10+
- Configured `eslint-plugin-import` to use `eslint-import-resolver-typescript` for TypeScript import resolution
11+
12+
[2.1.0]: https://github.com/hystax/eslint-config-hystax/tree/packages/ui/v2.1.0
13+
614
## [2.0.0] - 2026-03-30
715

816
### Changed
17+
918
- ESLint config now exported as an array to support global `ignores`
1019
- Added new React rule: `react/jsx-curly-brace-presence` with `props: "never", children: "never"`
1120

1221
[2.0.0]: https://github.com/hystax/eslint-config-hystax/tree/packages/ui/v2.0.0
1322

14-
1523
## [1.0.0] - 2025-11-03
1624

1725
### Added
26+
1827
- Initial release of `@hystax/eslint-config-ui`
1928
- Includes base ESLint rules for UI projects (React, JSX, TypeScript, Prettier, etc.)
2029

packages/ui/index.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export default [
6363
settings: {
6464
react: { version: "detect" },
6565
"import/resolver": {
66+
typescript: true,
6667
node: {
6768
extensions: [".js", ".jsx", ".ts", ".tsx"],
6869
moduleDirectory: ["node_modules", "src/"],

packages/ui/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hystax/eslint-config-ui",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "UI ESLint config for Hystax projects",
55
"main": "index.mjs",
66
"type": "module",
@@ -42,15 +42,16 @@
4242
},
4343
"dependencies": {
4444
"@eslint/js": "^9.0.0",
45+
"@typescript-eslint/eslint-plugin": "^8.41.0",
46+
"@typescript-eslint/parser": "^8.41.0",
47+
"eslint-config-prettier": "^9.1.0",
48+
"eslint-import-resolver-typescript": "^4.4.4",
49+
"eslint-plugin-import": "^2.31.0",
50+
"eslint-plugin-prettier": "^5.2.1",
4551
"eslint-plugin-react": "^7.37.3",
4652
"eslint-plugin-react-hooks": "^5.1.0",
47-
"eslint-plugin-prettier": "^5.2.1",
48-
"eslint-plugin-import": "^2.31.0",
4953
"eslint-plugin-unused-imports": "^4.1.4",
50-
"@typescript-eslint/parser": "^8.41.0",
51-
"@typescript-eslint/eslint-plugin": "^8.41.0",
52-
"prettier": "^3.3.3",
53-
"eslint-config-prettier": "^9.1.0",
54-
"globals": "^15.0.0"
54+
"globals": "^15.0.0",
55+
"prettier": "^3.3.3"
5556
}
5657
}

0 commit comments

Comments
 (0)