Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 784aa05

Browse files
committed
Add the escompat rules to the recommended config
1 parent d0a2203 commit 784aa05

File tree

3 files changed

+103
-4
lines changed

3 files changed

+103
-4
lines changed

lib/configs/browser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ module.exports = {
22
env: {
33
browser: true
44
},
5-
plugins: ['github'],
5+
plugins: ['github', 'escompat'],
6+
extends: ['plugin:escompat/recommended', 'plugin:escompat/typescript'],
67
rules: {
8+
'escompat/no-dynamic-imports': 'off',
79
'github/async-currenttarget': 'error',
810
'github/async-preventdefault': 'error',
911
'github/get-attribute': 'error',

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@typescript-eslint/eslint-plugin": "^5.1.0",
2929
"@typescript-eslint/parser": "^5.1.0",
3030
"eslint-config-prettier": ">=8.0.0",
31+
"eslint-plugin-escompat": "^3.1.0",
3132
"eslint-plugin-eslint-comments": "^3.2.0",
3233
"eslint-plugin-filenames": "^1.3.2",
3334
"eslint-plugin-i18n-text": "^1.0.1",

0 commit comments

Comments
 (0)