Skip to content

Commit

Permalink
Add eslint, add jsdoc, refactor eds
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsw committed Oct 1, 2021
1 parent b218578 commit bf5fd8a
Show file tree
Hide file tree
Showing 84 changed files with 35,957 additions and 14,407 deletions.
38 changes: 38 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:mocha/recommended",
"plugin:jsdoc/recommended"
],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1,
"MemberExpression": "off"
}
],
"brace-style": [
"error",
"stroustrup"
],
"no-trailing-spaces": "error",
"no-control-regex": "off",
"no-unused-vars": "error",
"no-console": "error",
"camelcase": "error"
},
"plugins": [
"mocha",
"jsdoc"
]
}
34 changes: 34 additions & 0 deletions .jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"opts": {
"template": "node_modules/docdash",
"encoding": "utf8",
"destination": "docs",
"recurse": true,
"verbose": true
},
"plugins": [
"plugins/markdown"
],
"docdash": {
"static": true,
"sort": true,
"search": true,
"collapse": true,
"typedefs": true,
"removeQuotes": "none",
"scripts": [],
"menu": {
"Repository": {
"href": "https://github.com/DaxBot/node-canopen",
"target": "_blank",
"class": "menu-item",
"id": "repository"
}
}
},
"templates": {
"default": {
"useLongnameInNav": true
}
}
}
Loading

0 comments on commit bf5fd8a

Please sign in to comment.