@rslint/core 0.6.2 → 0.6.3

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.
@@ -545,6 +545,7 @@ declare interface RuleFixer {
545
545
  declare interface SourceCode {
546
546
  text: string;
547
547
  ast: ESTreeNode;
548
+ isESTree: boolean;
548
549
  lines: string[];
549
550
  hasBOM: boolean;
550
551
  scopeManager: unknown;
@@ -25554,7 +25554,7 @@ class ConfigCommentParser {
25554
25554
  config: items
25555
25555
  };
25556
25556
  } catch {}
25557
- const normalizedString = string.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu, '"$1":').replace(/(\]|[0-9])\s+(?=")/u, "$1,");
25557
+ const normalizedString = string.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu, '"$1":').replace(/([\]0-9])\s+(?=")/u, "$1,");
25558
25558
  try {
25559
25559
  const items = JSON.parse(`{${normalizedString}}`);
25560
25560
  return {
@@ -25711,6 +25711,7 @@ function createSourceCode(input) {
25711
25711
  const sc = {
25712
25712
  text,
25713
25713
  ast,
25714
+ isESTree: 'Program' === ast.type,
25714
25715
  get lines () {
25715
25716
  if (null == _lines) _lines = text.split(LINE_TERMINATOR_RE);
25716
25717
  return _lines;
@@ -24986,7 +24986,7 @@ class ConfigCommentParser {
24986
24986
  config: items
24987
24987
  };
24988
24988
  } catch {}
24989
- const normalizedString = string.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu, '"$1":').replace(/(\]|[0-9])\s+(?=")/u, "$1,");
24989
+ const normalizedString = string.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu, '"$1":').replace(/([\]0-9])\s+(?=")/u, "$1,");
24990
24990
  try {
24991
24991
  const items = JSON.parse(`{${normalizedString}}`);
24992
24992
  return {
@@ -25143,6 +25143,7 @@ function createSourceCode(input) {
25143
25143
  const sc = {
25144
25144
  text,
25145
25145
  ast,
25146
+ isESTree: 'Program' === ast.type,
25146
25147
  get lines () {
25147
25148
  if (null == _lines) _lines = text.split(LINE_TERMINATOR_RE);
25148
25149
  return _lines;
package/dist/index.js CHANGED
@@ -347,7 +347,8 @@ const promise_recommended = {
347
347
  'promise/no-return-wrap': 'error',
348
348
  'promise/param-names': 'error',
349
349
  'promise/catch-or-return': 'error',
350
- 'promise/avoid-new': 'off'
350
+ 'promise/avoid-new': 'off',
351
+ 'promise/valid-params': 'warn'
351
352
  }
352
353
  };
353
354
  const jest_recommended = {
@@ -361,6 +362,7 @@ const jest_recommended = {
361
362
  'jest/no-deprecated-functions': 'error',
362
363
  'jest/no-disabled-tests': 'warn',
363
364
  'jest/no-done-callback': 'error',
365
+ 'jest/no-export': 'error',
364
366
  'jest/no-focused-tests': 'error',
365
367
  'jest/no-identical-title': 'error',
366
368
  'jest/no-jasmine-globals': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslint/core",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "exports": {
5
5
  ".": {
6
6
  "@typescript/source": "./src/index.ts",
@@ -52,8 +52,8 @@
52
52
  "webworker"
53
53
  ],
54
54
  "devDependencies": {
55
- "@eslint/plugin-kit": "0.3.5",
56
- "@rslib/core": "0.22.0",
55
+ "@eslint/plugin-kit": "0.7.2",
56
+ "@rslib/core": "0.23.0",
57
57
  "@types/node": "24.0.14",
58
58
  "@types/picomatch": "4.0.2",
59
59
  "@typescript-eslint/scope-manager": "8.59.4",
@@ -66,7 +66,7 @@
66
66
  "globals": "17.6.0",
67
67
  "tinyglobby": "0.2.15",
68
68
  "typescript": "5.9.3",
69
- "@rslint/api": "0.6.2"
69
+ "@rslint/api": "0.6.3"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "jiti": "^2.0.0"
@@ -77,14 +77,14 @@
77
77
  }
78
78
  },
79
79
  "optionalDependencies": {
80
- "@rslint/native-darwin-arm64": "0.6.2",
81
- "@rslint/native-darwin-x64": "0.6.2",
82
- "@rslint/native-linux-arm64-gnu": "0.6.2",
83
- "@rslint/native-linux-x64-gnu": "0.6.2",
84
- "@rslint/native-linux-x64-musl": "0.6.2",
85
- "@rslint/native-linux-arm64-musl": "0.6.2",
86
- "@rslint/native-win32-arm64-msvc": "0.6.2",
87
- "@rslint/native-win32-x64-msvc": "0.6.2"
80
+ "@rslint/native-darwin-x64": "0.6.3",
81
+ "@rslint/native-linux-arm64-gnu": "0.6.3",
82
+ "@rslint/native-linux-arm64-musl": "0.6.3",
83
+ "@rslint/native-darwin-arm64": "0.6.3",
84
+ "@rslint/native-linux-x64-gnu": "0.6.3",
85
+ "@rslint/native-linux-x64-musl": "0.6.3",
86
+ "@rslint/native-win32-arm64-msvc": "0.6.3",
87
+ "@rslint/native-win32-x64-msvc": "0.6.3"
88
88
  },
89
89
  "dependencies": {
90
90
  "picomatch": "4.0.4"