@favorodera/eslint-config 0.0.4 → 0.0.5
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 +10 -6
- package/dist/index.cjs +542 -393
- package/dist/index.d.cts +5963 -1590
- package/dist/index.d.mts +5965 -1592
- package/dist/index.mjs +574 -425
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -36,6 +36,10 @@ The following configurations are bundled and enabled by default (they can be ind
|
|
|
36
36
|
- **Markdown** — Linting for markdown files and embedded code blocks (`@eslint/markdown`)
|
|
37
37
|
- **JSON/JSONC/JSON5** — Formatting and sorting for JSON files like `package.json` (`eslint-plugin-jsonc`)
|
|
38
38
|
- **JSDoc** — Standardized comment formatting (`eslint-plugin-jsdoc`)
|
|
39
|
+
- **Unicorn** — Various code quality improvements (`eslint-plugin-unicorn`)
|
|
40
|
+
- **Perfectionist** — Sorting objects, imports, classes, etc. (`eslint-plugin-perfectionist`)
|
|
41
|
+
- **Node** — Node.js specific linting rules (`eslint-plugin-n`)
|
|
42
|
+
|
|
39
43
|
|
|
40
44
|
## Usage
|
|
41
45
|
|
|
@@ -83,16 +87,16 @@ import { factory } from '@favorodera/eslint-config'
|
|
|
83
87
|
export default factory({
|
|
84
88
|
// All configs are true by default!
|
|
85
89
|
|
|
86
|
-
// Example: Disable tailwind if you aren't using it
|
|
87
|
-
tailwind: false,
|
|
88
|
-
|
|
89
90
|
// Example: Customize specific rulesets
|
|
90
91
|
stylistic: {
|
|
91
92
|
settings: {
|
|
93
|
+
indent: 4,
|
|
92
94
|
quotes: 'double',
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
// Example: Disable tailwind if you aren't using it
|
|
99
|
+
tailwind: false,
|
|
96
100
|
})
|
|
97
101
|
```
|
|
98
102
|
|