Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
robatwilliams committed Mar 8, 2024
1 parent 433da69 commit a3429f5
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eslint from 'eslint';
import esPlugin from 'eslint-plugin-es-x';
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import { noRestrictedSyntaxPrototypeMethod } from './ruleOptionsUtil.js';

const coreRules = new eslint.Linter().getRules();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eslint from 'eslint';
import esPlugin from 'eslint-plugin-es-x';
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import { noRestrictedSyntaxPrototypeMethod } from './ruleOptionsUtil.js';

const coreRules = new eslint.Linter().getRules();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eslint from 'eslint';
import esPlugin from 'eslint-plugin-es-x';
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import { noRestrictedSyntaxPrototypeMethod } from './ruleOptionsUtil.js';

const coreRules = new eslint.Linter().getRules();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eslint from 'eslint';
import esPlugin from 'eslint-plugin-es-x';
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import { noRestrictedSyntaxPrototypeMethod } from './ruleOptionsUtil.js';

const coreRules = new eslint.Linter().getRules();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eslint from 'eslint';
import esPlugin from 'eslint-plugin-es-x';
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import { noRestrictedSyntaxPrototypeMethod } from './ruleOptionsUtil.js';

const coreRules = new eslint.Linter().getRules();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import eslint from 'eslint';
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import esPlugin from 'eslint-plugin-es-x';
import { noRestrictedSyntaxPrototypeMethod } from './ruleOptionsUtil.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import esPlugin from 'eslint-plugin-es-x';

export default [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import esPlugin from 'eslint-plugin-es-x';

export default [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import browserslist from 'browserslist';
import _ from 'lodash';
import compatData from '@mdn/browser-compat-data';
// Import assertions aren't yet stage 4 so aren't supported by ESLint
import compatData from '@mdn/browser-compat-data/forLegacyNode';
import compareVersions from './compareVersions.js';

export default function targetRuntimes(overrideBrowserslist, browserslistOptions) {
Expand Down

0 comments on commit a3429f5

Please sign in to comment.