-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Comparing changes
Open a pull request
base repository: eslint/eslint
base: v9.8.0
head repository: eslint/eslint
compare: v9.9.0
- 15 commits
- 63 files changed
- 12 contributors
Commits on Jul 27, 2024
-
GitHub Actions Bot committed
Jul 27, 2024 Configuration menu - View commit details
-
Copy full SHA for f9ac978 - Browse repository at this point
Copy the full SHA f9ac978View commit details
Commits on Aug 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3c32a9e - Browse repository at this point
Copy the full SHA 3c32a9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38a0661 - Browse repository at this point
Copy the full SHA 38a0661View commit details -
docs: add version support page to the dropdown (#18730)
* docs: add version support page to the dropdown * update url * rename version opt * Update versions-list.html
Configuration menu - View commit details
-
Copy full SHA for fec2951 - Browse repository at this point
Copy the full SHA fec2951View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48117b2 - Browse repository at this point
Copy the full SHA 48117b2View commit details
Commits on Aug 4, 2024
-
feat: add suggestion to
require-await
to removeasync
keyword (#1……8716) * feat: add suggestion to require-await to remove async keyword Fixes #18713 * use tokens to find async keyword * check value of parent when finding async keyword * only remove async keyword plus trailing space * remove all whitespace after async token * do not offer suggestion if ASI is currently in use before async keyword * replace async keyword with semicolon when ASI is used. * Use isStartOfExpressionStatement to determine if semicolon is needed. * Updated documentation for needsPrecedingSemicolon. * always create suggestion * do not add semicolon between methods.
Configuration menu - View commit details
-
Copy full SHA for 3a4eaf9 - Browse repository at this point
Copy the full SHA 3a4eaf9View commit details
Commits on Aug 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b97fa05 - Browse repository at this point
Copy the full SHA b97fa05View commit details
Commits on Aug 7, 2024
-
docs: how to author plugins with configs that extend other configs (#…
…18753) * docs: how to author plugins with configs that extend other configs It's not immediately clear from the current documentation how authors should migrate configs that extend other configs. According to the [full documentation][1], an array is actually expected, which isn't clear in the migration documentation. This change updates the documentation to include an array example, and links back to the full documentation. [1]: https://eslint.org/docs/latest/extend/plugins#configs-in-plugins * Review markups - fix quote style - remove stale comment - clarify copy on spreading * Copy tweak
Configuration menu - View commit details
-
Copy full SHA for 9fe068c - Browse repository at this point
Copy the full SHA 9fe068cView commit details
Commits on Aug 8, 2024
-
chore: update dependency @eslint/json to ^0.3.0 (#18760)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for aac191e - Browse repository at this point
Copy the full SHA aac191eView commit details -
feat: Add support for TS config files (#18134)
* Initial working implementation of TS config files * Simplify implementation * Use typescript's `transpile()` instead of `tsx` to avoid side effects * Remove unnecessary nullish coalescing * Use `jiti` instead of TypeScript * Add missing section related to `importedConfigFileModificationTime` * Enable `esmResolve` for `jiti` * Make `jiti` an optional peer dependency * Throw an error if `jiti` is not installed * Add `jiti` to `ignoreDependencies` in `knip.jsonc` * Fix broken unit tests caused by stubbed `process.version` Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com> * Prioritize JavaScript config files over TypeScript config files * Add some basic tests for loading TS config files * Fix minor type issues in JSDocs * Partially Inline the `FlatConfig` type from `@types/eslint` to reuse - This is not only done to reduce some potential redundancy down the line, but to ensure that TS config files are able to handle `type` imports as that is something most people are likely going to do. * Stringify `mtime` * Check if ESLint is running in Deno or Bun Note: `isRunningInBun` and `isRunningInDeno` are functions to make treeshaking for consuming libraries easier. * Try a different approach for loading TS config files - This is done for mainly 2 reasons: 1. We don't know how many runtime environments are going to support loading TS files natively in the future, so this saves us having to check for every single one. 2. This also ensures that we give the user the option of passing their own TS loader of choice through `NODE_OPTIONS` in CLI for example: `NODE_OPTIONS=--import=tsx/esm`, without ESLint getting in the way and potentially causing conflicts between multiple loaders. * Add tests for `lintFiles` with TS config files * Revert "Try a different approach for loading TS config files" This reverts commit 209c791. * Convert `Severity` type to a `const enum` * Add tests for TS config files containing `const enum`s * Add `ESLintNameSpace` local `namespace` * Add tests for TS config files containing importing a local `namespace` * Fix minor type issues in JSDocs * Add tests for passing TS config files to `overrideConfigFile` * Bump `jiti` to version 1.21.1 * Bump `jiti` to version 1.21.6 * Add basic docs for loading TypeScript configuration files * Fix lint issues * Bump `jiti` to version 2.0.0-beta.1 * Remove `esmResolve` as it has been removed in v2 of `jiti` * Fix types for `createCustomTeardown` * Remove `interopDefault: true` - `interopDefault: true` does not work well with `jiti.import()`. * Fix type of `eslint` in test file * Fix lint issues in test file * Add more tests - Added tests for top-level `await`, interoperability, and mixed ESM/CJS syntax. * Defer to v10 in docs * Bump `jiti` to version 2.0.0-beta.3 * Fix import of `jiti` * Fix `jiti` link in docs * Fix `jiti` link in docs * Add `unstable_ts_config` to `activeFlags` * Fix issues in `configuration-files.md` * Fix `LintResults` in `eslint.js` * Change `LintResults` to `LintResult` in `eslint.js` * Remove warning regarding top-level `await` * Explicitly check for `.ts`, `.mts` or `.cts` extensions * Check if `"unstable_ts_config"` flag is enabled * Fix import and export assignment tests * Fix remaining issues in `configuration-files.md` * Fix test title * De-duplicate test * Revert "Fix broken unit tests caused by stubbed `process.version`" This reverts commit f339591. * Remove unnecessary checks for `"unstable_ts_config"` flag * Fix type of `findConfigFile` * Make sure tests fail when the correct config file is not loaded * Add a test for `"unstable_ts_config"` - Added a test to check that the TS config file is not loaded when the `"unstable_ts_config"` flag is not set. * Remove fallback to `default` when loading `jiti.createJiti` * Update `configuration-files.md` * Update description of `"unstable_ts_config"` flag * Add comment explaining purpose of `helper.ts` * Disable `moduleCache` * Add test to check reloading logic for TS config files * Add comment for disabling `moduleCache` * Rework `hasUnstableTSConfigFlag` logic * Fix unit tests * Fallback to `default` when loading `jiti` * Rework logic for loading TS config files - Rework the logic to ensure `overrideConfigFile` does not load TS config files unless the `unstable_ts_config` flag is set. * Remove default value for `hasUnstableTSConfigFlag` parameter * Remove type assertion * Remove unnecessary `process?.versions?.bun` check * Remove unnecessary `LintResults` type * Fix parameter type of `eslintWithPlugins` - We avoid potential repetition by using the new [`@import JSDoc tags`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#the-jsdoc-import-tag) released in TypeScript 5.5. * Add tests for loading TypeScript config files that export a promise * Update `jiti` peer dependency to allow any version * Warn about using an outdated version of `jiti` * Fix minor issue in `configuration-files.md` * Add section about `--flag` in `configuration-files.md` * Reapply "Fix broken unit tests caused by stubbed `process.version`" This reverts commit f369145. * Switch to `jiti` v1 until `jiti` v2 becomes stable * Add commented-out unit tests for `jiti` v2 * Throw a `TypeError` if `jiti.import` is not a function * Change `TypeError` to `Error` --------- Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Configuration menu - View commit details
-
Copy full SHA for 41d0206 - Browse repository at this point
Copy the full SHA 41d0206View commit details
Commits on Aug 9, 2024
-
chore: update dependency @eslint/core to ^0.3.0 (#18724)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fea8563 - Browse repository at this point
Copy the full SHA fea8563View commit details -
chore: package.json update for @eslint/js release
Jenkins committedAug 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 59dba1b - Browse repository at this point
Copy the full SHA 59dba1bView commit details -
chore: upgrade to
@eslint/js@9.9.0
(#18765)chore: upgrade to @eslint/js@9.9.0
Configuration menu - View commit details
-
Copy full SHA for 461b2c3 - Browse repository at this point
Copy the full SHA 461b2c3View commit details -
Build: changelog update for 9.9.0
Jenkins committedAug 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 2e5ba77 - Browse repository at this point
Copy the full SHA 2e5ba77View commit details -
Jenkins committed
Aug 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 0dd3863 - Browse repository at this point
Copy the full SHA 0dd3863View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v9.8.0...v9.9.0