diff --git a/src/shared/.eslintrc b/src/shared/.eslintrc new file mode 100644 index 0000000000000..ab1c5afdfd0d4 --- /dev/null +++ b/src/shared/.eslintrc @@ -0,0 +1,10 @@ +{ + "extends": [ + "../../.eslintrc" + ], + + "rules": { + // ECMAScript 6 + "no-var": "error", + }, +} diff --git a/src/shared/compatibility.js b/src/shared/compatibility.js index 044997400c98a..8a258fcd32f8a 100644 --- a/src/shared/compatibility.js +++ b/src/shared/compatibility.js @@ -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"; diff --git a/src/shared/message_handler.js b/src/shared/message_handler.js index 0be2961eca47a..9f65d0c0a5190 100644 --- a/src/shared/message_handler.js +++ b/src/shared/message_handler.js @@ -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, diff --git a/src/shared/util.js b/src/shared/util.js index af3be187325ff..9b2b0edf11922 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -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";