Skip to content

Commit

Permalink
fix: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Apr 28, 2021
1 parent a3737ca commit 6ab1fc1
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname "$0")/_/husky.sh"

npm test
npm run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"start": "concurrently \"npm run dev\" \"cd tools/develop-svelte && npm run dev\"",
"dev": "rollup -c -w",
"build": "rollup -c",
"test": "mocha src/**/*.test.js",
"test": "mocha src/**/*.test.js --reporter dot",
"lint": "eslint --cache src/**/*.svelte src/**/*.js tools/**/*.js *.js --ignore-pattern src/generated --ignore-pattern examples --ignore-pattern tools/develop-svelte/**/*.js",
"prepare": "husky install && cd tools && node generateEmbeddedAceJsonWorker.js && cd ..",
"prepublishOnly": "npm run lint && npm test && npm run build",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
svelte({
compilerOptions: {
// enable run-time checks when not in production
dev: !production,
dev: !production
},

// we want to embed the CSS in the generated JS bundle
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/popup/AbsolutePopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
}
const rootRect = refRootPopup.getBoundingClientRect()
const { left, top, width, height, positionAbove, positionLeft } = calculatePosition()
const { left, top, positionAbove, positionLeft } = calculatePosition()
const verticalStyling = positionAbove
? `bottom: ${rootRect.top - top}px;`
Expand Down
1 change: 0 additions & 1 deletion src/components/modes/treemode/BooleanToggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { faCheckSquare, faSquare } from '@fortawesome/free-regular-svg-icons'
import { compileJSONPointer } from 'immutable-json-patch'
import Icon from 'svelte-awesome'
import { SELECTION_TYPE } from '../../../logic/selection.js'
export let onPatch
export let path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
}
}
if (combo === 'Up' || combo === 'Down' || combo === 'Left'|| combo === 'Right') {
if (combo === 'Up' || combo === 'Down' || combo === 'Left' || combo === 'Right') {
event.preventDefault()
focusNextButton(event.target, combo.toLowerCase())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
onContextMenu({
anchor: buttonElem,
width: CONTEXT_MENU_WIDTH,
height: CONTEXT_MENU_HEIGHT,
height: CONTEXT_MENU_HEIGHT
})
}
}
Expand Down
1 change: 0 additions & 1 deletion src/logic/selection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ describe('selection', () => {
assert.deepStrictEqual(findRootPath(json, { type: SELECTION_TYPE.KEY, path: path1, anchorPath: path1, focusPath: path1 }), path2)
assert.deepStrictEqual(findRootPath(json, { type: SELECTION_TYPE.VALUE, path: path1, anchorPath: path1, focusPath: path1 }), path2)


assert.deepStrictEqual(findRootPath(json, { type: SELECTION_TYPE.VALUE, path: path2, anchorPath: path2, focusPath: path2 }), path2)
})

Expand Down

0 comments on commit 6ab1fc1

Please sign in to comment.