-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start on eslint-plugin-ember 10 updates (#1592)
* Start on eslint-plugin-ember 10 updates * Use ember-ref-modifer to get element * Explicitly import port service * Add a couple missed port injections * Silence deprecations for now * Native class codemod * Remove classic decorators * Fix tests * Remove 3.4 and 3.8 from tests
- Loading branch information
1 parent
8048168
commit c587830
Showing
68 changed files
with
912 additions
and
741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import WebExtension from './web-extension'; | ||
import { tracked } from '@glimmer/tracking'; | ||
|
||
export default WebExtension.extend({ | ||
name: 'chrome', | ||
|
||
canOpenResource: true, | ||
export default class Chrome extends WebExtension { | ||
name = 'chrome'; | ||
@tracked canOpenResource = true; | ||
|
||
openResource(file, line) { | ||
/*global chrome */ | ||
// For some reason it opens the line after the one specified | ||
chrome.devtools.panels.openResource(file, line - 1); | ||
}, | ||
} | ||
|
||
onResourceAdded() { | ||
chrome.devtools.inspectedWindow.onResourceAdded.addListener((opts) => { | ||
if (opts.type === 'document') { | ||
this.sendIframes([opts.url]); | ||
} | ||
}); | ||
}, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import WebExtension from './web-extension'; | ||
|
||
export default WebExtension.extend({ | ||
name: 'firefox', | ||
}); | ||
export default class Firefox extends WebExtension { | ||
name = 'firefox'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.