diff --git a/.eslintrc.json b/.eslintrc.json index e3ef083896d9a..0127d38d162e5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -47,6 +47,7 @@ "constructor-super": "error", "dot-notation": "error", "eol-last": "error", + "eqeqeq": "error", "func-call-spacing": "error", "indent": [ "error", "tab", { "SwitchCase": 1 } ], "jsx-a11y/label-has-for": [ "error", { @@ -61,6 +62,7 @@ "lines-around-comment": "off", "no-alert": "error", "no-bitwise": "error", + "no-caller": "error", "no-console": "error", "no-const-assign": "error", "no-debugger": "error", @@ -105,13 +107,14 @@ "no-undef-init": "error", "no-unreachable": "error", "no-unsafe-negation": "error", + "no-unused-expressions": "error", + "no-unused-vars": "error", "no-useless-computed-key": "error", "no-useless-constructor": "error", "no-useless-return": "error", "no-var": "error", "no-whitespace-before-property": "error", "object-curly-spacing": [ "error", "always" ], - "one-var": "off", "padded-blocks": [ "error", "never" ], "prefer-const": "error", "quote-props": [ "error", "as-needed" ], diff --git a/editor/modes/visual-editor/block-list.js b/editor/modes/visual-editor/block-list.js index a6e10d7c697e4..0ff71e0649a29 100644 --- a/editor/modes/visual-editor/block-list.js +++ b/editor/modes/visual-editor/block-list.js @@ -15,7 +15,7 @@ import { * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { Component, findDOMNode } from '@wordpress/element'; +import { Component } from '@wordpress/element'; import { serialize, getDefaultBlockName, createBlock } from '@wordpress/blocks'; /**