Skip to content

Commit dbceea0

Browse files
authored
Merge pull request #4 from leviy/update_dependencies_add_jsdoc
Add JSDoc plugin and update dependencies to latest
2 parents 2e58b65 + c6b6377 commit dbceea0

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

packages/eslint-config-default/index.js

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ module.exports = {
55
'jquery': true,
66
'jest/globals': true
77
},
8-
plugins: ['jest'],
8+
plugins: ['jest', 'jsdoc'],
99
rules: {
1010
'import/first': 'off',
1111
'import/no-extraneous-dependencies': ['error', {
1212
'devDependencies': true
1313
}],
1414
'arrow-body-style': 'off',
1515
'class-methods-use-this': 'off',
16-
'max-len': [2, 140, 4],
16+
'max-len': ['error', {
17+
'code': 140
18+
}],
1719
'indent': ['error', 4, {
1820
'SwitchCase': 1
1921
}],
@@ -33,6 +35,20 @@ module.exports = {
3335
'no-multiple-empty-lines': ['error', {
3436
'max': 1,
3537
'maxEOF': 1
36-
}]
38+
}],
39+
'jsdoc/check-alignment': 'warn',
40+
'jsdoc/check-param-names': 'warn',
41+
'jsdoc/check-syntax': 'error',
42+
'jsdoc/check-tag-names': 'warn',
43+
'jsdoc/check-types': 'error',
44+
'jsdoc/implements-on-classes': 'warn',
45+
'jsdoc/require-jsdoc': 'warn',
46+
'jsdoc/require-param': 'error',
47+
'jsdoc/require-param-name': 'error',
48+
'jsdoc/require-param-type': 'error',
49+
'jsdoc/require-returns': 'error',
50+
'jsdoc/require-returns-check': 'error',
51+
'jsdoc/require-returns-type': 'error',
52+
'jsdoc/valid-types': 'warn',
3753
}
3854
};
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"name": "@leviy/eslint-config-default",
3-
"version": "1.1.3",
3+
"version": "2.0.0",
44
"repository": {
55
"type": "git",
66
"url": "git+ssh://git@github.com:leviy/javascript-coding-standard.git"
77
},
88
"homepage": "https://github.com/leviy/javascript-coding-standard/tree/master/packages/eslint-config-default/",
99
"dependencies": {
10-
"eslint-config-airbnb-base": "^13.1",
11-
"eslint-plugin-jest": "^21.15"
10+
"eslint-config-airbnb-base": "^13.2",
11+
"eslint-plugin-jest": "^22.10",
12+
"eslint-plugin-jsdoc": "^15.5.3",
13+
"eslint-plugin-import": "^2.18"
1214
},
1315
"peerDependencies": {
14-
"eslint": "^4.19",
15-
"eslint-plugin-import": "^2.11"
16+
"eslint": "^6.0"
1617
}
1718
}

0 commit comments

Comments
 (0)