@ncontiero/eslint-config 8.3.3 → 8.4.0

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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @ncontiero/eslint-config
2
2
 
3
- [![Version](https://img.shields.io/npm/v/@ncontiero/eslint-config?color6C47FF)](https://www.npmjs.com/package/@ncontiero/eslint-config)
4
- [![License](https://img.shields.io/badge/licence-MIT-6C47FF)](https://github.com/ncontiero/eslint-config/blob/master/LICENSE)
3
+ [![Open on npmx.dev](https://npmx.dev/api/registry/badge/version/@ncontiero/eslint-config?color=7c3aed&name=true)](https://npmx.dev/package/@ncontiero/eslint-config)
4
+ [![Open License](https://npmx.dev/api/registry/badge/license/@ncontiero/eslint-config?color=7c3aed)](https://github.com/ncontiero/eslint-config/blob/master/LICENSE)
5
5
 
6
6
  Nicolas's ESLint config preset for JavaScript, TypeScript, and Prettier.
7
7
 
@@ -114,8 +114,13 @@ export default ncontiero({
114
114
  tailwindcss: true,
115
115
  reactQuery: true,
116
116
 
117
- // Disable jsonc, yaml and toml support
118
- jsonc: false,
117
+ // You can pass an object to customize the options
118
+ jsonc: {
119
+ quotes: "single",
120
+ },
121
+
122
+ // Or disable jsonc, yaml and toml support entirely
123
+ // jsonc: false,
119
124
  yaml: false,
120
125
  toml: false,
121
126
 
@@ -271,6 +276,19 @@ export default ncontiero({
271
276
  });
272
277
  ```
273
278
 
279
+ You can also enable it without specifying a path by setting `typeAware: true`. `typescript-eslint` will automatically find the `tsconfig.json` file:
280
+
281
+ ```js
282
+ // eslint.config.js
283
+ import { ncontiero } from "@ncontiero/eslint-config";
284
+
285
+ export default ncontiero({
286
+ typescript: {
287
+ typeAware: true,
288
+ },
289
+ });
290
+ ```
291
+
274
292
  ## References and inspirations
275
293
 
276
294
  - [@antfu/eslint-config](https://github.com/antfu/eslint-config) - Anthony's ESLint config preset.