Skip to content

Commit

Permalink
Merge pull request #10744 from kaicataldo/@babel/eslint-config-internal
Browse files Browse the repository at this point in the history
Rename babel-eslint-config-internal -> @babel/eslint-config-internal
  • Loading branch information
kaicataldo committed Nov 22, 2019
2 parents 74fb914 + 2c40b8c commit 2dfc06e
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 170 deletions.
2 changes: 1 addition & 1 deletion eslint/babel-eslint-config-internal/README.md
@@ -1,4 +1,4 @@
## eslint-config-babel
## @babel/eslint-config-internal
---

ESLint config for the Babel codebase (originally taken from `eslint-config-kittens`)
24 changes: 13 additions & 11 deletions eslint/babel-eslint-config-internal/index.js
@@ -1,11 +1,23 @@
"use strict";

module.exports = {
parser: "babel-eslint",
extends: "eslint:recommended",
plugins: ["flowtype"],
parserOptions: {
ecmaVersion: 2017,
ecmaVersion: 2020,
sourceType: "module",
},
globals: {
// Flow
Iterator: true,
$Keys: true,
},
env: {
node: true,
es2020: true,
browser: true,
},
rules: {
camelcase: "off",
"consistent-return": "off",
Expand Down Expand Up @@ -34,14 +46,4 @@ module.exports = {
"flowtype/define-flow-type": "warn",
"flowtype/use-flow-type": "warn",
},
globals: {
// Flow
Iterator: true,
$Keys: true,
},
env: {
node: true,
es6: true,
browser: true,
},
};
16 changes: 5 additions & 11 deletions eslint/babel-eslint-config-internal/package.json
@@ -1,21 +1,15 @@
{
"name": "eslint-config-babel",
"version": "9.0.0",
"description": "ESLint config for babel",
"name": "@babel/eslint-config-internal",
"version": "0.0.0",
"description": "The Babel Team's ESLint configuration. Since it's internal, it might not respect semver.",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/babel/eslint-config-babel"
},
"main": "index.js",
"repository": "https://github.com/babel/babel/tree/master/eslint/babel-eslint-config-internal",
"main": "lib/index.js",
"peerDependencies": {
"babel-eslint": "^10.0.0 || ^11.0.0-0",
"eslint-plugin-flowtype": "^3.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}

0 comments on commit 2dfc06e

Please sign in to comment.