@origin-1/eslint-config 0.17.1 → 0.18.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.
@@ -1,4 +1,4 @@
1
- declare const JS_VERSION_SET: Set<5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022>;
1
+ declare const JS_VERSION_SET: Set<5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024>;
2
2
  export type JSVersion = typeof JS_VERSION_SET extends Set<infer T> ? T : never;
3
3
  export type TSVersion = 'latest' | `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`;
4
4
  export declare function normalizeJSVersion(jsVersion?: JSVersion): JSVersion;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.normalizeTSVersion = exports.normalizeJSVersion = void 0;
7
7
  const node_util_1 = require("node:util");
8
8
  const semver_1 = __importDefault(require("semver"));
9
- const JS_VERSION_SET = new Set([5, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022]);
9
+ const JS_VERSION_SET = new Set([5, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024]);
10
10
  function normalizeJSVersion(jsVersion = 5) {
11
11
  if (JS_VERSION_SET.has(jsVersion))
12
12
  return jsVersion;
package/lib/rules.js CHANGED
@@ -187,7 +187,6 @@ exports.RULES = {
187
187
  'operator-assignment': ['error'],
188
188
  'prefer-arrow-callback': beforeJSOrElse(2015, 'off', ['error']),
189
189
  'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
190
- 'prefer-destructuring': beforeJSOrElse(2015, 'off', ['error']),
191
190
  'prefer-exponentiation-operator': jsts(beforeOrElse(2016, 'off', ['error']), 'off'),
192
191
  'prefer-named-capture-group': 'off',
193
192
  'prefer-numeric-literals': ['error'],
@@ -281,6 +280,7 @@ exports.RULES = {
281
280
  'no-throw-literal': ['error'],
282
281
  'no-unused-expressions': ['error'],
283
282
  'no-useless-constructor': ['error'],
283
+ 'prefer-destructuring': beforeJSOrElse(2015, 'off', ['error']),
284
284
  'require-await': ['error'],
285
285
  'block-spacing': ['error'],
286
286
  'brace-style': 'off',
package/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "name": "@origin-1/eslint-config",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "ESLint configuration generator with Origin₁ presets",
5
5
  "homepage": "https://github.com/origin-1/eslint-config#readme",
6
6
  "license": "ISC",
7
7
  "author": "Francesco Trotta <ft@fasttime.org> (https://github.com/fasttime)",
8
- "repository": "github:@origin-1/eslint-config",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/origin-1/eslint-config.git"
11
+ },
9
12
  "dependencies": {
10
13
  "@types/eslint": "8",
11
14
  "semver": "7"
12
15
  },
13
16
  "peerDependencies": {
14
17
  "@origin-1/eslint-plugin": ">=0.14",
15
- "@typescript-eslint/eslint-plugin": "^6.2.0",
16
- "@typescript-eslint/parser": "^6.2.0",
18
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
19
+ "@typescript-eslint/parser": "^6.8.0",
17
20
  "eslint": "^8.50",
18
21
  "eslint-plugin-n": "16"
19
22
  },