Skip to content

Commit d2aaaef

Browse files
authored
Merge pull request #325 from github/update-eslint-plugin-escompat
Update eslint plugin escompat
2 parents 60d8ecc + 22e10ae commit d2aaaef

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

lib/configs/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
browser: true
44
},
55
plugins: ['github', 'escompat'],
6-
extends: ['plugin:escompat/recommended', 'plugin:escompat/typescript'],
6+
extends: ['plugin:escompat/recommended'],
77
rules: {
88
'escompat/no-dynamic-imports': 'off',
99
'github/async-currenttarget': 'error',

lib/configs/typescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
2+
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:escompat/typescript-2020'],
33
parser: '@typescript-eslint/parser',
44
plugins: ['@typescript-eslint', 'github'],
55
rules: {

package-lock.json

Lines changed: 18 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@
2525
},
2626
"homepage": "https://github.com/github/eslint-plugin-github#readme",
2727
"dependencies": {
28+
"@github/browserslist-config": "^1.0.0",
2829
"@typescript-eslint/eslint-plugin": "^5.1.0",
2930
"@typescript-eslint/parser": "^5.1.0",
3031
"eslint-config-prettier": ">=8.0.0",
31-
"eslint-plugin-escompat": "^3.1.0",
32+
"eslint-plugin-escompat": "^3.3.3",
3233
"eslint-plugin-eslint-comments": "^3.2.0",
3334
"eslint-plugin-filenames": "^1.3.2",
3435
"eslint-plugin-i18n-text": "^1.0.1",
@@ -42,6 +43,7 @@
4243
"svg-element-attributes": "^1.3.1"
4344
},
4445
"prettier": "@github/prettier-config",
46+
"browserslist": "@github/browserslist-config",
4547
"peerDependencies": {
4648
"eslint": "^8.0.1"
4749
},

0 commit comments

Comments
 (0)