@amedia/browserslist-config
Advanced tools
Comparing version 1.0.2 to 2.0.0
# @amedia/browserslist-config | ||
## 2.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'; | ||
``` | ||
## 1.0.2 | ||
@@ -4,0 +64,0 @@ |
{ | ||
"name": "@amedia/browserslist-config", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "Browserslist config for Amedia", | ||
"type": "commonjs", | ||
"main": "./index.cjs", | ||
"exports": { | ||
".": { | ||
"require": "./index.cjs" | ||
} | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"browserslist": "4.21.5" | ||
}, | ||
"peerDependencies": { | ||
@@ -13,0 +14,0 @@ "browserslist": "4.x" |
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
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
5855
0