Skip to content

Commit

Permalink
CI run 368 pushed to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 11, 2024
1 parent 40f08cd commit 104f9c7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
22 changes: 17 additions & 5 deletions demo/trunk/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ export default [
// force using curly braces
// https://eslint.org/docs/rules/curly
curly: 'error',
// no var
// https://eslint.org/docs/rules/no-var
//'no-var': 'error',
// prefer const
// https://eslint.org/docs/rules/prefer-const
//'prefer-const': 'error',
// allow for some unused args
// https://eslint.org/docs/rules/no-unused-vars
'no-unused-vars': ['error', {argsIgnorePattern: '^_'}],

// formatting rules

Expand All @@ -40,11 +49,11 @@ export default [
'@stylistic/js/space-before-function-paren': ['error', {named: 'never'}],
// newline at object curly
// https://eslint.style/rules/js/object-curly-newline
'@stylistic/js/object-curly-newline': ['error', {'consistent': true}],
'@stylistic/js/object-curly-newline': ['error', {consistent: true}],
// newline at object properties
// https://eslint.style/rules/js/object-property-newline
'@stylistic/js/object-property-newline': [
'error', {'allowAllPropertiesOnSameLine': true}
'error', {allowAllPropertiesOnSameLine: true}
],
// newline at array brackets
// https://eslint.style/rules/js/array-bracket-newline
Expand All @@ -58,7 +67,7 @@ export default [
// give error for long lines (default: 80)
// https://eslint.style/rules/js/max-len
'@stylistic/js/max-len': [
'error', {'ignoreRegExpLiterals': true, 'ignoreUrls': true}
'error', {ignoreRegExpLiterals: true, ignoreUrls: true}
],
// spaces in parenthesis (default: never)
// https://eslint.style/rules/js/space-in-parens
Expand Down Expand Up @@ -108,7 +117,10 @@ export default [
'@stylistic/js/no-multiple-empty-lines': 'error',
// linebreak after operator
// https://eslint.style/rules/js/operator-linebreak
'@stylistic/js/operator-linebreak': 'error'
'@stylistic/js/operator-linebreak': 'error',
// quotes around object property names
// https://eslint.style/rules/js/quote-props
'@stylistic/js/quote-props': ['error', 'as-needed']
},
}
];
];
12 changes: 6 additions & 6 deletions demo/trunk/src/gui/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,27 @@ dwvjq.gui.getHelpKeys = function (toolName) {
brief: 'tool.' + toolName + '.brief',
};
var toolActions = {
'Draw': {
Draw: {
mouse: ['mouse_drag'],
touch: ['touch_drag']
},
'Floodfill': {
Floodfill: {
mouse: ['click'],
touch: ['tap']
},
'Opacity': {
Opacity: {
mouse: ['mouse_drag'],
touch: ['touch_drag']
},
'Scroll': {
Scroll: {
mouse: ['mouse_drag', 'double_click'],
touch: ['touch_drag', 'tap_and_hold']
},
'WindowLevel': {
WindowLevel: {
mouse: ['mouse_drag', 'double_click'],
touch: ['touch_drag']
},
'ZoomAndPan': {
ZoomAndPan: {
mouse: ['mouse_drag', 'mouse_drag'],
touch: ['twotouch_pinch', 'touch_drag']
}
Expand Down

0 comments on commit 104f9c7

Please sign in to comment.