Merge pull request #12436 from Snuffleupagus/src-shared-no-var
Enable the ESLint `no-var` rule in the `src/shared/` folder
This commit is contained in:
commit
76e96d4364
10
src/shared/.eslintrc
Normal file
10
src/shared/.eslintrc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"../../.eslintrc"
|
||||||
|
],
|
||||||
|
|
||||||
|
"rules": {
|
||||||
|
// ECMAScript 6
|
||||||
|
"no-var": "error",
|
||||||
|
},
|
||||||
|
}
|
@ -12,7 +12,6 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint no-var: error */
|
|
||||||
|
|
||||||
import { isNodeJS } from "./is_node.js";
|
import { isNodeJS } from "./is_node.js";
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint no-var: error, prefer-const: error */
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
AbortException,
|
AbortException,
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
/* eslint no-var: error */
|
|
||||||
|
|
||||||
import "./compatibility.js";
|
import "./compatibility.js";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user