Sylvestre Ledru
be18fd4dba
Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr
...
Differential Revision: https://phabricator.services.mozilla.com/D67319
--HG--
extra : moz-landing-system : lando
2020-03-19 13:47:51 +00:00
Mark Banner
15cfe23b88
Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D65703
--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Victor Porof
b5a4cb3848
Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D34535
--HG--
extra : source : 74ed7ee773393d305c4e948a57a1b1e32b1f12e8
extra : intermediate-source : 403d0757d61683e0a85d0bb07768eb39fbd0af72
2019-06-28 17:14:01 +02:00
Mark Banner
53b3788bba
Bug 1415265 - Implement a central configuration for setting ESLint environments for test directories. r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D23849
--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:02 +00:00
Ian Moody
167f623a3e
Bug 1246594 - Enable ESLint rule no-throw-literal by default. r=Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D24088
--HG--
extra : moz-landing-system : lando
2019-03-19 22:02:42 +00:00
Myk Melez
25349d2601
Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D17526
--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Coroiu Cristina
83cdfe7284
Merge mozilla-central to inbound a=merge on a CLOSED TREE
2018-08-31 19:35:06 +03:00
Mark Banner
afb520e82a
Bug 1486739 - Enable ESLint rule comma-dangle for browser/, services/, taskcluster/ and toolkit/ directories. r=mossop
...
Enable globally by default by blacklist directories outside of the ones we're enabling. Remove now unnecessary existing configurations.
Differential Revision: https://phabricator.services.mozilla.com/D4440
--HG--
extra : moz-landing-system : lando
2018-08-31 06:06:08 +00:00
Dave Townsend
e63bb1c465
Bug 1487246: Enable the eslint no-sequences rule. r=Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D4681
--HG--
extra : rebase_source : ae253571d7d47c4a113a98a8b7c29bf712a0d764
2018-08-29 16:15:33 -07:00
Mark Banner
0722fe3ee3
Bug 1434869 - Automatically mark EXPORTED_SYMBOLS as used, so that we don't need to ignore it in ESLint's no-unused-vars rule. r=florian.
...
MozReview-Commit-ID: IVMeZHGdVBk
--HG--
extra : rebase_source : 0705e96256baf6dc82811297058aa1d820b2f119
2018-03-06 12:01:59 +00:00
Mark Banner
6afe18b30a
Bug 1440379 - Tidy up ESlint no-unused-vars definitions wrt Ci/Cu/Cr/Cc usage for varsIgnorePattern. r=florian
...
MozReview-Commit-ID: HmliR8iNRDq
--HG--
extra : rebase_source : 483ae0b54b9e781cceac2accdfb2255d725ace6a
2018-02-22 16:55:36 +00:00
Florian Quèze
682b1ec3b2
Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8.
2018-02-23 20:50:01 +01:00
Mark Banner
2fd2fd7199
Bug 1436389 - Update complexity rules to adapt for the algorithm in the new ESLint. r=mossop
...
MozReview-Commit-ID: 1LlfamNvBEM
--HG--
extra : rebase_source : 8e41e5a5f67bfd43444fde25287cb3709452a349
2018-02-07 16:16:09 +00:00
Sam R-T, Joseph F, Robin H
b6f7cc8e46
Bug 1432062 - Require dangling commas via eslint for the migration component. r=MattN
2018-01-22 15:22:35 -08:00
Dan Banner
b2e847755c
Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
...
MozReview-Commit-ID: GrlcOI9K2hJ
--HG--
extra : rebase_source : 6574cf3c67eb11733ffd9999c260f71c8551abc4
2017-05-28 19:57:46 +01:00
Mark Banner
c62d0c64f8
Bug 1371293 - Upgrade ESLint to version 4.8.0, configuration changes. r=mossop
...
MozReview-Commit-ID: 2YHYOLTtqxu
--HG--
extra : rebase_source : 7bbc673bb72d546e1fca63227d54b6607a4ab33e
2017-10-09 10:54:16 +01:00
Rajesh Kathiriya
48e6bc2124
Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
...
MozReview-Commit-ID: FadrI2li43G
--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Sebastian Hengst
804a36e668
Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout
2017-07-31 14:44:34 +02:00
Rajesh Kathiriya
22dfa54ef4
Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
...
MozReview-Commit-ID: FadrI2li43G
--HG--
extra : rebase_source : 5992bdde34bcc2421350433bc8c1e498a6bba848
2017-07-25 23:45:41 +05:30
Rajesh Kathiriya
fafb858b26
Bug 1370225 - Enabled the ESLint comma-style rule across mozilla-central. r=standard8
...
MozReview-Commit-ID: 9OhLgBpYS4L
--HG--
extra : rebase_source : 5155e715934e7acd2ffadb4856eb91f481cbf56c
2017-06-15 18:24:17 +01:00
Rajesh Kathiriya
6d3eb2c851
Bug 1370232 - Enabled the ESLint no-unneeded-ternary rule across mozilla-central. r=standard8
...
MozReview-Commit-ID: AH9ArRkjh78
--HG--
extra : rebase_source : bdd4c4f8a4779ea373479a9cba772c036e00e816
2017-06-13 00:23:54 +05:30
Mark Banner
403075400a
Bug 1371292 - Clean up more ESLint global definitions in configuration files in toolkit/ and browser/. r=mossop
...
MozReview-Commit-ID: 5KC23kzaCFN
--HG--
extra : rebase_source : 6a7541b5ffe85d275bc16194c155ad43f93d52ae
2017-06-08 10:59:12 +01:00
Mark Banner
c93c2a1504
Bug 1370240 - Enable the ESLint no-control-regex rule across mozilla-central. r=mossop
...
MozReview-Commit-ID: IN7YMk7yhAO
--HG--
extra : rebase_source : be0a9cae6eae14d4f097eced2e231a96c89c9c47
2017-06-05 15:43:09 +01:00
Dan Banner
ea09f270ab
Bug 1368041 - Enable no-array-constructor across mozilla-central r=standard8
...
MozReview-Commit-ID: EXJNufdKKhJ
--HG--
extra : rebase_source : 66d17c7981c4b0987c482ce092b25990b42c07fb
2017-05-27 15:17:29 +01:00
tiago
95d9608ba4
Bug 1367198 - Remove duplicate ESLint rule definitions from various .eslintrc.js files. r=standard8
...
MozReview-Commit-ID: AUz5l7XPfwY
--HG--
extra : rebase_source : 2cb4758cdf51765fc61fbc6795fcd7bc85ef67bf
2017-05-24 13:55:24 -03:00
Chris Peterson
c0d7dd79dd
Bug 1358041 - Hoist some eslint rules from browser/ subdirectories to browser/.eslintrc. r=standard8
...
All of browser/ JS code passes these eslint rules, so we can hoist them from subdirectories' .eslintrc to the common browser/.eslintrc.
MozReview-Commit-ID: GMidHq0UIlH
--HG--
extra : rebase_source : 802631e372bbf6c256f5236deb275cb05fd73894
extra : histedit_source : a87b58345ff471b2504244d90c4ea1aa149a3c86
2017-04-19 16:53:43 -07:00
Dan Banner
7dd3004039
Bug 1354512 - De-duplicate already ESLint recommended rules in browser/components/migration/. r=standard8
...
MozReview-Commit-ID: 66hJ6BvTrzY
--HG--
extra : rebase_source : d7b6edea33ef88538f5f89fa7c10e4af2f1bdf04
2017-04-13 11:57:08 +01:00
Mark Banner
585bf398ea
Bug 1342459 - Enable no-undef on browser/base, and clean up unnecessary no-undef references. r=mossop
...
MozReview-Commit-ID: KVrAnAjMD1E
--HG--
extra : rebase_source : 7a9651c055e2c6e959d42d08e5be9de2e2265346
2017-04-03 11:46:56 +01:00
Mark Banner
b792bfe15f
Bug 1347884 - Enable eslint cyclomatic complexity rule at existing levels. r=jaws
...
Enable the rule with the maximums set to avoid current failures, except for test_form_autocomplete which is very
high (82). The levels are set per major area, with existing warnings being changed to errors.
MozReview-Commit-ID: 37M6Ry0Mr1c
--HG--
extra : rebase_source : 07e6864bdd945eb322499912dd702638430c0365
2017-03-16 11:04:39 +00:00
Jared Wein
4e35ed6e8a
Bug 1326479 - Enable more options for the 'indent' rule. r=Gijs
...
MozReview-Commit-ID: EuxayyLNHNt
--HG--
extra : rebase_source : f13b679204d89861e608adcb774a32cf8a960e43
2016-12-30 18:32:56 -05:00
Jared Wein
5bb7b57b66
Bug 1316096 - Change eslint configuration to use string values for rules instead of integers, making it easier for others who are reading the rules to know if a rule is set to off, warn, or error. r=mossop
...
MozReview-Commit-ID: 2Xuj5nxuQdO
--HG--
extra : rebase_source : fab5c4903b47d48080ff3c07825440e12f718698
2016-11-08 15:14:19 -05:00
Gijs Kruitbosch
8d23ab9355
Bug 1311043 - make eslint much more strict in browser/components/migration/, and fix issues, r=mikedeboer
...
MozReview-Commit-ID: RXO68w3Kv3
--HG--
extra : rebase_source : b25a1976f2be89f12c2ad14e649270bacd17d174
2016-10-18 16:03:06 +01:00