Skip to content

Commit

Permalink
Merge pull request #475 from typed-ember/disable_annoying_eslint_rule…
Browse files Browse the repository at this point in the history
…s_in_ts-ember-preview-types

Disable anti-classic ESLint rules for `ts-ember-preview-types` test package
  • Loading branch information
jamescdavis authored Nov 28, 2022
2 parents 8539b25 + 6391f5c commit 6d7bc18
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions test-packages/ts-ember-preview-types/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module.exports = {
},
rules: {
'@typescript-eslint/no-empty-interface': 'off',
'ember/no-classic-components': 'off',
'ember/require-tagless-components': 'off',
},
overrides: [
// node files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line ember/no-classic-components
import Component from '@ember/component';

export interface BarSignature {
Expand All @@ -7,7 +6,6 @@ export interface BarSignature {
};
}

// eslint-disable-next-line ember/require-tagless-components
export default class Bar extends Component<BarSignature> {
name = 'BAR';
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
import Component from '@ember/component';

export interface EmberComponentArgs {
Expand Down
1 change: 0 additions & 1 deletion test-packages/ts-ember-preview-types/app/components/foo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
import Component from '@ember/component';
import { ComponentLike } from '@glint/template';

Expand Down
1 change: 0 additions & 1 deletion test-packages/ts-ember-preview-types/app/components/qux.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
import Component from '@ember/component';

export default class Qux extends Component {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// eslint-disable-next-line ember/no-classic-components
import Component from '@ember/component';

// eslint-disable-next-line ember/require-tagless-components
export default class ParentClass extends Component {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
import { ComponentLike, WithBoundArgs } from '@glint/template';
import Component from '@ember/component';
import EmberComponent from './ember-component';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
import Component from '@ember/component';

export interface BazSignature {
Expand Down

0 comments on commit 6d7bc18

Please sign in to comment.