Skip to content

Commit 0194aa1

Browse files
committed
docs: update changelog
1 parent 6ef7168 commit 0194aa1

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## v1.22.1 (Tue 24 Dec 2024)
2+
3+
### 🪄 Improvements
4+
5+
- docs: add getting started guides for JavaScript, TypeScript, and JavaScript with Babel.
6+
- docs: improve code samples in rules docs.
7+
- docs: improve `eslint.config.js` examples in README.md, docs and the examples folder.
8+
- docs: improve the error message and description of various rules.
9+
- refactor(website): better website layout and navigation experience.
10+
11+
### 📝 Changes in examples
12+
13+
The `eslint.config.js` in the examples now uses `tsconfig`'s `includes` and `excludes` as the SSoT glob patterns for ESLint's `files` and `ignores` fields.
14+
15+
This configuration approach can fundamentally avoid the errors[[1](https://typescript-eslint.io/troubleshooting/typed-linting/#i-get-errors-telling-me-the-file-must-be-included-in-at-least-one-of-the-projects-provided), [2](https://typescript-eslint.io/troubleshooting/typed-linting/#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file), [3](https://typescript-eslint.io/troubleshooting/typed-linting/#i-get-errors-telling-me--was-not-found-by-the-project-service-consider-either-including-it-in-the-tsconfigjson-or-including-it-in-allowdefaultproject)] caused by mismatched config scopes between `tsconfig.json` and `eslint.config.js`.
16+
117
## v1.22.0 (Sun 22 Dec 2024)
218

319
### 🪄 Improvements

examples/vite-react-dom-app/eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ export default tseslint.config(
1919
},
2020
// base configuration for browser environment source files
2121
{
22-
files: TSCONFIG.include,
22+
files: GLOB_TS,
2323
extends: [
2424
tseslint.configs.recommendedTypeChecked,
2525
],
2626
languageOptions: {
2727
parser: tseslint.parser,
2828
parserOptions: {
2929
project: "./tsconfig.json",
30+
projectService: false,
3031
tsconfigRootDir: import.meta.dirname,
3132
},
3233
},

examples/vite-react-dom-app/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"noFallthroughCasesInSwitch": true
3030
},
3131
"include": [
32-
"src/**/*.ts",
3332
"src/**/*.tsx"
3433
]
3534
}

0 commit comments

Comments
 (0)