mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 20:01:52 +00:00
chore: Start making use of Mozilla's linter, p=#12656
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/require-jsdoc.mjs b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/require-jsdoc.mjs
|
||||
index 87fc32f6a1bdf21a56fb3ce18c767ebbb12c6d67..174fcc3a679ae655c9bce907461f9c3a9030c2a9 100644
|
||||
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/require-jsdoc.mjs
|
||||
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/require-jsdoc.mjs
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
"error",
|
||||
{
|
||||
require: {
|
||||
- ClassDeclaration: true,
|
||||
+ ClassDeclaration: false,
|
||||
FunctionDeclaration: false,
|
||||
},
|
||||
},
|
||||
12
src/tools/lint/ignorefile-yml.patch
Normal file
12
src/tools/lint/ignorefile-yml.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/tools/lint/ignorefile.yml b/tools/lint/ignorefile.yml
|
||||
index 5ae3b282a54c129bb16bca461470154e4a882618..f46c6256037cbef1392f8d070726d45dadac1289 100644
|
||||
--- a/tools/lint/ignorefile.yml
|
||||
+++ b/tools/lint/ignorefile.yml
|
||||
@@ -3,7 +3,6 @@ ignorefile:
|
||||
description: Linter for .gitignore and .hgignore files
|
||||
include:
|
||||
- '.gitignore'
|
||||
- - '.hgignore'
|
||||
support-files:
|
||||
- 'tools/lint/ignorefile**'
|
||||
type: external
|
||||
12
src/tools/lint/rejected-words-yml.patch
Normal file
12
src/tools/lint/rejected-words-yml.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/tools/lint/rejected-words.yml b/tools/lint/rejected-words.yml
|
||||
index d5ca2e05fb335fcd17d1559d5332ec4a43d7cd1d..1f34e8d5e05508fc541bc7aa6a779cd98206032a 100644
|
||||
--- a/tools/lint/rejected-words.yml
|
||||
+++ b/tools/lint/rejected-words.yml
|
||||
@@ -8,7 +8,6 @@ avoid-blacklist-and-whitelist:
|
||||
ignore-case: true
|
||||
# Based on codespell with idl and webidl added.
|
||||
extensions:
|
||||
- - js
|
||||
- mjs
|
||||
- jsx
|
||||
- idl
|
||||
Reference in New Issue
Block a user