Bug 1620542 - Turn on linting of .eslintrc.js files. r=mossop

Differential Revision: https://phabricator.services.mozilla.com/D65704

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2020-03-07 09:30:44 +00:00
parent 15cfe23b88
commit b2df945d37
5 changed files with 18 additions and 0 deletions

View file

@ -7,6 +7,8 @@
# - intentionally invalid files # - intentionally invalid files
# - build directories and other items that we need to ignore # - build directories and other items that we need to ignore
!.eslintrc.js
# Always ignore node_modules. # Always ignore node_modules.
**/node_modules/ **/node_modules/

View file

@ -59,6 +59,16 @@ module.exports = {
extends: ["plugin:mozilla/recommended"], extends: ["plugin:mozilla/recommended"],
plugins: ["mozilla"], plugins: ["mozilla"],
overrides: [ overrides: [
{
// All .eslintrc.js files are in the node environment, so turn that
// on here.
// https://github.com/eslint/eslint/issues/13008
files: [".eslintrc.js"],
env: {
node: true,
browser: false,
},
},
{ {
files: [ files: [
"*.html", "*.html",

View file

@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
module.exports = { module.exports = {
rules: { rules: {
"import/no-commonjs": 2, "import/no-commonjs": 2,

View file

@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
module.exports = { module.exports = {
env: { env: {
mocha: true, mocha: true,

View file

@ -1,3 +1,5 @@
"use strict";
// Parent config file for all devtools xpcshell files. // Parent config file for all devtools xpcshell files.
module.exports = { module.exports = {
extends: ["plugin:mozilla/xpcshell-test"], extends: ["plugin:mozilla/xpcshell-test"],