@k03mad/oxlint-config 0.3.0 → 0.4.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/.oxfmtrc.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "./node_modules/oxfmt/configuration_schema.json",
2
+ "": "./node_modules/oxfmt/configuration_schema.json",
3
3
  "ignorePatterns": ["node_modules/**"],
4
4
  "singleQuote": true,
5
5
  "arrowParens": "avoid",
@@ -15,13 +15,14 @@
15
15
  ["index", "type-index"]
16
16
  ]
17
17
  },
18
- "tabWidth": 4,
18
+ "tabWidth": 2,
19
+ "trailingComma": "none",
19
20
  "overrides": [
20
21
  {
21
- "files": ["*.json", "*.jsonc", "*.yaml", "*.yml"],
22
+ "files": ["*.js", "*.ts"],
22
23
  "options": {
23
- "tabWidth": 2,
24
- "trailingComma": "none"
24
+ "tabWidth": 4,
25
+ "trailingComma": "all"
25
26
  }
26
27
  }
27
28
  ]
package/.oxlintrc.json CHANGED
@@ -15,6 +15,10 @@
15
15
  "nursery": "error"
16
16
  },
17
17
 
18
+ "options": {
19
+ "reportUnusedDisableDirectives": "error"
20
+ },
21
+
18
22
  "rules": {
19
23
  "import/extensions": [
20
24
  "error",
@@ -1,5 +1,4 @@
1
1
  {
2
- "cSpell.words": ["nvmrc", "oxfmt", "oxfmtrc", "oxlint", "oxlintrc"],
3
2
  "oxc.fmt.configPath": ".oxfmtrc.json",
4
3
  "editor.formatOnSave": true,
5
4
  "editor.defaultFormatter": "oxc.oxc-vscode",
package/README.md CHANGED
@@ -10,11 +10,11 @@ npm i --save-dev --save-exact oxlint oxfmt @k03mad/oxlint-config
10
10
 
11
11
  ```json
12
12
  {
13
- "$schema": "./node_modules/oxlint/configuration_schema.json",
14
- "extends": ["./node_modules/@k03mad/oxlint-config/.oxlintrc.json"],
15
- "env": {
16
- "node": true
17
- }
13
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
14
+ "extends": ["./node_modules/@k03mad/oxlint-config/.oxlintrc.json"],
15
+ "env": {
16
+ "node": true
17
+ }
18
18
  }
19
19
  ```
20
20
 
@@ -22,22 +22,22 @@ npm i --save-dev --save-exact oxlint oxfmt @k03mad/oxlint-config
22
22
 
23
23
  ```json
24
24
  {
25
- "$schema": "./node_modules/oxfmt/configuration_schema.json",
26
- "ignorePatterns": ["node_modules/**"],
27
- "singleQuote": true,
28
- "arrowParens": "avoid",
29
- "bracketSpacing": false,
30
- "quoteProps": "consistent",
31
- "experimentalSortImports": {
32
- "groups": [
33
- ["builtin"],
34
- ["external", "type-external"],
35
- ["internal", "type-internal"],
36
- ["parent", "type-parent"],
37
- ["sibling", "type-sibling"],
38
- ["index", "type-index"]
39
- ]
40
- }
25
+ "$schema": "./node_modules/oxfmt/configuration_schema.json",
26
+ "ignorePatterns": ["node_modules/**"],
27
+ "singleQuote": true,
28
+ "arrowParens": "avoid",
29
+ "bracketSpacing": false,
30
+ "quoteProps": "consistent",
31
+ "experimentalSortImports": {
32
+ "groups": [
33
+ ["builtin"],
34
+ ["external", "type-external"],
35
+ ["internal", "type-internal"],
36
+ ["parent", "type-parent"],
37
+ ["sibling", "type-sibling"],
38
+ ["index", "type-index"]
39
+ ]
40
+ }
41
41
  }
42
42
  ```
43
43
 
@@ -45,12 +45,12 @@ npm i --save-dev --save-exact oxlint oxfmt @k03mad/oxlint-config
45
45
 
46
46
  ```json
47
47
  {
48
- "editor.defaultFormatter": "oxc.oxc-vscode",
49
- "oxc.fmt.configPath": ".oxfmtrc.json",
50
- "editor.formatOnSave": true,
51
- "editor.codeActionsOnSave": {
52
- "source.fixAll.oxc": "always"
53
- }
48
+ "editor.defaultFormatter": "oxc.oxc-vscode",
49
+ "oxc.fmt.configPath": ".oxfmtrc.json",
50
+ "editor.formatOnSave": true,
51
+ "editor.codeActionsOnSave": {
52
+ "source.fixAll.oxc": "always"
53
+ }
54
54
  }
55
55
  ```
56
56
 
@@ -58,8 +58,8 @@ npm i --save-dev --save-exact oxlint oxfmt @k03mad/oxlint-config
58
58
 
59
59
  ```json
60
60
  {
61
- "scripts": {
62
- "lint": "oxlint --report-unused-disable-directives && oxfmt --check"
63
- }
61
+ "scripts": {
62
+ "lint": "oxlint --report-unused-disable-directives && oxfmt --check"
63
+ }
64
64
  }
65
65
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/oxlint-config",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "My Oxlint config",
5
5
  "license": "MIT",
6
6
  "maintainers": [
@@ -11,13 +11,13 @@
11
11
  },
12
12
  "type": "module",
13
13
  "scripts": {
14
- "lint": "oxlint --report-unused-disable-directives && oxfmt --check",
14
+ "lint": "oxlint && oxfmt --check",
15
15
  "prepare": "husky || true"
16
16
  },
17
17
  "devDependencies": {
18
18
  "husky": "9.1.7",
19
- "oxfmt": "0.38.0",
20
- "oxlint": "1.53.0"
19
+ "oxfmt": "0.41.0",
20
+ "oxlint": "1.56.0"
21
21
  },
22
22
  "engines": {
23
23
  "node": ">=24"