Bug 1897898 - Separate out ESLint rule rollouts configurations to a separate module. r=frontend-codestyle-reviewers,Gijs

Differential Revision: https://phabricator.services.mozilla.com/D210992
This commit is contained in:
Mark Banner 2024-05-21 13:38:01 +00:00
parent c9e4de7a6b
commit c01122d19b
6 changed files with 2191 additions and 2170 deletions

2177
.eslintrc-rollouts.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -4,8 +4,6 @@
"use strict"; "use strict";
/* eslint-env node */
// The `*testPaths` defined below for test paths are the main path formats we // The `*testPaths` defined below for test paths are the main path formats we
// prefer to support for tests as they are commonly used across the tree. // prefer to support for tests as they are commonly used across the tree.

File diff suppressed because it is too large Load diff

View file

@ -82,9 +82,9 @@ eslint-plugin-mozilla is used by a few projects outside of mozilla-central,
so they will pick up the rule addition when eslint-plugin-mozilla is next released. so they will pick up the rule addition when eslint-plugin-mozilla is next released.
Where existing failures are disabled/turned to warnings, these should be handled Where existing failures are disabled/turned to warnings, these should be handled
in the :searchfox:`top-level .eslintrc.js file <.eslintrc.js>`, and follow-up bugs in the :searchfox:`top-level .eslintrc-rollouts.js file <..eslintrc-rollouts.js>`,
must be filed before landing and referenced in the appropriate sections. The and follow-up bugs must be filed before landing and referenced in the appropriate
follow-up bugs should block sections. The follow-up bugs should block
`bug 1596191 <https://bugzilla.mozilla.org/show_bug.cgi?id=1596191>`_ `bug 1596191 <https://bugzilla.mozilla.org/show_bug.cgi?id=1596191>`_
Adding a New ESLint Plugin Adding a New ESLint Plugin

View file

@ -8,7 +8,7 @@ eslint:
extensions: ['mjs', 'js', 'jsm', 'json', 'jsx', 'html', 'sjs', 'xhtml'] extensions: ['mjs', 'js', 'jsm', 'json', 'jsx', 'html', 'sjs', 'xhtml']
support-files: support-files:
- '**/.eslintrc.js' - '**/.eslintrc.js'
- '.eslintrc-test-paths.js' - '.eslintrc*.js'
- '.eslintignore' - '.eslintignore'
- 'tools/lint/eslint/**' - 'tools/lint/eslint/**'
# Files that can influence global variables # Files that can influence global variables

View file

@ -30,7 +30,7 @@ avoid-blacklist-and-whitelist:
- java - java
- kt - kt
exclude: exclude:
- '**/.eslintrc.js' - '**/.eslintrc-rollouts.js'
- browser/app/profile/firefox.js - browser/app/profile/firefox.js
- browser/app/winlauncher/LauncherProcessWin.cpp - browser/app/winlauncher/LauncherProcessWin.cpp
- browser/base/content/browser.js - browser/base/content/browser.js