ultracite 3.9.7 → 3.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -109,8 +109,9 @@ You can opt-out of certain rules by modifying your `eslint.config.mjs` file. For
109
109
  import ultracite from 'ultracite';
110
110
 
111
111
  for (const config of ultracite) {
112
- config.ignores = config.ignores || [];
113
- config.ignores.push('./components/ui/**/*');
112
+ if (config.ignores) {
113
+ config.ignores.push('./components/ui/**/*');
114
+ }
114
115
  }
115
116
 
116
117
  export { default } from 'ultracite';
@@ -122,8 +123,8 @@ Ultracite also lints the browser compatibility of your code. You can specify whi
122
123
  import ultracite from 'ultracite';
123
124
 
124
125
  for (const config of ultracite) {
125
- config.settings = config.settings || {};
126
- config.settings.polyfills = config.settings.polyfills || [];
126
+ config.settings ||= {};
127
+ config.settings.polyfills ||= [];
127
128
 
128
129
  config.settings.polyfills.push(
129
130
  // These are from Next.js - https://nextjs.org/docs/architecture/supported-browsers#polyfills
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "name": "ultracite",
56
56
  "description": "Strict, opinionated ESLint config for modern TypeScript apps.",
57
- "version": "3.9.7",
57
+ "version": "3.9.8",
58
58
  "publishConfig": {
59
59
  "access": "public",
60
60
  "registry": "https://registry.npmjs.org/"