@jsse/eslint-config 0.8.5 → 0.8.7
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/CHANGELOG.md +12 -0
- package/README.md +19 -2
- package/dist/cli.js +128 -11901
- package/dist/index.d.ts +540 -812
- package/dist/index.js +165 -99
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +13 -14
- package/dist/const-a9k0qaHM.js +0 -49
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -75,8 +75,14 @@ export default jsse({
|
|
|
75
75
|
| ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
|
|
76
76
|
| `typescript` | auto-detect | Enabled when `typescript` is installed. Passing `{ tsconfig }` enables type-aware rules unless `typeAware: false` is set. |
|
|
77
77
|
| `typeAware` | `false` | Explicit override for type-aware TypeScript rules. |
|
|
78
|
-
| `react` | `false` | Enables React rules
|
|
78
|
+
| `react` | `false` | Enables React rules; accepts parser/project options, `reactRefresh`, and `overrides`. |
|
|
79
79
|
| `reactRefresh` | `true` when `react` is enabled | Set `false` to disable React Refresh rules. |
|
|
80
|
+
| `antfu` | `true` | Enables `eslint-plugin-antfu`; accepts `topLevelFunction` and `overrides`. |
|
|
81
|
+
| `demorgan` | `true` | Enables `eslint-plugin-de-morgan`; accepts `overrides`. |
|
|
82
|
+
| `e18e` | `true` | Enables `@e18e/eslint-plugin`. |
|
|
83
|
+
| `jsdoc` | `true` | Enables `eslint-plugin-jsdoc`; accepts `overrides`. |
|
|
84
|
+
| `n` | `true` | Enables Node.js rules from `eslint-plugin-n`; accepts `overrides`. |
|
|
85
|
+
| `unicorn` | `true` | Enables `eslint-plugin-unicorn`; accepts `{ preset, overrides }`. |
|
|
80
86
|
| `prettier` | `true` | Disables known ESLint/Prettier conflicts. This does not run Prettier. |
|
|
81
87
|
| `stylistic` | `true` | Enables selected `@stylistic` rules. Supports `indent`, `quotes`, and `jsx`. |
|
|
82
88
|
| `jsonc` | `true` | Enables JSON/JSONC rules. |
|
|
@@ -84,9 +90,20 @@ export default jsse({
|
|
|
84
90
|
| `yaml` | `false` | Enables YAML rules. |
|
|
85
91
|
| `sortImports` | `false` | Enables import/export sorting via Perfectionist. |
|
|
86
92
|
| `sortPackageJson` | `true` | Requires `jsonc` to be enabled. |
|
|
87
|
-
| `sortTsconfig` | `true` | Requires `jsonc
|
|
93
|
+
| `sortTsconfig` | `true` | Requires `jsonc`; accepts `extendTsconfigGlobs`. |
|
|
88
94
|
| `tailwind` | `false` | Deprecated. Passing it only prints a warning. |
|
|
89
95
|
|
|
96
|
+
Rule overrides belong to the corresponding config option:
|
|
97
|
+
|
|
98
|
+
```js
|
|
99
|
+
jsse({
|
|
100
|
+
javascript: { overrides: { "no-console": "warn" } },
|
|
101
|
+
typescript: { overrides: { "@typescript-eslint/no-explicit-any": "off" } },
|
|
102
|
+
jsonc: { overrides: { "jsonc/no-comments": "off" } },
|
|
103
|
+
unicorn: { overrides: { "unicorn/no-null": "warn" } },
|
|
104
|
+
});
|
|
105
|
+
```
|
|
106
|
+
|
|
90
107
|
## Thanks
|
|
91
108
|
|
|
92
109
|
- [antfu](https://github.com/antfu) and [sxzz](https://github.com/sxzz) for
|