|
1 | 1 | # eslint-config-seek |
2 | 2 |
|
| 3 | +## 15.0.0 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- Configure explicit exports for all entrypoints ([#248](https://github.com/seek-oss/eslint-config-seek/pull/248)) |
| 8 | + |
| 9 | + This package now configures explicit [exports] in its `package.json` file for all entrypoints. Consumers previously importing from `eslint-config-seek/base.js` or `eslint-config-seek/extensions.js` should update their import statements to use the new explicit entrypoints: |
| 10 | + |
| 11 | + ```diff |
| 12 | + - import 'eslint-config-seek/base.js'; |
| 13 | + + import 'eslint-config-seek/base'; |
| 14 | + |
| 15 | + - import 'eslint-config-seek/extensions.js'; |
| 16 | + + import 'eslint-config-seek/extensions'; |
| 17 | + ``` |
| 18 | + |
| 19 | + [exports]: https://nodejs.org/api/packages.html#conditional-exports |
| 20 | + |
| 21 | +- Upgrade `@typescript-eslint/naming-convention` rule from `warn` to `error` ([#248](https://github.com/seek-oss/eslint-config-seek/pull/248)) |
| 22 | + |
| 23 | + This rule enforces using PascalCase for `typeLike` declarations excluding enums (allowing leading underscores). |
| 24 | + |
| 25 | + [`typeLike`]: "https://typescript-eslint.io/rules/naming-convention/#group-selectors:~:text=typeLike%20-%20matches |
| 26 | + |
| 27 | +- Update `eslint` peer depenedency to `^9.22.0` ([#248](https://github.com/seek-oss/eslint-config-seek/pull/248)) |
| 28 | + |
| 29 | +- Remove `no-unused-vars` rule exception for `React` namespace import ([#248](https://github.com/seek-oss/eslint-config-seek/pull/248)) |
| 30 | + |
| 31 | + The `no-unused-vars` rule exception for the `React` namespace import has been removed. This means that if you import the entire React namespace but do not use it in your code, ESLint will now flag it as an unused variable. |
| 32 | + |
| 33 | + This exception was originally added to accommodate older versions of React (prior to v17) where JSX syntax required the React namespace to be in scope. However, with the introduction of the new JSX Transform in React 17, this was no longer necessary. A temporary exception was made to ease the transition, but it has now been removed to encourage cleaner code. |
| 34 | + |
| 35 | + **MIGRATION GUIDE**: |
| 36 | + |
| 37 | + ```diff |
| 38 | + -import React from 'react'; |
| 39 | + |
| 40 | + -import React, { useState } from 'react'; |
| 41 | + +import { useState } from 'react'; |
| 42 | + ``` |
| 43 | + |
| 44 | +### Minor Changes |
| 45 | + |
| 46 | +- Expose 2 Vitest-specific entrypoints: ([#248](https://github.com/seek-oss/eslint-config-seek/pull/248)) |
| 47 | + - `eslint-config-seek/vitest`: for general Vitest projects |
| 48 | + - `eslint-config-seek/vitest/base`: for Vitest projects not using React |
| 49 | + |
| 50 | + These are equivalent to the existing `eslint-config-seek` and `eslint-config-seek/base` entrypoints, but with Vitest-specific rules and settings applied instead of Jest-specific ones. |
| 51 | + |
3 | 52 | ## 14.7.0 |
4 | 53 |
|
5 | 54 | ### Minor Changes |
|
0 commit comments