Dave Townsend
92b18b36e8
Bug 1257246: Update eslint rules for eslint 2. r=MattN
...
Rename the rules that ESLint 2 no longer supports to the new names. Ignore the
microformat test suite as it is external code.
MozReview-Commit-ID: BgIxFERjHp1
--HG--
extra : rebase_source : 9f02a87f9a843b427b021caa72db9eb766287151
extra : histedit_source : 954abc7e447ac6cdd36290ade7adec626f4fe4fb
2016-04-05 11:33:12 -07:00
Dave Townsend
0a913f73ee
Bug 1245916: Add additional default globals. r=felipe
...
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.
MozReview-Commit-ID: BdWouZGK6d
--HG--
extra : rebase_source : a88116d149af76aa35ee0757b3b51b6f97646ebe
extra : source : 04c1740aa49904a56bd662ee0c8aed69e6f99f8b
2016-02-05 12:12:30 -08:00
Phil Ringnalda
9dc941a05d
Backed out 5 changesets (bug 1245916) for browser-chrome and devtools bustages
...
CLOSED TREE
Backed out changeset 70eca07367f4 (bug 1245916)
Backed out changeset 04c1740aa499 (bug 1245916)
Backed out changeset b554c7ce41c4 (bug 1245916)
Backed out changeset 01675e4828b5 (bug 1245916)
Backed out changeset 878db4caf845 (bug 1245916)
2016-02-15 13:58:27 -08:00
Dave Townsend
6b99474c7c
Bug 1245916: Add additional default globals. r=felipe
...
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.
MozReview-Commit-ID: BdWouZGK6d
--HG--
extra : rebase_source : 13f7319be94e251df7f574f7d239cc31b383fcf8
2016-02-05 12:12:30 -08:00
Dave Townsend
aad445ae43
Bug 1245649: Enable no-nested-ternary. r=mconley
...
--HG--
extra : commitid : 197imYXFNid
extra : rebase_source : ce71773fbd8f57118ba30ab395524d9200c42162
2016-02-03 21:17:16 -08:00
Dave Townsend
7a3b0231b9
Bug 1245649: Enable no-negated-in-lhs, no-native-reassign, no-func-assign and no-labels. r=MattN
...
--HG--
extra : commitid : KgoID6JTBTw
extra : rebase_source : e12b04768b497a335abfbc2be75aae5458cced43
2016-02-03 20:47:08 -08:00
Dave Townsend
c8e4d5fbbc
Bug 1245649: Turn on use-isnan, no-unexpected-multiline, no-octal and no-self-compare. r=MattN
...
--HG--
extra : commitid : oKFzhSyf1r
extra : rebase_source : 0d31d93961cdfb2e5e467e0c7f28edb4ab14a083
2016-02-03 18:21:30 -08:00
Dave Townsend
a9fc7f9380
Bug 1245649: Turn on no-irregular-whitespace and no-mixed-spaces-and-tabs. r=jaws
...
--HG--
extra : commitid : AHmjTpVmCOP
extra : rebase_source : 0034d884816464bff4677afbe96c52fa9dca9072
2016-02-03 18:09:49 -08:00
Dave Townsend
f69aed4e4a
Bug 1245649: Turn on valid-typeof, no-invalid-regexp, no-empty-pattern and no-empty-character-class. r=felipe
...
--HG--
extra : commitid : I0LucuJ8vmG
extra : rebase_source : fb8ba80551c21ac3e9aa51631e32bd81606e79aa
2016-02-03 17:38:13 -08:00
Dave Townsend
e496a11771
Bug 1245649: Turn on no-extra-semi. r=markh
...
--HG--
extra : commitid : HReQFPDOA6x
extra : rebase_source : 303a92f511c3c9dd2d26135975d4dc7c85e823b3
2016-02-03 17:27:36 -08:00
Dave Townsend
33281c75f0
Bug 1245649: Turn on linebreak-style. r=Gijs
...
--HG--
extra : commitid : 7JJb4UFNKj9
extra : rebase_source : 5c30f388ad82d3b73ce7d14c71a48a1f0ed84db7
2016-02-03 17:04:56 -08:00
Dave Townsend
0a6414b898
Bug 1245649: Turn on no-trailing-spaces. r=Gijs
...
--HG--
extra : commitid : F2OWKTvXUO4
extra : rebase_source : ec68631342e0edc59d77b6bab1cdc975ad175327
2016-02-03 14:22:33 -08:00
Dave Townsend
541b00204a
Bug 1245649: Merge browser and toolkit eslint rule settings. r=felipe
...
--HG--
extra : commitid : DrYPQokQp9O
extra : rebase_source : e0bacf124280ecdbeccfc34dbf66fd80f5a9d296
2016-02-03 13:12:18 -08:00
Marco Bonardo
6b2396cfd7
Bug 1235023
- Relax no-multi-spaces Eslint rule with ObjectExpression. r=Gijs
...
--HG--
extra : commitid : 3fACSH0Bv5l
extra : rebase_source : abd1e4cfbd1d67ba4059359e9b2296ad738bdd01
2015-12-30 16:12:17 +01:00
Felipe Gomes
19f1667df6
Bug 1231728 - Enable no-dupe-args, no-dupe-keys, no-duplicate-case, no-obj-calls, no-with rules globally, no-redlecare and consistent-return in browser. r=Mossop
...
--HG--
extra : commitid : Axo4haH85oJ
2015-12-10 14:34:44 -05:00
Marco Bonardo
c4481294ee
Bug 1231661 - followup: readd somehow lost double quotes. r=post-facto
...
--HG--
extra : commitid : 9yLTD3T4bWC
2015-12-10 14:09:38 -05:00
Marco Bonardo
672223aab8
Bug 1231661 - Relax no-multi-spaces Eslint rule. r=Mossop
...
--HG--
extra : commitid : 1EJvx7UZuqf
extra : rebase_source : be2c04fcb78999c35e4aad215ce399dd50c2448f
2015-12-10 10:15:04 -05:00
Marco Bonardo
e0a4edc6c5
Bug 1230581 - Eslint 'no-use-before-define' should be relaxed with 'nofunc'. r=Mossop
...
--HG--
extra : commitid : LvuqWYOZLqX
extra : rebase_source : 4ba0b8a5d1d008174e499e39f6d7a5bf1bb9bdab
2015-12-04 17:35:04 +01:00
Dave Townsend
a1ab52f9e5
Bug 1229097: Fix missed review comment by converting all rules to errors.
...
--HG--
extra : commitid : JsE6aaObHHx
2015-12-02 10:18:30 -08:00
Dave Townsend
fc88dbf721
Bug 1229097: Land an initial .eslintrc for browser and toolkit. r=gijs, r=Standard8
...
Currently all rules are commented out except eol-last.
--HG--
extra : commitid : LNskOtOlV0S
extra : rebase_source : f58910dde85902a33d0c148df19d18244b7202a4
2015-11-30 10:45:45 -08:00