Skip to content

Commit

Permalink
chore(esl-media-query): exclude `@exadel/esl/deprecated-4/media-rule-…
Browse files Browse the repository at this point in the history
…list-parse` rule for current snapshot state
  • Loading branch information
ala-n committed Jul 18, 2024
1 parent 693b84d commit 025166e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ rules:
'editorconfig/eol-last': warn
# Require no trailing spaces
'editorconfig/no-trailing-spaces': warn

# Exclude migration rules for 5.0.0-beta.24 revision
'@exadel/esl/deprecated-4/media-rule-list-parse': off
3 changes: 1 addition & 2 deletions eslint/src/rules/4/deprecated.media-rule-list-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import type {ESLintReplacementMethodCfg} from '../../core/deprecated-class-metho

const AVAILABLE_SINCE = '5.0.0-beta.24';
const isActual = lte(ESL_PACKAGE_VERSION, AVAILABLE_SINCE);
const isTest = process.env.NODE_ENV === 'test';

/**
* Rule for deprecated 'parse' method of {@link ESLMediaRuleList}
*/
export default isActual || isTest ?
export default isActual ?
buildRule({
className: 'ESLMediaRuleList',
deprecatedMethod: 'parse',
Expand Down

0 comments on commit 025166e

Please sign in to comment.