Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename babel-eslint-config-internal -> @babel/eslint-config-internal #10744

Merged
merged 4 commits into from Nov 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,
kaicataldo marked this conversation as resolved.
Show resolved Hide resolved
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"
}
}