Commit Graph

645 Commits

Author SHA1 Message Date
Joscha Feth
aa6ca6ff68 docs: babel-eslint not neede since 1.0.0 any more 2015-11-09 14:44:17 +11:00
Jordan Harband
d9b5585be4 [eslint config] v1.0.0 eslint-config-airbnb-v1.0.0 2015-11-08 11:12:17 -08:00
Jordan Harband
c0ef4540e5 Merge pull request #570 from airbnb/ljharb/update_eslint
[eslint config] update `eslint` to require 1.0 or greater
2015-11-06 16:36:21 -08:00
Jordan Harband
d432f58655 Add eslint as a peer dep, 1.0 or greater 2015-11-06 16:32:28 -08:00
Jordan Harband
0b7c979d82 [eslint] Remove babel-eslint dependency. 2015-11-06 15:16:49 -08:00
Jordan Harband
88603b8445 [eslint] update eslint, eslint-plugin-react, react, tape. 2015-11-06 13:09:34 -08:00
Jake Teton-Landis
f4e5967a0a Merge pull request #547 from chrisngobanh/padded-blocks
Prohibit Padded Blocks and Allow Comments in the First Line of a Block
2015-11-05 16:45:47 -08:00
Jake Teton-Landis
7b0ff1246e eslint-config-airbnb 0.1.1 eslint-config-airbnb-v0.1.1 2015-11-05 15:36:01 -08:00
Jake Teton-Landis
c5d3a3434c Merge pull request #569 from airbnb/jake/remove-id-length-rule
[eslint] remove id length rule (too much nutrage)
2015-11-05 15:35:20 -08:00
Jake Teton-Landis
06ed38d57f [eslint] remove id length rule (too much nutrage) 2015-11-05 15:18:59 -08:00
Harrison Shoff
8514f74322 Merge pull request #551 from majapw/patch-1
`export default` should not be inline with the class declaration
2015-11-04 11:17:53 +01:00
Harrison Shoff
a4e5858a35 Merge pull request #566 from airbnb/fix-stray-eval
[6.5] add backticks around stray eval. fixes #556
2015-11-04 11:13:56 +01:00
Harrison Shoff
f130c0ffa2 [6.5] add backticks around stray eval. fixes #556 2015-11-04 11:12:45 +01:00
Harrison Shoff
88d5084009 Merge pull request #564 from frankenbot/master
Update redirects
2015-11-04 11:07:13 +01:00
Jordan Harband
bbeb6a0d38 Merge pull request #562 from airbnb/ljharb/testing
Start to write a realistic "testing" section
2015-11-02 23:33:30 -08:00
frankenbot
49293bbf8c Update redirects 2015-11-02 20:11:56 -08:00
Jordan Harband
f2f8186d0f Start to write a realistic "testing" section 2015-10-31 13:49:53 -07:00
Jordan Harband
2c172bbe3b Merge pull request #561 from adrienverge/issue-539
eslint: Enforce `no-mixed-spaces-and-tabs`
2015-10-30 10:49:53 -07:00
Adrien Vergé
7b834b989c eslint: Fix no-mixed-spaces-and-tabs turn off
Currently the way the rule is defined, mixing spaces and tabulations in
indentation is allowed. However, the comments and documents seems to say
the opposite.

This patchs turns the rule on so mixing spaces and tabs is NOT allowed.

Fixes: #539
2015-10-30 17:00:14 +01:00
Jordan Harband
893ffb34fe Merge pull request #560 from rhbecker/update-eslint-config_no-const-assign
disallow reassignment of `const` variables
2015-10-29 22:48:46 -07:00
RH Becker
b056ad09bb Flag modification of variables that are declared using const keyword as an error. 2015-10-29 22:43:33 -07:00
Jake Teton-Landis
01ba082cf3 Merge pull request #554 from adrienverge/space-before-keywords
eslint: Add missing `space-before-keywords` rule
2015-10-23 09:11:47 -07:00
Adrien Vergé
ab0a6ca92b eslint: Add missing space-before-keywords rule
All examples in README.md seem to agree on avoiding missing whitespaces
before keywords such as:

    if (cond) {
    }else {       // no space before 'else'
    }

    try {
    }catch (e) {  // no space before 'catch'
    }

This patchs adds the `space-before-keywords` rule as an error (as is
`space-after-keywords` already).
2015-10-23 10:57:24 +02:00
Maja Wichrowska
efe7507e65 export default should not be inline with the class declaration
When there are static variables like `propTypes` and `defaultProps`, we shouldn't export them until we have actually set them onto the `Component`. This may change if the current ES7 proposal for static class properties gets accepts, and we update to support it.
2015-10-20 17:31:01 -07:00
Christopher Banh
4b5348a5fc Add examples with if statements to 18.8 2015-10-16 10:35:14 -07:00
Christopher Banh
d276b0c389 Update 17.2 to allow comments in the first line of a block
In #483, justjake said that we should update the style guide to allow
single line comments in the first line of a block.
2015-10-15 18:15:54 -07:00
Christopher Banh
9897e7d8d1 Add Section 18.8 - No padded blocks
This addresses #483
2015-10-15 18:10:25 -07:00
Jake Teton-Landis
89d1e07882 Merge pull request #544 from HubSpot/in-the-wild
Add HubSpot to 'In The Wild' section
2015-10-13 21:31:28 -07:00
Nick Hwang
8dd0b758f3 Add HubSpot to 'In The Wild' section 2015-10-13 23:21:02 -04:00
Josh Perez
8d6a1b40aa Merge pull request #534 from cooperka/react-quote-reasoning
Add reasoning for using double quotes in JSX
2015-10-05 15:41:04 -07:00
Kevin Cooper
ef7fbea3d9 Add further reasoning for using double quotes in JSX 2015-10-01 16:53:49 -07:00
Kevin Cooper
d4f69efeec Add reasoning for using double quotes in JSX 2015-10-01 15:11:17 -07:00
Harrison Shoff
f823047e46 Merge pull request #533 from ecosia/update-inthewild
Add Ecosia to "In the Wild" section.
2015-10-01 10:14:02 -07:00
Gregory McCue
3c3c9a299d Fix link text. 2015-10-01 19:08:05 +02:00
Gregory McCue
be61bbd53c Add Ecosia to "In the Wild" section. 2015-10-01 11:35:30 +02:00
Jordan Harband
98a76908fc Merge pull request #530 from taion/patch-1
Clarify strict ESLint rule
2015-09-29 09:20:35 -07:00
Jimmy Jia
8da7adbdd4 Clarify strict ESLint rule 2015-09-29 12:19:49 -04:00
Jake Teton-Landis
4268bba57c Merge pull request #528 from airbnb/jake/release-eslint-0.1.0
prepare eslint-config-airbnb v0.1.0
eslint-config-airbnb-v0.1.0
2015-09-27 20:04:23 -07:00
Jake Teton-Landis
e65c6afe44 eslint-config-airbnb v0.1.0 2015-09-27 20:02:01 -07:00
Jake Teton-Landis
cd082f4a12 Merge pull request #527 from airbnb/jake/legacy-ruleset
Create eslint-config-airbnb/legacy to export ES5-only rules
2015-09-27 19:53:55 -07:00
Jake Teton-Landis
b42e9b82dd explain eslint-config-airbnb rule choices 2015-09-27 19:52:28 -07:00
Jake Teton-Landis
170dbeb5d4 make exported rulesets extend relative to eslint-config-airbnb 2015-09-27 19:52:28 -07:00
Jake Teton-Landis
de90317a6d create legacy.js to export es5 rules 2015-09-27 18:47:13 -07:00
Jake Teton-Landis
16f81fbb25 Merge pull request #526 from taion/eslint-config-defaults
Eslint config defaults
2015-09-27 12:29:48 -07:00
Jimmy Jia
9c7674a7b3 Update for upstream dependencies
- react/jsx-quotes has been superseded by jsx-quotes
- eqeqeq now covers comparisons to null
2015-09-25 16:27:48 -04:00
Jimmy Jia
db6c4a8b4e Remove differences from eslint-config-defaults 2015-09-25 16:23:29 -04:00
Jimmy Jia
daea8a638f Use rules from eslint-config-defaults 2015-09-25 16:15:38 -04:00
Jordan Harband
d14e8b7964 Merge pull request #524 from DannyNemer/patch-1
Clarify proper type casting for Numbers
2015-09-25 07:21:27 -07:00
Danny Nemer
7d0e236b59 Clarify proper type casting for Numbers
Clarifies when to use `Number` vs. `parseInt` for Number type casting.

Fixes: #523
2015-09-25 10:17:27 -04:00
Jake Teton-Landis
58c901c330 use eslint 1.3.0 (fixes #515) 2015-09-24 12:25:34 -07:00