* Upgrade to ESLint v7 * Upgrade eslint-plugin-import * Update peer deps * Remove max-len from ESLint config * Update tests * Only test babel-eslint-* packages in Node >=10 * Remove babel-eslint * Fix linking in dev * Add comment to Makefile * Fix e2e tests * Add --ignore-engines flag when installing in ESLint packages * fix: convert tt.questionDot to Punctuator * chore: update lockfile Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
49 lines
1.4 KiB
Bash
Executable File
49 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#==============================================================================#
|
|
# SETUP #
|
|
#==============================================================================#
|
|
|
|
# Start in scripts/integration-tests/ even if run from root directory
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
source utils/local-registry.sh
|
|
source utils/cleanup.sh
|
|
|
|
# Echo every command being executed
|
|
set -x
|
|
|
|
# Go to the root of the monorepo
|
|
cd ../..
|
|
|
|
#==============================================================================#
|
|
# TEST #
|
|
#==============================================================================#
|
|
|
|
startLocalRegistry "$PWD"/scripts/integration-tests/verdaccio-config.yml
|
|
|
|
# Install dependencies in individual packages so that we can link them at the top level.
|
|
# todo: remove `-- -- --ignore-engines` in Babel 8
|
|
for package in eslint/*/; do yarn --ignore-engines --cwd $package; done
|
|
|
|
yarn upgrade --scope @babel
|
|
|
|
node -e "\
|
|
var pkg = require('./package.json');\
|
|
pkg.devDependencies['@babel/core'] = '7.0.0';\
|
|
Object.assign(pkg.resolutions, {\
|
|
'@babel/core': '7.0.0',\
|
|
'@babel/helpers': '7.0.0',\
|
|
'@babel/traverse': '7.0.0'\
|
|
});\
|
|
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));\
|
|
"
|
|
|
|
rm yarn.lock
|
|
make bootstrap
|
|
|
|
# Test
|
|
make test-ci
|
|
|
|
cleanup
|