@pob/eslint-config 48.1.1 → 49.3.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
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
+ ## [49.3.2](https://github.com/christophehurpeau/eslint-config-pob/compare/v49.3.1...v49.3.2) (2022-07-07)
7
+
8
+ **Note:** Version bump only for package @pob/eslint-config
9
+
10
+
11
+
12
+
13
+
14
+ # [49.1.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v49.0.1...v49.1.0) (2022-03-13)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * faster eslint cli as @typescript-eslint/naming-convention only enabled in vscode ([6f3b715](https://github.com/christophehurpeau/eslint-config-pob/commit/6f3b715fe8b55714a05d7a630f86dd7fc535ea7b))
20
+
21
+
22
+ ### Features
23
+
24
+ * **deps:** update dependency eslint-plugin-unicorn to v41 ([#323](https://github.com/christophehurpeau/eslint-config-pob/issues/323)) ([999c202](https://github.com/christophehurpeau/eslint-config-pob/commit/999c20267998adbeba86a87137d7f70012909174))
25
+ * increase max complexity to 8 ([a08fec7](https://github.com/christophehurpeau/eslint-config-pob/commit/a08fec71f249e6d06a70f504edd9e17a0f9b15b5))
26
+
27
+
28
+
29
+
30
+
31
+ # [49.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.1...v49.0.0) (2022-02-12)
32
+
33
+ **Note:** Version bump only for package @pob/eslint-config
34
+
35
+
36
+
37
+
38
+
6
39
  ## [48.1.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v48.1.0...v48.1.1) (2022-02-06)
7
40
 
8
41
 
package/README.md CHANGED
@@ -8,6 +8,9 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://npmjs.org/package/@pob/eslint-config"><img src="https://img.shields.io/npm/v/@pob/eslint-config.svg?style=flat-square"></a>
11
+ <a href="https://npmjs.org/package/@pob/eslint-config"><img src="https://img.shields.io/npm/dw/@pob/eslint-config.svg?style=flat-square"></a>
12
+ <a href="https://npmjs.org/package/@pob/eslint-config"><img src="https://img.shields.io/node/v/@pob/eslint-config.svg?style=flat-square"></a>
13
+ <a href="https://npmjs.org/package/@pob/eslint-config"><img src="https://img.shields.io/npm/types/@pob/eslint-config.svg?style=flat-square"></a>
11
14
  </p>
12
15
 
13
16
  ### base
@@ -308,6 +308,9 @@ module.exports = {
308
308
 
309
309
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md
310
310
  'unicorn/prefer-json-parse-buffer': 'error',
311
+
312
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md
313
+ 'unicorn/text-encoding-identifier-case': 'error',
311
314
  },
312
315
 
313
316
  overrides: [
@@ -2,7 +2,7 @@
2
2
 
3
3
  module.exports = {
4
4
  rules: {
5
- complexity: ['warn', { max: 6 }],
5
+ complexity: ['warn', { max: 8 }],
6
6
  'max-depth': ['warn', 6],
7
7
  'max-lines': [
8
8
  'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config",
3
- "version": "48.1.1",
3
+ "version": "49.3.2",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -28,6 +28,7 @@
28
28
  "./prettier": "./lib/plugins/prettier.js",
29
29
  "./rules/expert": "./lib/rules/expert.js",
30
30
  "./lib/rules/style": "./lib/rules/style.js",
31
+ "./utils": "./utils.js",
31
32
  "./package.json": "./package.json"
32
33
  },
33
34
  "sideEffects": false,
@@ -42,10 +43,10 @@
42
43
  },
43
44
  "pob": {},
44
45
  "peerDependencies": {
45
- "eslint": "^8.4.1",
46
+ "eslint": "^8.11.0",
46
47
  "eslint-plugin-import": "^2.25.3",
47
48
  "eslint-plugin-node": "^11.1.0",
48
- "eslint-plugin-unicorn": "^40.1.0"
49
+ "eslint-plugin-unicorn": "^41.0.0"
49
50
  },
50
51
  "peerDependenciesMeta": {
51
52
  "eslint-plugin-import": {
@@ -59,12 +60,12 @@
59
60
  }
60
61
  },
61
62
  "dependencies": {
62
- "@pob/use-eslint-plugin": "^48.0.0",
63
+ "@pob/use-eslint-plugin": "49.3.2",
63
64
  "eslint-config-airbnb-base": "^15.0.0",
64
65
  "eslint-config-prettier": "^8.3.0",
65
66
  "eslint-plugin-import": "^2.25.3",
66
67
  "eslint-plugin-node": "^11.1.0",
67
- "eslint-plugin-unicorn": "^40.1.0"
68
+ "eslint-plugin-unicorn": "^41.0.0"
68
69
  },
69
- "gitHead": "ebf37e9b58c518b5b73d75417352c20b8a8360a7"
70
+ "gitHead": "f641e838bec801df7a217760606978be2298bcae"
70
71
  }
package/utils.js ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const isVSCode =
4
+ process.argv &&
5
+ process.argv.some((argv) => argv.includes('dbaeumer.vscode-eslint'));
6
+
7
+ exports.enableIfVSCode = (ruleLevel) => (isVSCode ? ruleLevel : 'off');