@yuu1111/oxc-config 0.0.0 → 0.2.0

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.ja.md CHANGED
@@ -37,18 +37,18 @@ export default { ...yamlOnly };
37
37
 
38
38
  ## Presets
39
39
 
40
- | Preset | 用途 |
41
- | ------------------ | ------------------------------------------------ |
42
- | `oxlint/base` | `correctness` と `typescript/no-deprecated` |
43
- | `oxlint/core` | 汎用のrule 10個 |
44
- | `oxlint/network` | `fetch` のrule 2つ |
45
- | `oxlint/discord` | Discordのrule 1つ |
46
- | `oxlint/scoped` | Project側で対象層を選ぶrule 2つを読み込むだけ |
47
- | `oxfmt` `base` | Biomeの共有設定と揃えた書式 |
48
- | `oxfmt` `yamlOnly` | `base` の対象をYAMLだけにし、Biomeと対象を分ける |
40
+ | Preset | 用途 |
41
+ | ------------------ | ---------------------------------------------------------------------------- |
42
+ | `oxlint/base` | `correctness`、`typescript/no-deprecated`、`typescript/no-floating-promises` |
43
+ | `oxlint/core` | 汎用のrule 10個 |
44
+ | `oxlint/network` | `fetch` のrule 2つ |
45
+ | `oxlint/discord` | Discordのrule 1つ |
46
+ | `oxlint/scoped` | Project側で対象層を選ぶrule 2つを読み込むだけ |
47
+ | `oxfmt` `base` | Biomeの共有設定と揃えた書式 |
48
+ | `oxfmt` `yamlOnly` | `base` の対象をYAMLだけにし、Biomeと対象を分ける |
49
49
 
50
50
  `oxlint/*` のruleはすべて1つのJS plugin `yuu1111` に入り、presetはそのruleを有効にするだけになる
51
- `@yuu1111/biome-config` の `plugins/*` と同じ検出をGritQLではなくJS pluginで行い、Biomeのlintより速く走る
51
+ `@yuu1111/biome-config` 2.xがGritQLのpluginとして配っていたruleを移したもので、2.xの `plugins/core`、`plugins/network`、`plugins/discord` はそれぞれ同名のpresetへ置き換える
52
52
 
53
53
  ### oxlint/core
54
54
 
package/README.md CHANGED
@@ -36,18 +36,18 @@ export default { ...yamlOnly };
36
36
 
37
37
  ## Presets
38
38
 
39
- | Preset | Use case |
40
- | ------------------ | ---------------------------------------------------------------- |
41
- | `oxlint/base` | `correctness` and `typescript/no-deprecated` |
42
- | `oxlint/core` | 10 general-purpose rules |
43
- | `oxlint/network` | 2 rules for `fetch` |
44
- | `oxlint/discord` | 1 rule for Discord |
45
- | `oxlint/scoped` | Loads 2 rules that the project turns on for its own layers |
46
- | `oxfmt` `base` | Formatting aligned with the shared Biome configuration |
47
- | `oxfmt` `yamlOnly` | `base` restricted to YAML so that it does not overlap with Biome |
39
+ | Preset | Use case |
40
+ | ------------------ | -------------------------------------------------------------------------------- |
41
+ | `oxlint/base` | `correctness`, `typescript/no-deprecated`, and `typescript/no-floating-promises` |
42
+ | `oxlint/core` | 10 general-purpose rules |
43
+ | `oxlint/network` | 2 rules for `fetch` |
44
+ | `oxlint/discord` | 1 rule for Discord |
45
+ | `oxlint/scoped` | Loads 2 rules that the project turns on for its own layers |
46
+ | `oxfmt` `base` | Formatting aligned with the shared Biome configuration |
47
+ | `oxfmt` `yamlOnly` | `base` restricted to YAML so that it does not overlap with Biome |
48
48
 
49
49
  Every `oxlint/*` rule lives in one JS plugin named `yuu1111`, and a preset only turns rules on.
50
- The rules detect what the `plugins/*` layers of `@yuu1111/biome-config` detect, with a JS plugin instead of GritQL, and run faster than the Biome lint.
50
+ They replace the GritQL plugins that `@yuu1111/biome-config` 2.x shipped; swap `plugins/core`, `plugins/network`, and `plugins/discord` for the preset of the same name.
51
51
 
52
52
  ### oxlint/core
53
53
 
package/oxlint/base.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "correctness": "error"
4
4
  },
5
5
  "rules": {
6
- "typescript/no-deprecated": "error"
6
+ "typescript/no-deprecated": "error",
7
+ "typescript/no-floating-promises": "error"
7
8
  }
8
9
  }
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "@yuu1111/oxc-config",
3
- "version": "0.0.0",
4
- "description": "Shared Oxlint and Oxfmt configuration",
5
- "homepage": "https://yuu1111.github.io/configs/packages/config/oxc-config/",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/yuu1111/configs.git",
9
- "directory": "packages/config/oxc-config"
10
- },
11
- "type": "module",
12
- "exports": {
13
- "./oxfmt": {
14
- "types": "./oxfmt.d.ts",
15
- "default": "./oxfmt.js"
16
- },
17
- "./oxlint/plugin": "./oxlint/plugin.js",
18
- "./package.json": "./package.json"
19
- },
20
- "files": [
21
- "README.ja.md",
22
- "oxfmt.d.ts",
23
- "oxfmt.js",
24
- "oxlint"
25
- ],
26
- "keywords": [
27
- "oxlint",
28
- "oxfmt",
29
- "config"
30
- ],
31
- "peerDependencies": {
32
- "oxfmt": ">=0.74.0",
33
- "oxlint": ">=1.89.0"
34
- },
35
- "peerDependenciesMeta": {
36
- "oxfmt": {
37
- "optional": true
38
- },
39
- "oxlint": {
40
- "optional": true
41
- }
42
- }
43
- }
1
+ {
2
+ "name": "@yuu1111/oxc-config",
3
+ "version": "0.2.0",
4
+ "description": "Shared Oxlint and Oxfmt configuration",
5
+ "homepage": "https://yuu1111.github.io/configs/packages/config/oxc-config/",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/yuu1111/configs.git",
9
+ "directory": "packages/config/oxc-config"
10
+ },
11
+ "type": "module",
12
+ "exports": {
13
+ "./oxfmt": {
14
+ "types": "./oxfmt.d.ts",
15
+ "default": "./oxfmt.js"
16
+ },
17
+ "./oxlint/plugin": "./oxlint/plugin.js",
18
+ "./package.json": "./package.json"
19
+ },
20
+ "files": [
21
+ "README.ja.md",
22
+ "oxfmt.d.ts",
23
+ "oxfmt.js",
24
+ "oxlint"
25
+ ],
26
+ "keywords": [
27
+ "oxlint",
28
+ "oxfmt",
29
+ "config"
30
+ ],
31
+ "peerDependencies": {
32
+ "oxfmt": ">=0.74.0",
33
+ "oxlint": ">=1.89.0"
34
+ },
35
+ "peerDependenciesMeta": {
36
+ "oxfmt": {
37
+ "optional": true
38
+ },
39
+ "oxlint": {
40
+ "optional": true
41
+ }
42
+ }
43
+ }