forked from mirrors/gecko-dev
Bug 1863400 - Part 8: Update stylelint, eslint, prettierignore, hgignore, gitignore and Generated.txt rules for aboutwelcome to match newtab. r=pdahiya
This also re-runs npm install on browser/components/aboutwelcome to make sure everything in package-lock.json is up-to-date. Depends on D193122 Differential Revision: https://phabricator.services.mozilla.com/D193228
This commit is contained in:
parent
8f2ec8be56
commit
37abcde317
9 changed files with 6507 additions and 3863 deletions
|
|
@ -232,6 +232,7 @@ module.exports = {
|
||||||
"browser/base/content/**",
|
"browser/base/content/**",
|
||||||
"browser/components/Browser*",
|
"browser/components/Browser*",
|
||||||
"browser/components/aboutlogins/**",
|
"browser/components/aboutlogins/**",
|
||||||
|
"browser/components/aboutwelcome/**",
|
||||||
"browser/components/attribution/**",
|
"browser/components/attribution/**",
|
||||||
"browser/components/customizableui/**",
|
"browser/components/customizableui/**",
|
||||||
"browser/components/downloads/**",
|
"browser/components/downloads/**",
|
||||||
|
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -59,6 +59,9 @@ security/manager/.nss.checkout
|
||||||
# Ignore newtab component build assets
|
# Ignore newtab component build assets
|
||||||
browser/components/newtab/logs/
|
browser/components/newtab/logs/
|
||||||
|
|
||||||
|
# Ignore about:welcome component build assets
|
||||||
|
browser/components/aboutwelcome/logs/
|
||||||
|
|
||||||
# Ignore ASRouter generated test files
|
# Ignore ASRouter generated test files
|
||||||
browser/components/newtab/content-src/asrouter/schemas/corpus/CFRMessageProvider.messages.json
|
browser/components/newtab/content-src/asrouter/schemas/corpus/CFRMessageProvider.messages.json
|
||||||
browser/components/newtab/content-src/asrouter/schemas/corpus/OnboardingMessageProvider.messages.json
|
browser/components/newtab/content-src/asrouter/schemas/corpus/OnboardingMessageProvider.messages.json
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,9 @@ compile_commands\.json
|
||||||
# Ignore newtab component build assets
|
# Ignore newtab component build assets
|
||||||
^browser/components/newtab/logs/
|
^browser/components/newtab/logs/
|
||||||
|
|
||||||
|
# Ignore about:welcome build assets
|
||||||
|
^browser/components/aboutwelcome/logs/
|
||||||
|
|
||||||
# Ignore ASRouter generated test files
|
# Ignore ASRouter generated test files
|
||||||
^browser/components/newtab/content-src/asrouter/schemas/corpus/CFRMessageProvider.messages.json
|
^browser/components/newtab/content-src/asrouter/schemas/corpus/CFRMessageProvider.messages.json
|
||||||
^browser/components/newtab/content-src/asrouter/schemas/corpus/OnboardingMessageProvider.messages.json
|
^browser/components/newtab/content-src/asrouter/schemas/corpus/OnboardingMessageProvider.messages.json
|
||||||
|
|
@ -193,6 +196,7 @@ _OPT\.OBJ/
|
||||||
^tools/browsertime/node_modules/
|
^tools/browsertime/node_modules/
|
||||||
^tools/lint/eslint/eslint-plugin-mozilla/node_modules/
|
^tools/lint/eslint/eslint-plugin-mozilla/node_modules/
|
||||||
^browser/components/newtab/node_modules/
|
^browser/components/newtab/node_modules/
|
||||||
|
^browser/components/aboutwelcome/node_modules/
|
||||||
^tools/esmify/node_modules/
|
^tools/esmify/node_modules/
|
||||||
|
|
||||||
# Ignore talos virtualenv and tp5n files.
|
# Ignore talos virtualenv and tp5n files.
|
||||||
|
|
|
||||||
|
|
@ -1032,6 +1032,9 @@ browser/components/pocket/content/panels/js/main.bundle.js
|
||||||
browser/components/newtab/data/
|
browser/components/newtab/data/
|
||||||
browser/components/newtab/logs/
|
browser/components/newtab/logs/
|
||||||
|
|
||||||
|
# Ignore about:welcome files
|
||||||
|
browser/components/aboutwelcome/logs/
|
||||||
|
|
||||||
# The only file in browser/locales/ is pre-processed.
|
# The only file in browser/locales/ is pre-processed.
|
||||||
browser/locales/
|
browser/locales/
|
||||||
# Generated data files
|
# Generated data files
|
||||||
|
|
@ -1443,6 +1446,7 @@ xpcom/io/crc32c.c
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
.gradle/
|
.gradle/
|
||||||
|
browser/components/aboutwelcome/content/aboutwelcome.bundle.js
|
||||||
browser/components/newtab/content-src/asrouter/schemas/BackgroundTaskMessagingExperiment.schema.json
|
browser/components/newtab/content-src/asrouter/schemas/BackgroundTaskMessagingExperiment.schema.json
|
||||||
browser/components/newtab/content-src/asrouter/schemas/MessagingExperiment.schema.json
|
browser/components/newtab/content-src/asrouter/schemas/MessagingExperiment.schema.json
|
||||||
browser/components/newtab/logs/
|
browser/components/newtab/logs/
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ obj*/
|
||||||
# These files are generated in some way.
|
# These files are generated in some way.
|
||||||
browser/components/pocket/content/panels/css/main.compiled.css
|
browser/components/pocket/content/panels/css/main.compiled.css
|
||||||
browser/components/newtab/**/*.css
|
browser/components/newtab/**/*.css
|
||||||
|
browser/components/aboutwelcome/**/*.css
|
||||||
|
|
||||||
# Note that the debugger has its own stylelint setup, but that currently
|
# Note that the debugger has its own stylelint setup, but that currently
|
||||||
# produces errors. Bug 1831302 tracks making this better
|
# produces errors. Bug 1831302 tracks making this better
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ module.exports = {
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
// Only mark the files as modules which are actually modules.
|
// Only mark the files as modules which are actually modules.
|
||||||
files: ["content-src/**"],
|
files: ["content-src/**", "tests/unit/**"],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: "module",
|
sourceType: "module",
|
||||||
},
|
},
|
||||||
|
|
@ -42,7 +42,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ["./*.js", "content-src/**"],
|
files: ["./*.js", "content-src/**", "tests/unit/**"],
|
||||||
env: {
|
env: {
|
||||||
node: true,
|
node: true,
|
||||||
},
|
},
|
||||||
|
|
@ -50,13 +50,13 @@ module.exports = {
|
||||||
{
|
{
|
||||||
// Use a configuration that's appropriate for modules, workers and
|
// Use a configuration that's appropriate for modules, workers and
|
||||||
// non-production files.
|
// non-production files.
|
||||||
files: ["tests/**"],
|
files: ["modules/*.jsm", "tests/**"],
|
||||||
rules: {
|
rules: {
|
||||||
"no-implicit-globals": "off",
|
"no-implicit-globals": "off",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ["content-src/**"],
|
files: ["content-src/**", "tests/unit/**"],
|
||||||
rules: {
|
rules: {
|
||||||
// Disallow commonjs in these directories.
|
// Disallow commonjs in these directories.
|
||||||
"import/no-commonjs": 2,
|
"import/no-commonjs": 2,
|
||||||
|
|
@ -64,6 +64,19 @@ module.exports = {
|
||||||
"react/jsx-no-bind": 0,
|
"react/jsx-no-bind": 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// These tests simulate the browser environment.
|
||||||
|
files: "tests/unit/**",
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
mocha: true,
|
||||||
|
},
|
||||||
|
globals: {
|
||||||
|
assert: true,
|
||||||
|
chai: true,
|
||||||
|
sinon: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
files: "tests/**",
|
files: "tests/**",
|
||||||
rules: {
|
rules: {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
4137
browser/components/aboutwelcome/package-lock.json
generated
4137
browser/components/aboutwelcome/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,7 @@
|
||||||
.gradle/
|
.gradle/
|
||||||
|
browser/components/aboutwelcome/content/aboutwelcome.bundle.js
|
||||||
|
browser/components/aboutwelcome/logs/
|
||||||
|
browser/components/aboutwelcome/node_modules/
|
||||||
browser/components/newtab/content-src/asrouter/schemas/BackgroundTaskMessagingExperiment.schema.json
|
browser/components/newtab/content-src/asrouter/schemas/BackgroundTaskMessagingExperiment.schema.json
|
||||||
browser/components/newtab/content-src/asrouter/schemas/MessagingExperiment.schema.json
|
browser/components/newtab/content-src/asrouter/schemas/MessagingExperiment.schema.json
|
||||||
browser/components/newtab/logs/
|
browser/components/newtab/logs/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue