Commit Graph

624 Commits

Author SHA1 Message Date
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
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
Jake Teton-Landis
e40ea1c24e update readme for eslint-config-airbnb 0.0.9 2015-09-24 12:18:34 -07:00
Jake Teton-Landis
f25c85ef2e eslint-config-airbnb 0.0.9 eslint-config-airbnb-v0.0.9 2015-09-24 12:12:32 -07:00
Harrison Shoff
60fe3a788c Merge pull request #516 from hyperoslo/add/hyperoslo-in-the-wild
Add Hyper to the “in the wild” list in README
2015-09-22 17:14:19 -07:00
Jake Teton-Landis
4200452887 Merge pull request #517 from hyperoslo/change/in-the-wild-instructions
Remove issues from how to add to “in the wild”
2015-09-18 12:19:56 +09:00
Sindre Moen
7619b854b2 Remove issues from how to add to “in the wild” 2015-09-17 11:40:43 +02:00
Sindre Moen
af180978bf Add Hyper to the “in the wild” list in README 2015-09-17 11:21:37 +02:00
Jake Teton-Landis
f0619f6ba0 Merge pull request #499 from honzi/honzi-patch-2
improve formatting of Chinese language links
2015-09-16 16:09:42 +09:00
Jake Teton-Landis
c42275f5dd Merge pull request #491 from gilbox/react-terse-export-syntax
[react] inline export syntax
2015-09-16 16:08:56 +09:00
Jake Teton-Landis
392a08a815 Merge pull request #505 from amsardesai/add-id-length
Added id-length rule to eslintrc
2015-09-16 15:59:11 +09:00
Ankit Sardesai
15780d5284 Added id-length documentation url 2015-09-14 17:26:16 -04:00
Ankit Sardesai
867bfdeace Added id-length rule to style guide 2015-09-12 21:05:50 -04:00
Josh Perez
69b86bd8c6 Merge pull request #502 from againer/patch-1
add semicolons to const declarations in 19.2
2015-09-11 14:57:48 -07:00
Al Pal
9405b1d396 add semicolons to const declarations in 19.2 2015-09-09 20:38:43 -07:00
Jake Teton-Landis
24dc126e4b Merge pull request #500 from Weblors/patch-4
Add to list of In the Wild organizations
2015-09-09 00:04:26 -07:00
Weblors
b043025bf6 Add to list of In the Wild organizations
Added Super as one of the organizations using the styleguide.
2015-09-09 12:33:18 +05:30
Jan Hořava
2aaaa3ddff improve formatting of Chinese language links 2015-09-08 20:21:38 -07:00
Harrison Shoff
0e7b56f0cf Merge pull request #497 from abrkn/master
Make eslintrc dependencies copy-pasteable
2015-09-04 10:26:43 -07:00
Andreas Brekken
5695dc12df Make eslintrc dependencies copy-pasteable 2015-09-04 09:35:23 -07:00
Josh Perez
39b6002bf3 Merge pull request #494 from johnmanong/default-parameters-last
Default parameters go last.
2015-08-31 15:34:46 -07:00
johnmanong
eeed55c154 [ong] swap order of new entry 2015-08-31 18:29:35 -04:00
johnmanong
701cbb954d [ong] Default parameters go last. 2015-08-30 14:19:20 -04:00