@jsse/eslint-config 0.8.0 → 0.8.2
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 +13 -0
- package/README.md +22 -17
- package/dist/cli.js +12850 -611
- package/dist/{const-DLdnBwQY.js → const-Bzz9-PXu.js} +19 -9
- package/dist/index.d.ts +1134 -306
- package/dist/index.js +8038 -7979
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +21 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @jsse/eslint-config
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- use optique for cli and cleaning things up
|
|
8
|
+
|
|
9
|
+
## 0.8.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- added eslint-plugin-regexp
|
|
14
|
+
- dbb0921: updated versions namely unicorn to 0.68.0
|
|
15
|
+
|
|
3
16
|
## 0.8.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -25,8 +25,8 @@ pnpm i -D eslint @jsse/eslint-config
|
|
|
25
25
|
|
|
26
26
|
### Create config file
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
`
|
|
28
|
+
This package is ESM-only. Use `eslint.config.js` when your package has
|
|
29
|
+
`"type": "module"`, or `eslint.config.mjs` otherwise.
|
|
30
30
|
|
|
31
31
|
```js
|
|
32
32
|
// eslint.config.js
|
|
@@ -35,20 +35,7 @@ import jsse from "@jsse/eslint-config";
|
|
|
35
35
|
export default jsse({
|
|
36
36
|
// options
|
|
37
37
|
// typescript: {
|
|
38
|
-
//
|
|
39
|
-
// },
|
|
40
|
-
// react: true
|
|
41
|
-
});
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
With CJS:
|
|
45
|
-
|
|
46
|
-
```js
|
|
47
|
-
// eslint.config.js
|
|
48
|
-
module.exports = require("@jsse/eslint-config").jsse({
|
|
49
|
-
// options
|
|
50
|
-
// typescript: {
|
|
51
|
-
// tsconfigPath: "tsconfig.json", // or ["tsconfig.json", "tsconfig.eslint.json", ...]
|
|
38
|
+
// tsconfig: "tsconfig.json", // or ["tsconfig.json", "tsconfig.eslint.json", ...]
|
|
52
39
|
// },
|
|
53
40
|
// react: true
|
|
54
41
|
});
|
|
@@ -77,11 +64,29 @@ import jsse from "@jsse/eslint-config";
|
|
|
77
64
|
|
|
78
65
|
export default jsse({
|
|
79
66
|
typescript: {
|
|
80
|
-
|
|
67
|
+
tsconfig: "tsconfig.json", // or ["tsconfig.json", "tsconfig.eslint.json", ...]
|
|
81
68
|
},
|
|
82
69
|
});
|
|
83
70
|
```
|
|
84
71
|
|
|
72
|
+
### Common Options
|
|
73
|
+
|
|
74
|
+
| Option | Default | Notes |
|
|
75
|
+
| ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
|
|
76
|
+
| `typescript` | auto-detect | Enabled when `typescript` is installed. Passing `{ tsconfig }` enables type-aware rules unless `typeAware: false` is set. |
|
|
77
|
+
| `typeAware` | `false` | Explicit override for type-aware TypeScript rules. |
|
|
78
|
+
| `react` | `false` | Enables React rules. |
|
|
79
|
+
| `reactRefresh` | `true` when `react` is enabled | Set `false` to disable React Refresh rules. |
|
|
80
|
+
| `prettier` | `true` | Disables known ESLint/Prettier conflicts. This does not run Prettier. |
|
|
81
|
+
| `stylistic` | `true` | Enables selected `@stylistic` rules. Supports `indent`, `quotes`, and `jsx`. |
|
|
82
|
+
| `jsonc` | `true` | Enables JSON/JSONC rules. |
|
|
83
|
+
| `markdown` | `false` | Enables Markdown processing and fenced-code linting. |
|
|
84
|
+
| `yaml` | `false` | Enables YAML rules. |
|
|
85
|
+
| `sortImports` | `false` | Enables import/export sorting via Perfectionist. |
|
|
86
|
+
| `sortPackageJson` | `true` | Requires `jsonc` to be enabled. |
|
|
87
|
+
| `sortTsconfig` | `true` | Requires `jsonc` to be enabled. |
|
|
88
|
+
| `tailwind` | `false` | Deprecated. Passing it only prints a warning. |
|
|
89
|
+
|
|
85
90
|
## Thanks
|
|
86
91
|
|
|
87
92
|
- [antfu](https://github.com/antfu) and [sxzz](https://github.com/sxzz) for
|