@foray1010/eslint-config 10.4.1 → 10.4.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [10.4.3](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@10.4.2...@foray1010/eslint-config@10.4.3) (2023-03-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **eslint-config:** disable unicorn/prefer-ternary ([5a0739d](https://github.com/foray1010/common-presets/commit/5a0739dcf754c82f982d69318a2d3d563b01d5b6))
11
+
12
+ ## [10.4.2](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@10.4.1...@foray1010/eslint-config@10.4.2) (2023-03-30)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **eslint-config:** disable unicorn/prefer-query-selector ([8fd1f11](https://github.com/foray1010/common-presets/commit/8fd1f11114151d5dfe867aeb8c7bbe7a62b982c5))
17
+
6
18
  ## [10.4.1](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@10.4.0...@foray1010/eslint-config@10.4.1) (2023-03-30)
7
19
 
8
20
  ### Bug Fixes
package/bases/base.mjs CHANGED
@@ -391,10 +391,14 @@ const baseConfig = [
391
391
  'unicorn/prefer-event-target': 'error',
392
392
  // some legacy projects still use commonjs
393
393
  'unicorn/prefer-module': 'off',
394
+ // `querySelector` is slower than `getElementById`
395
+ 'unicorn/prefer-query-selector': 'off',
394
396
  // `Array.from(iterable)` is more readable than `[...iterable]`
395
397
  'unicorn/prefer-spread': 'off',
396
398
  // it is cleaner than `.replace(//g)`
397
399
  'unicorn/prefer-string-replace-all': 'error',
400
+ // sometimes it is less readable using ternary expressions
401
+ 'unicorn/prefer-ternary': 'off',
398
402
  // webpack support on `top level await` is still experimental, and some legacy projects still use commonjs
399
403
  'unicorn/prefer-top-level-await': 'off',
400
404
  // use with `unicorn/new-for-builtins`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@foray1010/eslint-config",
4
- "version": "10.4.1",
4
+ "version": "10.4.3",
5
5
  "homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
6
6
  "bugs": "https://github.com/foray1010/common-presets/issues",
7
7
  "repository": {
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "f601e7bd8556f28896290dc326376603dbc14764"
67
+ "gitHead": "2827bd9ef34bdd2e0ee9a91397d20b0547461d7d"
68
68
  }