@amedia/eslint-config-typescript
Advanced tools
Comparing version 8.0.2 to 9.0.0
# @amedia/eslint-config-typescript | ||
## 9.0.0 | ||
### Major Changes | ||
- d6346cc: Kragl 4.x | ||
_Get ready: This release breaks the world._ | ||
ESLint 9 introduces a new configuration format (flat config files)[^1] | ||
so as we move to ESLint 9 we need to re-do all the ESLint configuration | ||
both in this package, and in downstream repos. | ||
See the configuration docs for how to setup kragl for your project. | ||
[^1]: https://eslint.org/docs/latest/use/configure/configuration-files | ||
We are all-in on ECMAScript Modules at Amedia, but have been held back | ||
in this repo due to the tools we depend on have lagged behind. Now the | ||
world is ready, and we are making the move. | ||
Changes that hit the consumer are things like `.prettierrc.cjs` will not | ||
work with the `@amedia/prettier-config` package and the consumer needs | ||
to move to `prettier.config.js` with ESM syntax. | ||
`@amedia/eslint-config` exports an helper function that generates an | ||
ESLint configuration that complies with our standards, it supports both | ||
toggling options and full-on custom configuration. | ||
For example, a TypeScript + Svelte project: | ||
``` | ||
import eslintConfig from '@amedia/eslint-config'; | ||
export default eslintConfig({ | ||
typescript: true, | ||
svelte: true, | ||
}); | ||
``` | ||
We have had a long-standing issue of the LSP hanging when interacting | ||
with our Prettier configuration. This was likely due to our Prettier | ||
configuration dynamically loading the Svelte plugin if it was necessary. | ||
Some versions of Prettier struggle with that, so for kragl 4.x the | ||
consumer manually decides if the standard or svelte prettier | ||
configuration should be used. | ||
Standard: | ||
``` | ||
// prettier.config.js | ||
export { default } from '@amedia/prettier-config'; | ||
``` | ||
Svelte: | ||
``` | ||
// prettier.config.js | ||
export { svelte as default } from '@amedia/prettier-config'; | ||
``` | ||
## 8.0.2 | ||
@@ -4,0 +64,0 @@ |
{ | ||
"name": "@amedia/eslint-config-typescript", | ||
"version": "8.0.2", | ||
"version": "9.0.0", | ||
"description": "ESLint TypeScript configuration to be used by developers at Amedia", | ||
"type": "commonjs", | ||
"main": "index.cjs", | ||
"type": "module", | ||
"module": "./index.js", | ||
"exports": { | ||
".": { | ||
"import": "./index.js" | ||
} | ||
}, | ||
"scripts": {}, | ||
@@ -22,12 +27,8 @@ "repository": { | ||
"homepage": "https://github.com/amedia/eslint-config-amedia/tree/master/packages/typescript", | ||
"dependencies": { | ||
"typescript-eslint": "8.13.0" | ||
}, | ||
"peerDependencies": { | ||
"@typescript-eslint/eslint-plugin": "5.x", | ||
"eslint-import-resolver-typescript": "3.x", | ||
"eslint": "8.x" | ||
"eslint": "9.x" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "5.59.8", | ||
"eslint-import-resolver-typescript": "3.5.5", | ||
"eslint": "8.56.0" | ||
}, | ||
"publishConfig": { | ||
@@ -34,0 +35,0 @@ "access": "public" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10108
2
0
Yes
2
1
+ Addedtypescript-eslint@8.13.0
+ Added@eslint/config-array@0.19.1(transitive)
+ Added@eslint/core@0.10.0(transitive)
+ Added@eslint/eslintrc@3.2.0(transitive)
+ Added@eslint/js@9.18.0(transitive)
+ Added@eslint/object-schema@2.1.5(transitive)
+ Added@eslint/plugin-kit@0.2.5(transitive)
+ Added@humanfs/core@0.19.1(transitive)
+ Added@humanfs/node@0.16.6(transitive)
+ Added@humanwhocodes/retry@0.3.10.4.1(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Added@typescript-eslint/eslint-plugin@8.13.0(transitive)
+ Added@typescript-eslint/parser@8.13.0(transitive)
+ Added@typescript-eslint/scope-manager@8.13.0(transitive)
+ Added@typescript-eslint/type-utils@8.13.0(transitive)
+ Added@typescript-eslint/types@8.13.0(transitive)
+ Added@typescript-eslint/typescript-estree@8.13.0(transitive)
+ Added@typescript-eslint/utils@8.13.0(transitive)
+ Added@typescript-eslint/visitor-keys@8.13.0(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedeslint@9.18.0(transitive)
+ Addedeslint-scope@8.2.0(transitive)
+ Addedeslint-visitor-keys@4.2.0(transitive)
+ Addedespree@10.3.0(transitive)
+ Addedfile-entry-cache@8.0.0(transitive)
+ Addedflat-cache@4.0.1(transitive)
+ Addedglobals@14.0.0(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedts-api-utils@1.4.3(transitive)
+ Addedtypescript-eslint@8.13.0(transitive)
- Removed@eslint/eslintrc@2.1.4(transitive)
- Removed@eslint/js@8.57.1(transitive)
- Removed@humanwhocodes/config-array@0.13.0(transitive)
- Removed@humanwhocodes/object-schema@2.0.3(transitive)
- Removed@nolyfill/is-core-module@1.0.39(transitive)
- Removed@types/semver@7.5.8(transitive)
- Removed@typescript-eslint/eslint-plugin@5.62.0(transitive)
- Removed@typescript-eslint/parser@5.62.0(transitive)
- Removed@typescript-eslint/scope-manager@5.62.0(transitive)
- Removed@typescript-eslint/type-utils@5.62.0(transitive)
- Removed@typescript-eslint/types@5.62.0(transitive)
- Removed@typescript-eslint/typescript-estree@5.62.0(transitive)
- Removed@typescript-eslint/utils@5.62.0(transitive)
- Removed@typescript-eslint/visitor-keys@5.62.0(transitive)
- Removed@ungap/structured-clone@1.2.1(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedarray-union@2.1.0(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removeddoctrine@3.0.0(transitive)
- Removedenhanced-resolve@5.18.0(transitive)
- Removedeslint@8.57.1(transitive)
- Removedeslint-import-resolver-typescript@3.7.0(transitive)
- Removedeslint-scope@5.1.17.2.2(transitive)
- Removedespree@9.6.1(transitive)
- Removedestraverse@4.3.0(transitive)
- Removedfile-entry-cache@6.0.1(transitive)
- Removedflat-cache@3.2.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedget-tsconfig@4.8.1(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobals@13.24.0(transitive)
- Removedglobby@11.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-bun-module@1.3.0(transitive)
- Removedis-path-inside@3.0.3(transitive)
- Removednatural-compare-lite@1.4.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedresolve-pkg-maps@1.0.0(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedslash@3.0.0(transitive)
- Removedstable-hash@0.0.4(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedtapable@2.2.1(transitive)
- Removedtext-table@0.2.0(transitive)
- Removedtslib@1.14.1(transitive)
- Removedtsutils@3.21.0(transitive)
- Removedtype-fest@0.20.2(transitive)
- Removedwrappy@1.0.2(transitive)