forked from mirrors/gecko-dev
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:
parent
15cfe23b88
commit
b2df945d37
5 changed files with 18 additions and 0 deletions
|
|
@ -7,6 +7,8 @@
|
|||
# - intentionally invalid files
|
||||
# - build directories and other items that we need to ignore
|
||||
|
||||
!.eslintrc.js
|
||||
|
||||
# Always ignore node_modules.
|
||||
**/node_modules/
|
||||
|
||||
|
|
|
|||
10
.eslintrc.js
10
.eslintrc.js
|
|
@ -59,6 +59,16 @@ module.exports = {
|
|||
extends: ["plugin:mozilla/recommended"],
|
||||
plugins: ["mozilla"],
|
||||
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: [
|
||||
"*.html",
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
/* eslint-disable import/no-commonjs */
|
||||
|
||||
module.exports = {
|
||||
rules: {
|
||||
"import/no-commonjs": 2,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
/* eslint-disable import/no-commonjs */
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
mocha: true,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
// Parent config file for all devtools xpcshell files.
|
||||
module.exports = {
|
||||
extends: ["plugin:mozilla/xpcshell-test"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue