Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,20 @@ module.exports = {
es2021: true
},
extends: [
'eslint:recommended',
'standard'
],
globals: {
RED: true,
Promise: true
},
plugins: ['eslint-plugin-html', 'no-only-tests'],
parserOptions: {
ecmaVersion: 13
},
rules: {
indent: ['error', 4],
semi: ['error', 'always'],
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'quote-props': ['error', 'as-needed', { unnecessary: false }]
// 'space-before-function-paren': ['never'],
// 'spaced-comment': ['never']

},
plugins: [
'html'
],
settings: {
'html/html-extensions': ['.html']
'spaced-comment': ['error', 'always', { block: { balanced: true }, line: { markers: ['/'] } }],
'no-only-tests/no-only-tests': 'error'
}

};
}
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,9 @@ jobs:
cp ./test/_config.github.json ./test/config.json
npm install

- name: Run ESLint
if: matrix.node-version == 20
run: npm run lint

- name: npm test
run: npm test
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"mustache": "^4.2.0"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-html": "^6.2.0",
"eslint": "^8.47.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"mocha": "^9.2.2",
"mocha": "^10.7.3",
"node-red": "^4.0.9",
"node-red-node-test-helper": "^0.3.4",
"should": "^13.2.3"
Expand All @@ -36,6 +36,8 @@
},
"scripts": {
"test": "mocha \"test/**/*_spec.js\"",
"lint": "eslint test/**/*.js src/**/*.js src/**/*.html",
"lint:fix": "eslint test/**/*.js src/**/*.js src/**/*.html --fix",
"release": "np",
"release-no-tests": "np --no-tests"
},
Expand All @@ -57,8 +59,8 @@
"author": "Redconnect.io",
"contributors": [
"Shao Yu-Lung <[email protected]> (https://github.com/bestlong)",
"Olli Kasari <8488349+kasarol@users.noreply.github.com>",
"Steve McLaughlin <44235289+Steve-Mcl@users.noreply.github.com> (https://github.com/Steve-Mcl)"
"Steve McLaughlin <44235289+Steve-Mcl@users.noreply.github.com> (https://github.com/Steve-Mcl)",
"Olli Kasari <8488349+kasarol@users.noreply.github.com>"
],
"license": "MIT",
"homepage": "https://github.com/bestlong/node-red-contrib-mssql-plus",
Expand Down
Loading