Enable the ESLint no-var rule in the src/shared/ folder

Previously this rule has been enabled in the `web/` folder, and in select files in the `src/` sub-folders.
In this case, enabling of this rule didn't actually require any further code changes.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/no-var
This commit is contained in:
Jonas Jenwald 2020-10-02 13:04:10 +02:00
parent 88f72d6b1c
commit 2a7d1557f9
4 changed files with 10 additions and 3 deletions

10
src/shared/.eslintrc Normal file
View File

@ -0,0 +1,10 @@
{
"extends": [
"../../.eslintrc"
],
"rules": {
// ECMAScript 6
"no-var": "error",
},
}

View File

@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint no-var: error */
import { isNodeJS } from "./is_node.js";

View File

@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint no-var: error, prefer-const: error */
import {
AbortException,

View File

@ -12,7 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint no-var: error */
import "./compatibility.js";