@koffeine/eslint-config 44.3.1 → 44.4.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.
package/README.md CHANGED
@@ -7,26 +7,8 @@ Koffeine's ESLint shareable config
7
7
 
8
8
  ## Installation
9
9
 
10
- Use option `--save-exact` for npm install to make sure that ESLint and config rules match.
11
-
12
- __Config__
13
-
14
- ```sh
15
- npm install @koffeine/eslint-config --save-dev --save-exact
16
- ```
17
-
18
- __ESLint__
19
-
20
- Find out the matching version:
21
-
22
- ```sh
23
- npm view @koffeine/eslint-config peerDependencies.eslint
24
- ```
25
-
26
- Install the matching version:
27
-
28
10
  ```sh
29
- npm install eslint@9.30.1 --save-dev --save-exact
11
+ npm install --save-dev @koffeine/eslint-config eslint
30
12
  ```
31
13
 
32
14
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koffeine/eslint-config",
3
- "version": "44.3.1",
3
+ "version": "44.4.0",
4
4
  "description": "Koffeine's ESLint shareable config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "type": "module",
30
30
  "scripts": {
31
- "test": "eslint && tsc -p jsconfig.json && node test/index.js src/index.js",
31
+ "test": "eslint && tsc -p jsconfig.json && node test",
32
32
  "prepublishOnly": "npm test"
33
33
  },
34
34
  "dependencies": {
@@ -38,11 +38,11 @@
38
38
  "@types/node": "^22",
39
39
  "@types/punycode": "^2",
40
40
  "@typescript-eslint/parser": "^8",
41
- "eslint": "9.30.1",
41
+ "eslint": "9.31.0",
42
42
  "globals": "^16",
43
43
  "typescript": "^5"
44
44
  },
45
45
  "peerDependencies": {
46
- "eslint": "9.30.1"
46
+ "eslint": "^9.30.0"
47
47
  }
48
48
  }
package/src/eslint.js CHANGED
@@ -35,7 +35,7 @@ export default {
35
35
  'no-fallthrough': [ 'error', { commentPattern: 'break[\\s\\w]*omitted', allowEmptyCase: true, reportUnusedFallthroughComment: true } ],
36
36
  'no-func-assign': 'error',
37
37
  'no-import-assign': 'error',
38
- 'no-inner-declarations': [ 'error', 'both' ],
38
+ 'no-inner-declarations': [ 'error', 'both', { blockScopedFunctions: 'allow' } ],
39
39
  'no-invalid-regexp': 'error',
40
40
  'no-irregular-whitespace': [ 'error', { skipStrings: false, skipComments: false, skipRegExps: false, skipTemplates: false, skipJSXText: false } ],
41
41
  'no-loss-of-precision': 'error',