@jsse/eslint-config 0.8.1 → 0.8.3

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @jsse/eslint-config
2
2
 
3
+ ## 0.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - update deps and clean more shit out
8
+
9
+ ## 0.8.2
10
+
11
+ ### Patch Changes
12
+
13
+ - use optique for cli and cleaning things up
14
+
3
15
  ## 0.8.1
4
16
 
5
17
  ### Patch 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
- With [`"type": "module"`](https://nodejs.org/api/packages.html#type) in
29
- `package.json` (recommended):
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
- // tsconfigPath: "tsconfig.json", // or ["tsconfig.json", "tsconfig.eslint.json", ...]
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
- tsconfigPath: "tsconfig.json", // or ["tsconfig.json", "tsconfig.eslint.json", ...]
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