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

feat: eslint@8 support #489

Merged
merged 6 commits into from
Nov 15, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Release

on:
on:
workflow_dispatch:
inputs:
dryRun:
description: 'Do a dry run to preview instead of a real release'
description: "Do a dry run to preview instead of a real release"
required: true
default: 'true'
default: "true"

jobs:
authorize:
authorize:
name: Authorize
runs-on: ubuntu-18.04
steps:
Expand All @@ -26,8 +26,8 @@ jobs:
runs-on: ubuntu-18.04
needs: [authorize]
env:
stable-node-version: "14.x"
e2e-eslint-version: "eslint@7" # Used because e2e and benchmark tests use ESLint's Node.js API class introduced in eslint@7
stable-node-version: "16.x"
e2e-eslint-version: "eslint@8" # Used because e2e and benchmark tests use ESLint's Node.js API class introduced in eslint@7

steps:
- name: Checkout
Expand All @@ -41,7 +41,7 @@ jobs:
- name: node_modules cache
uses: actions/cache@v2
with:
path: '**/node_modules'
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Run tests
run: yarn test && yarn spec:e2e

- name: Release --dry-run # Uses release.config.js
- name: Release --dry-run # Uses release.config.js
if: ${{ github.event.inputs.dryRun == 'true'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 15
node-version: 16

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
16 changes: 8 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
stableNodeVersion: "12.x"
currentNodeVersion: "14.x"
stableNodeVersion: "14.x"
currentNodeVersion: "16.x"
# Used with `eslintVersion` to see if `spec:e2e` and `benchmarks` should run
e2eEslintVersion: "eslint@7"

Expand All @@ -18,7 +18,7 @@ strategy:
linux_node_stable_eslint7:
imageName: "ubuntu-16.04"
nodeVersion: $(stableNodeVersion)
eslintVersion: "eslint@7.3.1"
eslintVersion: "eslint@7.32.0"
linux_node_current_eslint5:
imageName: "ubuntu-16.04"
nodeVersion: $(currentNodeVersion)
Expand All @@ -30,7 +30,7 @@ strategy:
linux_node_current_eslint7:
imageName: "ubuntu-16.04"
nodeVersion: $(currentNodeVersion)
eslintVersion: "eslint@7.3.1"
eslintVersion: "eslint@7.32.0"
mac_node_stable_eslint5:
imageName: "macos-10.14"
nodeVersion: $(stableNodeVersion)
Expand All @@ -42,7 +42,7 @@ strategy:
mac_node_stable_eslint7:
imageName: "macos-10.14"
nodeVersion: $(stableNodeVersion)
eslintVersion: "eslint@7.3.1"
eslintVersion: "eslint@7.32.0"
mac_node_current_eslint5:
imageName: "macos-10.14"
nodeVersion: $(currentNodeVersion)
Expand All @@ -54,7 +54,7 @@ strategy:
mac_node_current_eslint7:
imageName: "macos-10.14"
nodeVersion: $(currentNodeVersion)
eslintVersion: "eslint@7.3.1"
eslintVersion: "eslint@7.32.0"
windows_node_stable_eslint5:
imageName: "vs2017-win2016"
nodeVersion: $(stableNodeVersion)
Expand All @@ -66,7 +66,7 @@ strategy:
windows_node_stable_eslint7:
imageName: "vs2017-win2016"
nodeVersion: $(stableNodeVersion)
eslintVersion: "eslint@7.3.1"
eslintVersion: "eslint@7.32.0"
windows_node_current_eslint5:
imageName: "vs2017-win2016"
nodeVersion: $(currentNodeVersion)
Expand All @@ -78,7 +78,7 @@ strategy:
windows_node_current_eslint7:
imageName: "vs2017-win2016"
nodeVersion: $(currentNodeVersion)
eslintVersion: "eslint@7.3.1"
eslintVersion: "eslint@7.32.0"

pool:
vmImage: $(imageName)
Expand Down
250 changes: 125 additions & 125 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,127 +1,127 @@
{
"name": "eslint-plugin-compat",
"version": "3.13.0",
"description": "Lint browser compatibility of API used",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/amilajack/eslint-plugin-compat.git"
},
"keywords": [
"eslint",
"browser",
"support",
"api",
"lint",
"caniuse",
"kangax"
],
"author": "Amila Welihinda",
"contributors": [
"Amila Welihinda <amilajack@gmail.com> (https://github.com/amilajack)",
"John Tran <jptran318@gmail.com> (https://github.com/jooohhn)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/amilajack/eslint-plugin-compat/issues"
},
"files": [
"lib"
],
"homepage": "https://github.com/amilajack/eslint-plugin-compat#readme",
"scripts": {
"benchmarks": "ts-node-transpile-only test/benchmarks.ts",
"build": "rm -rf lib && babel src --out-dir lib --source-maps inline --extensions '.ts'",
"lint": "eslint --ignore-path .gitignore --ext .js,.ts .",
"spec": "jest --testPathIgnorePatterns test/e2e-repo.spec.ts /benchmarks-tmp",
"spec:e2e": "jest test/e2e-repo.spec.ts",
"test": "yarn lint && yarn build && yarn spec",
"tsc": "tsc",
"version": "yarn build"
},
"jest": {
"testEnvironment": "node",
"testPathIgnorePatterns": [
"/benchmarks-tmp/"
]
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.15.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/benchmark": "^2.1.1",
"@types/browserslist": "^4.15.0",
"@types/caniuse-lite": "^1.0.1",
"@types/eslint": "^7.28.0",
"@types/jest": "^27.0.1",
"@types/lodash.memoize": "^4.1.6",
"@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"benchmark": "^2.1.4",
"browserslist-config-erb": "^0.0.1",
"electron": "^13.2.1",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-bliss": "^5.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-plugin": "^4.0.1",
"eslint-plugin-import": "^2.24.0",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"semantic-release": "^17.4.5",
"simple-git": "^2.44.0",
"ts-node": "^10.2.1",
"typescript": "^4.3.5"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": true
},
"dependencies": {
"@mdn/browser-compat-data": "^3.3.14",
"ast-metadata-inferer": "^0.7.0",
"browserslist": "^4.16.8",
"caniuse-lite": "^1.0.30001251",
"core-js": "^3.16.2",
"find-up": "^5.0.0",
"lodash.memoize": "4.1.2",
"semver": "7.3.5"
},
"peerDependencies": {
"eslint": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
},
"engines": {
"node": ">=9.x"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/eslint-plugin-compat",
"logo": "https://opencollective.com/opencollective/logo.txt"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3,
"targets": {
"node": 10
}
}
],
"@babel/preset-typescript"
]
},
"renovate": {
"extends": [
"bliss"
]
}
"name": "eslint-plugin-compat",
"version": "3.13.0",
"description": "Lint browser compatibility of API used",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/amilajack/eslint-plugin-compat.git"
},
"keywords": [
"eslint",
"browser",
"support",
"api",
"lint",
"caniuse",
"kangax"
],
"author": "Amila Welihinda",
"contributors": [
"Amila Welihinda <amilajack@gmail.com> (https://github.com/amilajack)",
"John Tran <jptran318@gmail.com> (https://github.com/jooohhn)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/amilajack/eslint-plugin-compat/issues"
},
"files": [
"lib"
],
"homepage": "https://github.com/amilajack/eslint-plugin-compat#readme",
"scripts": {
"benchmarks": "ts-node-transpile-only test/benchmarks.ts",
"build": "rm -rf lib && babel src --out-dir lib --source-maps inline --extensions '.ts'",
"lint": "eslint --ignore-path .gitignore --ext .js,.ts .",
"spec": "jest --testPathIgnorePatterns test/e2e-repo.spec.ts /benchmarks-tmp",
"spec:e2e": "jest test/e2e-repo.spec.ts",
"test": "yarn lint && yarn build && yarn spec",
"tsc": "tsc",
"version": "yarn build"
},
"jest": {
"testEnvironment": "node",
"testPathIgnorePatterns": [
"/benchmarks-tmp/"
]
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.15.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/benchmark": "^2.1.1",
"@types/browserslist": "^4.15.0",
"@types/caniuse-lite": "^1.0.1",
"@types/eslint": "^7.28.0",
"@types/jest": "^27.0.1",
"@types/lodash.memoize": "^4.1.6",
"@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"benchmark": "^2.1.4",
"browserslist-config-erb": "^0.0.1",
"electron": "^13.x.x",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-bliss": "^5.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-plugin": "^4.0.1",
"eslint-plugin-import": "^2.24.0",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"semantic-release": "^17.4.5",
"simple-git": "^2.44.0",
"ts-node": "^10.2.1",
"typescript": "^4.3.5"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": true
},
"dependencies": {
"@mdn/browser-compat-data": "^3.3.14",
"ast-metadata-inferer": "^0.7.0",
"browserslist": "^4.16.8",
"caniuse-lite": "^1.0.30001267",
"core-js": "^3.16.2",
"find-up": "^5.0.0",
"lodash.memoize": "4.1.2",
"semver": "7.3.5"
},
"peerDependencies": {
"eslint": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
},
"engines": {
"node": ">=9.x"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/eslint-plugin-compat",
"logo": "https://opencollective.com/opencollective/logo.txt"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3,
"targets": {
"node": 10
}
}
],
"@babel/preset-typescript"
]
},
"renovate": {
"extends": [
"bliss"
]
}
}
Loading