diff --git a/.coffeelintignore b/.coffeelintignore deleted file mode 100644 index 1db51fe..0000000 --- a/.coffeelintignore +++ /dev/null @@ -1 +0,0 @@ -spec/fixtures diff --git a/appveyor.yml b/appveyor.yml index 2b0fde4..772d948 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,3 @@ -version: "{build}" - platform: x64 branches: @@ -18,7 +16,7 @@ environment: - ATOM_CHANNEL: beta install: - - ps: Install-Product node 4 + - ps: Install-Product node 6 build_script: - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1')) diff --git a/coffeelint.json b/coffeelint.json deleted file mode 100644 index a5dd715..0000000 --- a/coffeelint.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "max_line_length": { - "level": "ignore" - }, - "no_empty_param_list": { - "level": "error" - }, - "arrow_spacing": { - "level": "error" - }, - "no_interpolation_in_single_quotes": { - "level": "error" - }, - "no_debugger": { - "level": "error" - }, - "prefer_english_operator": { - "level": "error" - }, - "colon_assignment_spacing": { - "spacing": { - "left": 0, - "right": 1 - }, - "level": "error" - }, - "braces_spacing": { - "spaces": 0, - "level": "error" - }, - "spacing_after_comma": { - "level": "error" - }, - "no_stand_alone_at": { - "level": "error" - } -} diff --git a/lib/command-palette-view.js b/lib/command-palette-view.js index 43fcd23..2d23158 100644 --- a/lib/command-palette-view.js +++ b/lib/command-palette-view.js @@ -73,6 +73,7 @@ export default class CommandPaletteView { didConfirmSelection: (keyBinding) => { debugger this.hide() + let CustomEvent = window.CustomEvent const event = new CustomEvent(keyBinding.name, {bubbles: true, cancelable: true}) this.activeElement.dispatchEvent(event) }, diff --git a/package.json b/package.json index 7700d26..a1792da 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ "engines": { "atom": "*" }, + "scripts": { + "test": "standard lib/**/*.js test/**/*.js && atom --test test/*.test.js" + }, "atomTestRunner": "atom-mocha-test-runner", "dependencies": { "atom-select-list": "0.0.5", @@ -22,7 +25,7 @@ }, "devDependencies": { "atom-mocha-test-runner": "^0.3.0", - "coffeelint": "^1.9.7" + "standard": "^8.6.0" }, "configSchema": { "useAlternateScoring": { @@ -35,5 +38,10 @@ "default": false, "description": "Preserve the last search when reopening the command palette." } + }, + "standard": { + "globals": [ + "atom" + ] } }