Skip to content

Commit

Permalink
chore: use @babel/eslint-config-internal (#11026)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jan 17, 2020
1 parent 1a14543 commit 6648d62
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -19,6 +19,7 @@ codemods/*/test/fixtures
codemods/*/test/tmp
packages/babel-preset-env/data/[^(plugin-features|shipped-proposals).js]
packages/babel-preset-env/test/debug-fixtures
packages/babel-preset-env/build
packages/babel-preset-env-standalone/babel-preset-env.js
packages/babel-preset-env-standalone/babel-preset-env.min.js
packages/babel-standalone/babel.js
Expand Down
5 changes: 4 additions & 1 deletion .eslintrc.js
@@ -1,7 +1,10 @@
const path = require("path");

module.exports = {
root: true,
plugins: ["prettier", "@babel/development", "import"],
extends: "babel",
// replace it by `@babel/internal` when `@babel/eslint-config-internal` is published
extends: path.resolve(__dirname, "eslint/babel-eslint-config-internal"),
rules: {
"prettier/prettier": "error",
// TODO: remove after babel-eslint-config-internal is fully integrated into this repository.
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -39,7 +39,6 @@
"derequire": "^2.0.2",
"enhanced-resolve": "^3.0.0",
"eslint": "^6.0.1",
"eslint-config-babel": "^9.0.0",
"eslint-import-resolver-node": "^0.3.2",
"eslint-plugin-flowtype": "^3.8.2",
"eslint-plugin-import": "^2.17.2",
Expand Down
2 changes: 0 additions & 2 deletions packages/babel-parser/src/plugins/estree.js
@@ -1,7 +1,5 @@
// @flow

/* global BigInt */

import { types as tt, TokenType } from "../tokenizer/types";
import type Parser from "../parser";
import type { ExpressionErrors } from "../parser/util";
Expand Down
2 changes: 0 additions & 2 deletions packages/babel-parser/test/helpers/runFixtureTests.js
@@ -1,5 +1,3 @@
/* global BigInt */

import { multiple as getFixtures } from "@babel/helper-fixtures";
import { codeFrameColumns } from "@babel/code-frame";
import fs from "fs";
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Expand Up @@ -4167,11 +4167,6 @@ escope@^3.6.0:
esrecurse "^4.1.0"
estraverse "^4.1.1"

eslint-config-babel@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-9.0.0.tgz#bcfb9e9a1892aff29b8773cb9d2c76639de83c07"
integrity sha512-J7l2KdDKi2y9QifMqXdSIkghrVXr6fcpxegj+803C+4xBfpp0h2LcY9X5N+ivJMBoX6G2PJ/TBTM1Kro0MELBA==

eslint-import-resolver-node@^0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a"
Expand Down

0 comments on commit 6648d62

Please sign in to comment.