@ncontiero/eslint-config 8.3.2 → 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 +22 -4
- package/dist/index.d.mts +3227 -941
- package/dist/index.mjs +94 -12
- package/package.json +47 -44
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @ncontiero/eslint-config
|
|
2
2
|
|
|
3
|
-
[](https://npmx.dev/package/@ncontiero/eslint-config)
|
|
4
|
+
[](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
|
-
//
|
|
118
|
-
jsonc:
|
|
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.
|