783 Commits

Author SHA1 Message Date
Harrison Shoff
822c0dfdfe [eslint-v2][react] jsx-sort-prop-types => sort-prop-types 2016-02-20 13:10:42 -08:00
Harrison Shoff
07948531dc [eslint-v2][react] set ignoreTranspilerName to false 2016-02-20 13:05:49 -08:00
Harrison Shoff
133fc51e21 [eslint-v2][react] add static-methods to top of sort-comp order 2016-02-20 13:02:15 -08:00
Harrison Shoff
ff0adbe291 [eslint-v2][react] acceptTranspilerName => ignoreTranspilerName 2016-02-20 12:59:00 -08:00
Harrison Shoff
65609373bf [eslint-v2][template strings] add template-curly-spacing rule, fix #716 2016-02-14 18:56:49 -08:00
Harrison Shoff
e1a087fbb1 [eslint-v2] add prefer-rest-params 2016-02-14 18:45:44 -08:00
Harrison Shoff
c5b4f05879 [eslint-v2] add one-var-declaration-per-line 2016-02-14 18:39:32 -08:00
Harrison Shoff
e6cbcf4cc5 [eslint-v2][whitespace] add no-whitespace-before-property rule 2016-02-14 18:35:23 -08:00
Harrison Shoff
92df6357b3 [eslint-v2][variables] add no-self-assign 2016-02-14 18:30:28 -08:00
Harrison Shoff
3762c9add8 [eslint-v2] add no-new-symbol rule 2016-02-14 14:58:28 -08:00
Harrison Shoff
6a03a32915 [eslint-v2][arrow functions] add no-confusing-arrow rule 2016-02-14 14:47:23 -08:00
Harrison Shoff
172dffbb52 [eslint-v2][whitespace] add newline-per-chained-call rule 2016-02-14 11:48:04 -08:00
Harrison Shoff
fbd9c35dd3 [eslint-v2][arrays] add array-callback-return rule 2016-02-14 11:14:38 -08:00
Harrison Shoff
a126d0b85c [eslint-v2] enforce yield-start-spacing, no-unused-labels, no-extra-label 2016-02-14 12:56:03 -08:00
Harrison Shoff
c05b2da9db [eslint-v2] add new rules, disabled:
- `id-blacklist`
 - `no-extra-label`
 - `no-implicit-globals`
 - `no-restricted-imports`
 - `no-unmodified-loop-condition`
 - `no-unused-labels`
 - `sort-imports`
 - `yield-star-spacing`
2016-02-14 02:50:51 -08:00
Harrison Shoff
1cbc628c49 [eslint-v2][constructors] disallow unnecessary constructors 2016-02-13 13:57:38 -08:00
Harrison Shoff
5109c84926 [eslint-v2] fix no-labels rule 2016-02-13 13:41:52 -08:00
Harrison Shoff
75807b9d5e [eslint-v2] no gens, no dup props in obj literal 2016-02-12 11:42:15 -08:00
Harrison Shoff
3aa8c58487 [eslint-v2] fix keyword-spacing style and sorting 2016-02-12 11:36:26 -08:00
Harrison Shoff
4f32315b24 [eslint-v2] ecmaFeatures => parserOptions 2016-02-12 11:36:08 -08:00
Harrison Shoff
dff5099238 [eslint-v2] set es6 env to true 2016-02-12 11:30:11 -08:00
Harrison Shoff
da4213c6dd [eslint-v2] fix no-labels rule 2016-02-12 11:29:20 -08:00
Harrison Shoff
1efb11ca93 [eslint-v2] space-after/before/return/throw/case => keyword-spacing 2016-02-12 11:11:22 -08:00
Harrison Shoff
d49a1ed670 [eslint-v2] no-empty-label => no-labels 2016-02-12 11:10:30 -08:00
Harrison Shoff
1bb72ab9e2 [Deps] update eslint to v2, eslint-plugin-react to v4 2016-02-12 11:09:39 -08:00
Sergey Fursov
4574659833 rearrange comma-dangle rule to match es5/es6 codestyles, fixes #741 2016-02-21 01:31:20 +03:00
Harrison Shoff
aa9add108e [pkg] add harry to contributors 2016-02-12 11:37:39 -08:00
Jordan Harband
8b58d8770c v5.0.1 2016-02-13 11:11:39 -08:00
Jordan Harband
d952efed24 [Fix] eslint peerDep should not include breaking changes. 2016-02-13 11:10:48 -08:00
Jordan Harband
06fab80dfa v5.0.0 2016-02-03 18:29:18 -08:00
Jordan Harband
a8461e0453 [eslint config] [fix] fix npm run lint 2016-02-03 18:28:07 -08:00
Jordan Harband
6f1d92851c [eslint config] [fix] s/no-case-declaration/no-case-declarations/g (from #712) 2016-02-03 18:27:59 -08:00
Jordan Harband
b6920af581 [eslint config] [dev deps] update eslint-plugin-react, react, tape 2016-02-03 17:26:33 -08:00
Jordan Harband
7e15ccf4cb [eslint config] [breaking] disallow unneeded ternary expressions. 2016-02-03 17:25:00 -08:00
Joe Lencioni
38d9b34b27 Avoid lexical declarations in case/default clauses
This commit adds guidance warning people to avoid lexical declarations
in case/default clauses and enables the corresponding ESLint rule.

  http://eslint.org/docs/rules/no-case-declarations.html

We didn't have a section on switch statements yet, so I thought about
starting one. It seemed like it would best fit between section 15
(Comparison Operators & Equality) and section 16 (Blocks), but I didn't
want to mess up all of the following numberings, since people probably
have references to them. I considered adding this near the end to
minimize this effect, but it really seemed to belong near these other
things. I landed on appending it to Section 15 (Comparison Operators &
Equality) and I think it sorta fits there since switch statements are a
related concept.
2016-02-02 16:11:53 -08:00
Jordan Harband
c25dbac620 v4.0.0 2016-01-22 16:27:43 -08:00
Harrison Shoff
0839881fd2 Merge pull request #679 from jshen212/patch-1
Fix case type on line 3 comment
2016-01-22 09:52:14 -08:00
Jordan Harband
396e4611c4 [Tests] use parallelshell to parallelize npm run-scripts 2016-01-16 11:02:04 -08:00
Jordan Harband
ab58d3b68e [Tests] run npm run lint as part of tests; fix errors.
hat tip to https://github.com/airbnb/javascript/pull/678#issuecomment-172017623
2016-01-15 10:31:00 -08:00
Jeff Shen
c778ade841 Fix case type on line 3 comment
Update case type to resemble other comments
2016-01-14 23:30:08 -08:00
Simon Olofsson
54b4dea0f9 Add prefer-arrow-callback to ES6 Rules.
This prefers arrow functions as described in https://github.com/airbnb/javascript#8.1
2016-01-13 17:32:30 +01:00
Jordan Harband
4ef335e242 [eslint config] [breaking] require outer IIFE wrapping; flesh out guide section.
There was lots of discussion [here](https://github.com/airbnb/javascript/issues/21#issuecomment-10203921), but now that we have both a modern build system and an eslint rule requiring terminating semicolons, the concerns with the “crockford” style no longer apply.
2016-01-10 15:11:05 -08:00
Simon Olofsson
c2fd8fbbd6 Add missing ES6 rules to ESLint config.
`arrow-body-style` (8.2) and `prefer-template` (6.4) are described in
the Style Guide.
2016-01-15 10:46:29 +01:00
Jordan Harband
af81beb6b8 v3.1.0 2016-01-07 22:21:21 -08:00
Simen Bekkhus
96ef087bdf Allow multiple stateless components in a single file 2016-01-07 19:22:18 +01:00
Jordan Harband
74561b6449 v3.0.2 2016-01-06 17:06:42 -08:00
Matija Marohnić
8c70a8bc6d Ignore URLs in max-len 2016-01-07 01:11:00 +01:00
Jordan Harband
ed1f484e1f v3.0.1 2016-01-06 11:24:10 -08:00
Jordan Harband
9af944dd05 [eslint config] [fix] because we use babel, keywords should not be quoted. 2016-01-06 09:06:57 -08:00
Jordan Harband
286e845b53 v3.0.0 2016-01-04 14:33:49 -08:00