From d56911b88d88ffdccc963f0697ffdf872e7304ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Sat, 16 Nov 2019 01:10:26 +0100 Subject: [PATCH] Reorganize meta files for ESLint packages (#10714) * Move COC and CONTRIBUTING * Add changelog links * Reorganize gitignore and licenses --- .github/ISSUE_TEMPLATE/Bug_report.md | 9 +++++++- .gitignore | 4 ++++ CHANGELOG.md | 4 +++- .../babel-eslint-config-internal/.gitignore | 1 - eslint/babel-eslint-parser/CODE_OF_CONDUCT.md | 3 --- eslint/babel-eslint-parser/CONTRIBUTING.md | 11 --------- eslint/babel-eslint-parser/LICENSE | 22 ------------------ .../.github/main.workflow | 23 ------------------- .../.gitignore | 1 - .../.npmignore | 1 - eslint/babel-eslint-plugin/.gitignore | 1 - scripts/clone-license.sh | 1 + 12 files changed, 16 insertions(+), 65 deletions(-) delete mode 100644 eslint/babel-eslint-config-internal/.gitignore delete mode 100644 eslint/babel-eslint-parser/CODE_OF_CONDUCT.md delete mode 100644 eslint/babel-eslint-parser/CONTRIBUTING.md delete mode 100644 eslint/babel-eslint-parser/LICENSE delete mode 100644 eslint/babel-eslint-plugin-development/.github/main.workflow delete mode 100644 eslint/babel-eslint-plugin-development/.gitignore delete mode 100644 eslint/babel-eslint-plugin/.gitignore diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md index 344922e4702c..90c373003e82 100644 --- a/.github/ISSUE_TEMPLATE/Bug_report.md +++ b/.github/ISSUE_TEMPLATE/Bug_report.md @@ -9,6 +9,11 @@ assignees: '' ## Bug Report + + **Current Behavior** A clear and concise description of the behavior. @@ -22,7 +27,9 @@ var your => (code) => here; **Expected behavior/code** A clear and concise description of what you expected to happen (or code). -**Babel Configuration (.babelrc, package.json, cli command)** +**Babel Configuration (.babelrc, package.json, cli command, .eslintrc)** + +- Filename: `babel.config.js` ```js { diff --git a/.gitignore b/.gitignore index 2f99b017304b..250b2e9a6175 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,7 @@ packages/babel-preset-env-standalone/babel-preset-env.min.js /packages/babel-parser/build .idea/ /.changelog + +/eslint/*/node_modules +/eslint/*/LICENSE +!/packages/babel-eslint-plugin/LICENSE diff --git a/CHANGELOG.md b/CHANGELOG.md index ef3a4efcb9a6..ecf1ad543c9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,9 @@ _Note: Gaps between patch versions are faulty, broken or test releases._ See [CHANGELOG - v4](/.github/CHANGELOG-v4.md), [CHANGELOG - v5](/.github/CHANGELOG-v5.md), and [CHANGELOG - v6](/.github/CHANGELOG-v6.md) for v4.x-v6.x changes. See [CHANGELOG - 6to5](/.github/CHANGELOG-6to5.md) for the pre-4.0.0 version changelog. -See [Babylon's CHANGELOG](packages/babylon/CHANGELOG.md) for the Babylon pre-7.0.0-beta.29 version changelog. +See [Babylon's CHANGELOG](packages/babel-parser/CHANGELOG.md) for the Babylon pre-7.0.0-beta.29 version changelog. +See [`babel-eslint`'s releases](https://github.com/babel/babel-eslint/releases) for the changelog before `@babel/eslint-parser` 7.8.0. +See [`eslint-plugin-babel`'s releases](https://github.com/babel/eslint-plugin-babel/releases) for the changelog before `@babel/eslint-plugin` 7.8.0. diff --git a/eslint/babel-eslint-config-internal/.gitignore b/eslint/babel-eslint-config-internal/.gitignore deleted file mode 100644 index 3c3629e647f5..000000000000 --- a/eslint/babel-eslint-config-internal/.gitignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/eslint/babel-eslint-parser/CODE_OF_CONDUCT.md b/eslint/babel-eslint-parser/CODE_OF_CONDUCT.md deleted file mode 100644 index 1219f9578c90..000000000000 --- a/eslint/babel-eslint-parser/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,3 +0,0 @@ -# Code of Conduct - -This project shares the same code of conduct as [Babel](https://github.com/babel/babel), which can be found [here](https://github.com/babel/babel/blob/master/CODE_OF_CONDUCT.md). diff --git a/eslint/babel-eslint-parser/CONTRIBUTING.md b/eslint/babel-eslint-parser/CONTRIBUTING.md deleted file mode 100644 index c03d5e74e105..000000000000 --- a/eslint/babel-eslint-parser/CONTRIBUTING.md +++ /dev/null @@ -1,11 +0,0 @@ -# Contributing - -Thanks for contributing! - -If you're about to report an issue - please first check if it's already been reported in the [issues page](https://github.com/babel/babel-eslint/issues). - -Also check to see if the latest versions of eslint/babel-eslint still produce the issue. - -Also check out the [Known Issues](https://github.com/babel/babel-eslint#known-issues) section of the README. - -If you are having issues with JSX you might want to check out eslint-plugin-react. If there's an issue with new experimental syntax you might need to report that in eslint-plugin-babel instead. diff --git a/eslint/babel-eslint-parser/LICENSE b/eslint/babel-eslint-parser/LICENSE deleted file mode 100644 index 80194a854b94..000000000000 --- a/eslint/babel-eslint-parser/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2014-2016 Sebastian McKenzie - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/eslint/babel-eslint-plugin-development/.github/main.workflow b/eslint/babel-eslint-plugin-development/.github/main.workflow deleted file mode 100644 index 6bad3e10057e..000000000000 --- a/eslint/babel-eslint-plugin-development/.github/main.workflow +++ /dev/null @@ -1,23 +0,0 @@ -workflow "Build, Lint and Test" { - resolves = ["Test", "Lint"] - on = "push" -} - -action "Build" { - uses = "docker://node:10" - runs = "yarn" -} - -action "Test" { - needs = "Build" - uses = "docker://node:10" - runs = "yarn" - args = "test" -} - -action "Lint" { - needs = "Build" - uses = "docker://node:10" - runs = "yarn" - args = "lint" -} diff --git a/eslint/babel-eslint-plugin-development/.gitignore b/eslint/babel-eslint-plugin-development/.gitignore deleted file mode 100644 index b512c09d4766..000000000000 --- a/eslint/babel-eslint-plugin-development/.gitignore +++ /dev/null @@ -1 +0,0 @@ -node_modules \ No newline at end of file diff --git a/eslint/babel-eslint-plugin-development/.npmignore b/eslint/babel-eslint-plugin-development/.npmignore index 5e0f958edde7..7810671790a7 100644 --- a/eslint/babel-eslint-plugin-development/.npmignore +++ b/eslint/babel-eslint-plugin-development/.npmignore @@ -1,3 +1,2 @@ tests/ -.github/ .* \ No newline at end of file diff --git a/eslint/babel-eslint-plugin/.gitignore b/eslint/babel-eslint-plugin/.gitignore deleted file mode 100644 index 3c3629e647f5..000000000000 --- a/eslint/babel-eslint-plugin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/scripts/clone-license.sh b/scripts/clone-license.sh index e901ca00ba01..8c025097cbcb 100755 --- a/scripts/clone-license.sh +++ b/scripts/clone-license.sh @@ -1,3 +1,4 @@ echo "Cloning LICENSE to babel packages" cat LICENSE ls -db ./packages/*/ | egrep -v '.*packages\/(babel-parser|babel-plugin-transform-object-assign)\/?$' | xargs -n 1 cp LICENSE +ls -db ./eslint/*/ | egrep -v '.*eslint\/(babel-eslint-plugin)\/?$' | xargs -n 1 cp LICENSE