Skip to content

Commit e29a127

Browse files
committed
Fix deprecation-workflow linting
1 parent 5f5c9ae commit e29a127

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.changeset/tasty-rats-carry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@nullvoxpopuli/eslint-configs': patch
3+
---
4+
5+
in ember's deprecation-worflow.js, allow the "self" global

configs/ember.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ module.exports = (options = {}) => {
1616
[
1717
'{src,app,addon,addon-test-support,tests}/**/*.{gjs,js}',
1818
'tests/dummy/config/deprecation-workflow.js',
19-
'config/deprecation-workflow.js',
2019
],
2120
config.modules.browser.js
2221
),
22+
forFiles(
23+
'config/deprecation-workflow.js',
24+
merge(config.modules.browser.js, {
25+
globals: { self: 'readonly' },
26+
})
27+
),
2328
forFiles(
2429
'{src,app,addon,addon-test-support,tests,types}/**/*.{gts,ts}',
2530
config.modules.browser.ts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
self.deprecationWorkflow = self.deprecationWorkflow || {};
2+
self.deprecationWorkflow.config = {
3+
workflow: [
4+
// @docfyc/ember violates these, but these are "fairly recent"
5+
{ handler: 'silence', matchId: 'ember-modifier.use-modify' },
6+
{ handler: 'silence', matchId: 'ember-modifier.no-args-property' },
7+
],
8+
};

0 commit comments

Comments
 (0)