@eslint/json 0.13.1 → 0.13.2

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.
@@ -32,7 +32,7 @@ var naturalCompare = require('natural-compare');
32
32
  const commentParser = new pluginKit.ConfigCommentParser();
33
33
 
34
34
  const INLINE_CONFIG =
35
- /^\s*(?:eslint(?:-enable|-disable(?:(?:-next)?-line)?)?)(?:\s|$)/u;
35
+ /^\s*eslint(?:-enable|-disable(?:(?:-next)?-line)?)?(?:\s|$)/u;
36
36
 
37
37
  /**
38
38
  * A class to represent a step in the traversal process.
@@ -808,8 +808,7 @@ const rule$3 = {
808
808
  * We separately capture the integer and fractional parts of a number, so that
809
809
  * we can check for unsafe numbers that will evaluate to Infinity.
810
810
  */
811
- const NUMBER =
812
- /^-?(?<int>0|([1-9][0-9]*))(?:\.(?<frac>[0-9]+))?(?:[eE][+-]?[0-9]+)?$/u;
811
+ const NUMBER = /^-?(?<int>0|([1-9]\d*))(?:\.(?<frac>\d+))?(?:e[+-]?\d+)?$/iu;
813
812
  const NON_ZERO = /[1-9]/u;
814
813
 
815
814
  //-----------------------------------------------------------------------------
@@ -1242,7 +1241,7 @@ var rules = {
1242
1241
  const plugin = {
1243
1242
  meta: {
1244
1243
  name: "@eslint/json",
1245
- version: "0.13.1", // x-release-please-version
1244
+ version: "0.13.2", // x-release-please-version
1246
1245
  },
1247
1246
  languages: {
1248
1247
  json: new JSONLanguage({ mode: "json" }),
package/dist/esm/index.js CHANGED
@@ -29,7 +29,7 @@ import naturalCompare from 'natural-compare';
29
29
  const commentParser = new ConfigCommentParser();
30
30
 
31
31
  const INLINE_CONFIG =
32
- /^\s*(?:eslint(?:-enable|-disable(?:(?:-next)?-line)?)?)(?:\s|$)/u;
32
+ /^\s*eslint(?:-enable|-disable(?:(?:-next)?-line)?)?(?:\s|$)/u;
33
33
 
34
34
  /**
35
35
  * A class to represent a step in the traversal process.
@@ -805,8 +805,7 @@ const rule$3 = {
805
805
  * We separately capture the integer and fractional parts of a number, so that
806
806
  * we can check for unsafe numbers that will evaluate to Infinity.
807
807
  */
808
- const NUMBER =
809
- /^-?(?<int>0|([1-9][0-9]*))(?:\.(?<frac>[0-9]+))?(?:[eE][+-]?[0-9]+)?$/u;
808
+ const NUMBER = /^-?(?<int>0|([1-9]\d*))(?:\.(?<frac>\d+))?(?:e[+-]?\d+)?$/iu;
810
809
  const NON_ZERO = /[1-9]/u;
811
810
 
812
811
  //-----------------------------------------------------------------------------
@@ -1239,7 +1238,7 @@ var rules = {
1239
1238
  const plugin = {
1240
1239
  meta: {
1241
1240
  name: "@eslint/json",
1242
- version: "0.13.1", // x-release-please-version
1241
+ version: "0.13.2", // x-release-please-version
1243
1242
  },
1244
1243
  languages: {
1245
1244
  json: new JSONLanguage({ mode: "json" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint/json",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "JSON linting plugin for ESLint",
5
5
  "author": "Nicholas C. Zakas",
6
6
  "type": "module",
@@ -70,8 +70,8 @@
70
70
  "fmt": "prettier --write .",
71
71
  "fmt:check": "prettier --check .",
72
72
  "test": "mocha tests/**/*.js",
73
- "test:jsr": "npx jsr@latest publish --dry-run",
74
73
  "test:coverage": "c8 npm test",
74
+ "test:jsr": "npx jsr@latest publish --dry-run",
75
75
  "test:types": "tsc -p tests/types/tsconfig.json"
76
76
  },
77
77
  "keywords": [
@@ -83,16 +83,16 @@
83
83
  ],
84
84
  "license": "Apache-2.0",
85
85
  "dependencies": {
86
- "@eslint/core": "^0.15.1",
87
- "@eslint/plugin-kit": "^0.3.4",
88
- "@humanwhocodes/momoa": "^3.3.8",
86
+ "@eslint/core": "^0.15.2",
87
+ "@eslint/plugin-kit": "^0.3.5",
88
+ "@humanwhocodes/momoa": "^3.3.9",
89
89
  "natural-compare": "^1.4.0"
90
90
  },
91
91
  "devDependencies": {
92
92
  "c8": "^10.1.3",
93
93
  "dedent": "^1.5.3",
94
94
  "eslint": "^9.31.0",
95
- "eslint-config-eslint": "^11.0.0",
95
+ "eslint-config-eslint": "^12.0.0",
96
96
  "eslint-plugin-eslint-plugin": "^6.3.2",
97
97
  "got": "^14.4.2",
98
98
  "lint-staged": "^15.2.7",
@@ -102,7 +102,7 @@
102
102
  "rollup": "^4.41.0",
103
103
  "rollup-plugin-copy": "^3.5.0",
104
104
  "rollup-plugin-delete": "^3.0.1",
105
- "typescript": "^5.8.3",
105
+ "typescript": "^5.9.2",
106
106
  "yorkie": "^2.0.0"
107
107
  },
108
108
  "engines": {