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
Jordan Harband
81c58472b6
Fix a bug introduced in f2afce75e9 / #581
2016-01-04 14:33:49 -08:00
Jordan Harband
4cdc3fe483
[eslint config] [breaking] enable quote-props rule.
2015-12-22 09:49:25 -08:00
Gergo Erdosi
8e54961aeb
Fix max-len rule definition
...
The current definition is valid only in eslint@2.x.x, but this package has a dependency on eslint@1.10 .3 which doesn't have all those options yet.
2015-12-31 01:39:07 +01:00
Jordan Harband
8c241be003
Merge pull request #637 from evenfrost/master
...
[eslint config] Permit strict mode in "legacy" config
2015-12-24 08:35:26 -08:00
Christopher Banh
e2e4724fbb
Address comments in #639
...
[eslint] Add comment above `max-len` rule with link to its docs
[eslint] Change tab width for `max-len` rule from 4 to 2
[eslint] Replace double quotes around `max-len` with single quotes
[eslint] Use object form of `max-len` and include all of the options
2015-12-24 02:08:16 -08:00
Christopher Banh
69d3327362
Enable ESLint rule on limiting maxiumum length of line (max-len)
...
I moved the rule from legacy.js to style.js and enabled it
2015-12-24 02:08:16 -08:00
Aleksey Kislov
c9a9194243
Preserve strict rule for default export
2015-12-24 11:31:33 +03:00
Mordy Tikotzky
f2afce75e9
add default config to all rules which take a config
2015-12-23 21:39:31 -05:00
Mordy Tikotzky
b294e7cbf2
add missing rules from eslint-plugin-react
2015-12-23 21:38:53 -05:00
Jordan Gensler
5c3137d736
Cleaning up the react styleguide. Adding additional info in props.
2015-12-23 14:57:22 -08:00
Jordan Harband
75617bd619
Merge pull request #536 from amsardesai/add-version-badge
...
[eslint config] [Docs] Add version badge
2015-12-23 12:17:27 -08:00
Aleksey Kislov
76ff913d26
Permit strict mode
...
Permit strict mode for legacy configuration as it is not intended to be used with Babel.
2015-12-23 17:34:31 +03:00
Jordan Harband
eea8efe551
Merge pull request #635 from lencioni/no-is-mounted
...
[eslint-config] [breaking] Enable react/no-is-mounted rule
2015-12-22 12:07:04 -08:00
Joe Lencioni
f2dc5043a1
[eslint-config] [minor] Enable react/no-is-mounted rule
...
isMounted is an anti-pattern [0], is not available when using ES6
classes, and is on its way to being officially deprecated.
eslint-plugin-react recently added the react/no-is-mounted rule in
3.12.0 that prevents its use.
[0]: https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html
Finishes #633
2015-12-22 12:04:03 -08:00
Joe Lencioni
6602586a20
[eslint config] [minor] Sort react/prefer-es6-class alphabetically
...
All of the other rules in this file are in alphabetical order, but this
one was added by c98990c0f out of order at the end. Keeping these in
alphabetical order will help developers find the rules that they are
looking for.
2015-12-22 11:44:28 -08:00