diff --git a/tests/eslint/eslint.config.js b/tests/eslint/eslint.config.js index dd2974f12b11..e1197d375447 100644 --- a/tests/eslint/eslint.config.js +++ b/tests/eslint/eslint.config.js @@ -63,6 +63,8 @@ const base = { 'no-func-assign': ERROR, // disallow irregular whitespace outside of strings and comments 'no-irregular-whitespace': ERROR, + // disallow `new` operators with global non-constructor functions + 'no-new-native-nonconstructor': ERROR, // disallow the use of object properties of the global object (Math and JSON) as functions 'no-obj-calls': ERROR, // disallow use of Object.prototypes builtins directly @@ -111,6 +113,8 @@ const base = { 'no-empty-function': ERROR, // disallow empty destructuring patterns 'no-empty-pattern': ERROR, + // disallow empty static blocks + 'no-empty-static-block': ERROR, // disallow use of eval() 'no-eval': ERROR, // disallow adding to native types diff --git a/tests/eslint/package-lock.json b/tests/eslint/package-lock.json index 756bfc78bc35..27f0169c0a0a 100644 --- a/tests/eslint/package-lock.json +++ b/tests/eslint/package-lock.json @@ -7,7 +7,7 @@ "name": "tests/eslint", "devDependencies": { "confusing-browser-globals": "^1.0.11", - "eslint": "^8.26.0", + "eslint": "^8.27.0", "eslint-plugin-array-func": "^3.1.7", "eslint-plugin-es-x": "^5.3.1", "eslint-plugin-eslint-comments": "^3.2.0", diff --git a/tests/eslint/package.json b/tests/eslint/package.json index e1cb91d42b49..9994baf1354e 100644 --- a/tests/eslint/package.json +++ b/tests/eslint/package.json @@ -2,7 +2,7 @@ "name": "tests/eslint", "devDependencies": { "confusing-browser-globals": "^1.0.11", - "eslint": "^8.26.0", + "eslint": "^8.27.0", "eslint-plugin-array-func": "^3.1.7", "eslint-plugin-es-x": "^5.3.1", "eslint-plugin-eslint-comments": "^3.2.0",