@nfq/eslint-config 2.1.0 → 2.1.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
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.1.3](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.2...v2.1.3) (2022-05-27)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **require-jsdoc:** Fix declaration for require ([#15](https://github.com/nfqde/eslint-config-nfq/issues/15)) ([144267b](https://github.com/nfqde/eslint-config-nfq/commit/144267b8a8cc40a561d5c0d239a7b9f0d0c83268))
11
+
12
+ ### [2.1.2](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.1...v2.1.2) (2022-05-27)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **require-jsdoc:** changes in the require-jsdoc rule ([#14](https://github.com/nfqde/eslint-config-nfq/issues/14)) ([6c1b035](https://github.com/nfqde/eslint-config-nfq/commit/6c1b035c6b8380e680112c0935175919caacd4ff))
18
+
19
+ ### [2.1.1](https://github.com/nfqde/eslint-config-nfq/compare/v2.1.0...v2.1.1) (2022-05-24)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **AddRules:** Add rules to config ([#13](https://github.com/nfqde/eslint-config-nfq/issues/13)) ([68b090d](https://github.com/nfqde/eslint-config-nfq/commit/68b090dc799b1b12433960dbcc8fe54f75b6306b))
25
+
5
26
  ## [2.1.0](https://github.com/nfqde/eslint-config-nfq/compare/v2.0.0...v2.1.0) (2022-05-24)
6
27
 
7
28
 
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nfq/eslint-config",
3
- "version": "2.1.0",
3
+ "version": "2.1.3",
4
4
  "engines": {
5
5
  "node": ">= 12.0.0"
6
6
  },
7
7
  "description": "Eslint configuration for all nfq projects",
8
8
  "main": "index.js",
9
9
  "scripts": {
10
- "deploy": "standard-version && git push --follow-tags origin master",
10
+ "deploy": "standard-version && git push --follow-tags origin master && npm publish",
11
11
  "test": "echo \"Error: no test specified\" && exit 1"
12
12
  },
13
13
  "keywords": [
package/rules/index.js CHANGED
@@ -3,6 +3,7 @@ const bestPractices = require.resolve('./best-practices');
3
3
  const errors = require.resolve('./errors');
4
4
  const es6 = require.resolve('./es6');
5
5
  const imports = require.resolve('./imports');
6
+ const jsdoc = require.resolve('./jsdoc');
6
7
  const node = require.resolve('./node');
7
8
  const performance = require.resolve('./performance');
8
9
  const promises = require.resolve('./promises');
@@ -22,6 +23,7 @@ module.exports = [
22
23
  errors,
23
24
  es6,
24
25
  imports,
26
+ jsdoc,
25
27
  node,
26
28
  performance,
27
29
  promises,
package/rules/jsdoc.js CHANGED
@@ -56,7 +56,21 @@ module.exports = {
56
56
  'jsdoc/require-example': 'off', // Reports missing example in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-example
57
57
  'jsdoc/require-file-overview': 'off', // Reports missing file overview in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-file-overview
58
58
  'jsdoc/require-hyphen-before-param-description': ['error', 'never'], // Reports missing hyphen before param description in JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-hyphen-before-param-description
59
- 'jsdoc/require-jsdoc': 'error', // Reports missing JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-jsdoc
59
+ 'jsdoc/require-jsdoc': [
60
+ 'error',
61
+ {
62
+ contexts: ['VariableDeclaration > VariableDeclarator > ArrowFunctionExpression'],
63
+ publicOnly: false,
64
+ require: {
65
+ ArrowFunctionExpression: false,
66
+ ClassDeclaration: true,
67
+ ClassExpression: true,
68
+ FunctionDeclaration: true,
69
+ FunctionExpression: true,
70
+ MethodDefinition: true
71
+ }
72
+ }
73
+ ], // Reports missing JSDoc comments. https://github.com/gajus/eslint-plugin-jsdoc#require-jsdoc
60
74
  'jsdoc/require-param': [
61
75
  'error',
62
76
  {