Skip to content

Commit

Permalink
chore(binding-opcua) add eslint task
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Sep 22, 2021
1 parent 06eb231 commit 7866a42
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/binding-opcua/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../.eslintrc.json",
"parserOptions": {
"sourceType": "module",
"project": [
"./tsconfig.json",
"./tsconfig.eslint.json"
]
}
}
3 changes: 2 additions & 1 deletion packages/binding-opcua/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
},
"scripts": {
"build": "tsc",
"test": "mocha --require ts-node/register test/opcua-client-test.ts"
"test": "mocha --require ts-node/register test/opcua-client-test.ts",
"lint": "eslint src test"
},
"bugs": {
"url": "https://github.com/eclipse/thingweb.node-wot/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/binding-opcua/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
"include": ["test/**/*"]
}

0 comments on commit 7866a42

Please sign in to comment.