Update eslint rules (#1401)

This commit is contained in:
toasted-nutbread 2021-02-15 12:38:45 -05:00 committed by GitHub
parent 750bb67b4a
commit 723a5a5a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,11 @@
"extends": "eslint:recommended", "extends": "eslint:recommended",
"parserOptions": { "parserOptions": {
"ecmaVersion": 8, "ecmaVersion": 8,
"sourceType": "script" "sourceType": "script",
"ecmaFeatures": {
"globalReturn": false,
"impliedStrict": true
}
}, },
"env": { "env": {
"browser": true, "browser": true,
@ -203,6 +207,18 @@
"Intl": "readonly", "Intl": "readonly",
"crypto": "readonly" "crypto": "readonly"
} }
},
{
"files": [
"ext/js/**/*.js"
],
"excludedFiles": [
"ext/js/core.js",
"ext/js/**/*main.js"
],
"rules": {
"no-implicit-globals": "error"
}
} }
] ]
} }