Merge pull request #10744 from kaicataldo/@babel/eslint-config-internal

Rename babel-eslint-config-internal -> @babel/eslint-config-internal
This commit is contained in:
Kai Cataldo 2019-11-22 17:11:53 -05:00 committed by GitHub
commit 2dfc06e83b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 166 additions and 170 deletions

View File

@ -1,4 +1,4 @@
## eslint-config-babel ## @babel/eslint-config-internal
--- ---
ESLint config for the Babel codebase (originally taken from `eslint-config-kittens`) ESLint config for the Babel codebase (originally taken from `eslint-config-kittens`)

View File

@ -1,11 +1,23 @@
"use strict";
module.exports = { module.exports = {
parser: "babel-eslint", parser: "babel-eslint",
extends: "eslint:recommended", extends: "eslint:recommended",
plugins: ["flowtype"], plugins: ["flowtype"],
parserOptions: { parserOptions: {
ecmaVersion: 2017, ecmaVersion: 2020,
sourceType: "module", sourceType: "module",
}, },
globals: {
// Flow
Iterator: true,
$Keys: true,
},
env: {
node: true,
es2020: true,
browser: true,
},
rules: { rules: {
camelcase: "off", camelcase: "off",
"consistent-return": "off", "consistent-return": "off",
@ -34,14 +46,4 @@ module.exports = {
"flowtype/define-flow-type": "warn", "flowtype/define-flow-type": "warn",
"flowtype/use-flow-type": "warn", "flowtype/use-flow-type": "warn",
}, },
globals: {
// Flow
Iterator: true,
$Keys: true,
},
env: {
node: true,
es6: true,
browser: true,
},
}; };

View File

@ -1,21 +1,15 @@
{ {
"name": "eslint-config-babel", "name": "@babel/eslint-config-internal",
"version": "9.0.0", "version": "0.0.0",
"description": "ESLint config for babel", "description": "The Babel Team's ESLint configuration. Since it's internal, it might not respect semver.",
"author": "Sebastian McKenzie <sebmck@gmail.com>", "author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/", "homepage": "https://babeljs.io/",
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"repository": { "repository": "https://github.com/babel/babel/tree/master/eslint/babel-eslint-config-internal",
"type": "git", "main": "lib/index.js",
"url": "https://github.com/babel/eslint-config-babel"
},
"main": "index.js",
"peerDependencies": { "peerDependencies": {
"babel-eslint": "^10.0.0 || ^11.0.0-0", "babel-eslint": "^10.0.0 || ^11.0.0-0",
"eslint-plugin-flowtype": "^3.0.0" "eslint-plugin-flowtype": "^3.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
} }
} }

File diff suppressed because it is too large Load Diff