diff --git a/src/shared/.eslintrc b/src/shared/.eslintrc new file mode 100644 index 000000000..ab1c5afdf --- /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 044997400..8a258fcd3 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 0be2961ec..9f65d0c0a 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 af3be1873..9b2b0edf1 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";