@zayne-labs/eslint-config 0.0.2 → 0.0.4
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 +8 -7
- package/dist/index.d.ts +8875 -13852
- package/dist/index.js +41 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
- Optional [React](#react), [Svelte](#svelte), [TailwindCSS](#tailwindcss), [Astro](#astro), [Solid](#solid) support
|
|
8
8
|
- Respects `.gitignore` by default
|
|
9
9
|
- Requires ESLint v9.5.0+
|
|
10
|
+
- Inspired by the legendary open sourcerer, [antfu](https://github.com/antfu)
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
## Usage
|
|
@@ -213,8 +214,9 @@ export default zayne({
|
|
|
213
214
|
// Enable stylistic formatting rules
|
|
214
215
|
stylistic: true,
|
|
215
216
|
|
|
216
|
-
// TypeScript
|
|
217
|
+
// TypeScript and React are autodetected, you can also explicitly enable it:
|
|
217
218
|
typescript: true,
|
|
219
|
+
react: true
|
|
218
220
|
|
|
219
221
|
// Disable jsonc and yaml support
|
|
220
222
|
jsonc: false,
|
|
@@ -351,14 +353,13 @@ import zayne from '@zayne-labs/eslint-config'
|
|
|
351
353
|
|
|
352
354
|
export default zayne(
|
|
353
355
|
{
|
|
354
|
-
|
|
356
|
+
react: true,
|
|
355
357
|
typescript: true
|
|
356
358
|
},
|
|
357
359
|
{
|
|
358
|
-
|
|
359
|
-
files: ['**/*.vue'],
|
|
360
|
+
files: ['**/*.jsx','**/*.tsx' ],
|
|
360
361
|
rules: {
|
|
361
|
-
'
|
|
362
|
+
'react/no-unstable-context-value': "off",
|
|
362
363
|
},
|
|
363
364
|
},
|
|
364
365
|
{
|
|
@@ -377,9 +378,9 @@ We also provided the `overrides` options in each integration to make it easier:
|
|
|
377
378
|
import zayne from '@zayne-labs/eslint-config'
|
|
378
379
|
|
|
379
380
|
export default zayne({
|
|
380
|
-
|
|
381
|
+
react: {
|
|
381
382
|
overrides: {
|
|
382
|
-
|
|
383
|
+
'react/no-unstable-context-value': "off",
|
|
383
384
|
},
|
|
384
385
|
},
|
|
385
386
|
typescript: {
|