@w0s/eslint-config 1.0.11 → 1.2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@w0s/eslint-config",
3
- "version": "1.0.11",
4
- "description": "eslint-config used on w0s.jp",
3
+ "version": "1.2.0",
4
+ "description": "ESLint configuration file used on w0s.jp",
5
5
  "keywords": [
6
6
  "eslint",
7
7
  "eslintconfig",
@@ -25,10 +25,16 @@
25
25
  "scripts": {
26
26
  "test": "eslint __tests__/*"
27
27
  },
28
- "peerDependencies": {
29
- "@typescript-eslint/eslint-plugin": "^5.45.0",
28
+ "dependencies": {
29
+ "@typescript-eslint/eslint-plugin": "^5.59.0",
30
30
  "eslint-config-airbnb-base": "^15.0.0",
31
- "eslint-plugin-jsdoc": "^39.6.4"
31
+ "eslint-plugin-jsdoc": "^41.1.2"
32
+ },
33
+ "devDependencies": {
34
+ "eslint": "^8.39.0"
35
+ },
36
+ "peerDependencies": {
37
+ "eslint": "^8.39.0"
32
38
  },
33
39
  "publishConfig": {
34
40
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  rules: {
3
- 'no-await-in-loop': 'warn', // TODO: Change to 'error' in the future
3
+ 'no-await-in-loop': 'error',
4
4
  'no-irregular-whitespace': [
5
5
  'error',
6
6
  {
@@ -2,7 +2,7 @@ module.exports = {
2
2
  rules: {
3
3
  curly: 'error',
4
4
  eqeqeq: 'error',
5
- 'no-continue': 'warn', // TODO: Change to 'error' in the future
5
+ 'no-continue': 'error',
6
6
  'no-else-return': [
7
7
  'error',
8
8
  {
@@ -29,5 +29,6 @@ module.exports = {
29
29
  'no-useless-call': 'error',
30
30
  'object-shorthand': ['error', 'methods'],
31
31
  'prefer-const': 'error',
32
+ strict: ['error', 'safe'],
32
33
  },
33
34
  };
package/rules/jsdoc.js CHANGED
@@ -1,17 +1,17 @@
1
1
  module.exports = {
2
2
  rules: {
3
- 'jsdoc/check-param-names': 'warn',
4
- 'jsdoc/check-tag-names': 'warn',
5
- 'jsdoc/check-types': 'warn',
6
- 'jsdoc/newline-after-description': 'warn',
7
- 'jsdoc/no-undefined-types': 'warn',
3
+ 'jsdoc/check-param-names': 'warn', // Recommended
4
+ 'jsdoc/check-tag-names': 'warn', // Recommended
5
+ 'jsdoc/check-types': 'warn', // Recommended
6
+ 'jsdoc/newline-after-description': 'warn', // Recommended
7
+ 'jsdoc/no-undefined-types': 'warn', // Recommended
8
8
  'jsdoc/require-hyphen-before-param-description': 'warn',
9
- 'jsdoc/require-param': 'warn',
10
- 'jsdoc/require-param-description': 'warn',
11
- 'jsdoc/require-param-name': 'warn',
12
- 'jsdoc/require-param-type': 'warn',
13
- 'jsdoc/require-returns-description': 'warn',
14
- 'jsdoc/require-returns-type': 'warn',
15
- 'jsdoc/valid-types': 'warn',
9
+ 'jsdoc/require-param': 'warn', // Recommended
10
+ 'jsdoc/require-param-description': 'warn', // Recommended
11
+ 'jsdoc/require-param-name': 'warn', // Recommended
12
+ 'jsdoc/require-param-type': 'warn', // Recommended
13
+ 'jsdoc/require-returns-description': 'warn', // Recommended
14
+ 'jsdoc/require-returns-type': 'warn', // Recommended
15
+ 'jsdoc/valid-types': 'warn', // Recommended
16
16
  },
17
17
  };