Skip to content

Commit

Permalink
Merge pull request #4 from leviy/update_dependencies_add_jsdoc
Browse files Browse the repository at this point in the history
Add JSDoc plugin and update dependencies to latest
  • Loading branch information
ctoffanin committed Jul 18, 2019
2 parents 2e58b65 + c6b6377 commit dbceea0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
22 changes: 19 additions & 3 deletions packages/eslint-config-default/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ module.exports = {
'jquery': true,
'jest/globals': true
},
plugins: ['jest'],
plugins: ['jest', 'jsdoc'],
rules: {
'import/first': 'off',
'import/no-extraneous-dependencies': ['error', {
'devDependencies': true
}],
'arrow-body-style': 'off',
'class-methods-use-this': 'off',
'max-len': [2, 140, 4],
'max-len': ['error', {
'code': 140
}],
'indent': ['error', 4, {
'SwitchCase': 1
}],
Expand All @@ -33,6 +35,20 @@ module.exports = {
'no-multiple-empty-lines': ['error', {
'max': 1,
'maxEOF': 1
}]
}],
'jsdoc/check-alignment': 'warn',
'jsdoc/check-param-names': 'warn',
'jsdoc/check-syntax': 'error',
'jsdoc/check-tag-names': 'warn',
'jsdoc/check-types': 'error',
'jsdoc/implements-on-classes': 'warn',
'jsdoc/require-jsdoc': 'warn',
'jsdoc/require-param': 'error',
'jsdoc/require-param-name': 'error',
'jsdoc/require-param-type': 'error',
'jsdoc/require-returns': 'error',
'jsdoc/require-returns-check': 'error',
'jsdoc/require-returns-type': 'error',
'jsdoc/valid-types': 'warn',
}
};
11 changes: 6 additions & 5 deletions packages/eslint-config-default/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "@leviy/eslint-config-default",
"version": "1.1.3",
"version": "2.0.0",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]:leviy/javascript-coding-standard.git"
},
"homepage": "https://github.com/leviy/javascript-coding-standard/tree/master/packages/eslint-config-default/",
"dependencies": {
"eslint-config-airbnb-base": "^13.1",
"eslint-plugin-jest": "^21.15"
"eslint-config-airbnb-base": "^13.2",
"eslint-plugin-jest": "^22.10",
"eslint-plugin-jsdoc": "^15.5.3",
"eslint-plugin-import": "^2.18"
},
"peerDependencies": {
"eslint": "^4.19",
"eslint-plugin-import": "^2.11"
"eslint": "^6.0"
}
}

0 comments on commit dbceea0

Please sign in to comment.