@projectwallace/preset-oxlint 0.0.12 → 0.0.13

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.
Files changed (2) hide show
  1. package/index.json +21 -2
  2. package/package.json +10 -3
package/index.json CHANGED
@@ -68,8 +68,6 @@
68
68
  "no-rest-spread-properties": "off",
69
69
  // Allow using undefined as a value
70
70
  "no-undefined": "off",
71
- // Allow unused variables (handled by TypeScript)
72
- "no-unused-vars": "off",
73
71
  // Allow explicit return of undefined
74
72
  "no-useless-undefined": "off",
75
73
  // Don't enforce String.codePointAt over String.charCodeAt
@@ -84,6 +82,27 @@
84
82
  "require-await": "warn",
85
83
  // Require {} around if- and for-blocks
86
84
  "curly": "error",
85
+ // Use `const`
86
+ "prefer-const": "error",
87
+ // No really, use `const`
88
+ "no-var": "error",
89
+ // Really use them `const`
90
+ "no-unused-vars": "error",
91
+ // `function my_fn() {}`, not `const my_fn = () => {}`
92
+ "func-style": ["error", "declaration", { "allowArrowFunctions": false }],
93
+ // Relative imports must use `.ts` so the source runs as-is in Node (type stripping)
94
+ "import/extensions": [
95
+ "error",
96
+ "always",
97
+ {
98
+ "ignorePackages": true,
99
+ "pattern": {
100
+ "js": "never",
101
+ "mjs": "never",
102
+ "cjs": "never"
103
+ }
104
+ }
105
+ ],
87
106
 
88
107
  // ============================================================
89
108
  // Eslint plugin rules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectwallace/preset-oxlint",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Opinionated Project Wallace preset for Oxlint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,6 @@
11
11
  "license": "MIT",
12
12
  "author": "Bart Veneman <bart@projectwallace.com>",
13
13
  "main": "index.json",
14
- "scripts": {},
15
14
  "keywords": [
16
15
  "oxlint",
17
16
  "preset"
@@ -22,5 +21,13 @@
22
21
  ],
23
22
  "peerDependencies": {
24
23
  "oxlint": "^1.0.0"
24
+ },
25
+ "devDependencies": {
26
+ "oxlint": "^1.92.0",
27
+ "publint": "^0.3.25"
28
+ },
29
+ "scripts": {
30
+ "lint:config": "oxlint --config index.json --print-config > /dev/null",
31
+ "lint:package": "publint"
25
32
  }
26
- }
33
+ }