@puruslang/linter 0.8.1 → 0.9.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puruslang/linter",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Linter for the Purus language",
5
5
  "license": "Apache-2.0",
6
6
  "main": "src/index.js",
@@ -30,6 +30,6 @@
30
30
  "url": "https://github.com/sponsors/otoneko1102"
31
31
  },
32
32
  "engines": {
33
- "node": ">=18"
33
+ "node": ">=20"
34
34
  }
35
35
  }
package/src/index.js CHANGED
@@ -164,7 +164,7 @@ function tokenize(source) {
164
164
 
165
165
  const defaultRules = {
166
166
  "no-var": { severity: "warn", message: "Avoid 'var'; use 'const' or 'let' instead" },
167
- "bare-assignment": { severity: "warn", message: "Bare assignment without 'const'/'let'; use 'const x be ...' or 'let x be ...' instead" },
167
+ "bare-assignment": { severity: "error", message: "Bare identifier assignment is not supported; use 'const x be ...' or 'let x be ...' instead" },
168
168
  "no-nil": { severity: "warn", message: "Use 'null' instead of 'nil'" },
169
169
  "no-function": { severity: "warn", message: "'function' is deprecated; use 'fn' instead" },
170
170
  "no-protected": { severity: "warn", message: "'protected' is deprecated; use 'private' instead" },