53 Commits

Author SHA1 Message Date
Kai
fdc812a0a5 [Docs] HTTP => HTTPS 2021-11-04 00:24:41 +01:00
Ikko Ashimine
9c181108a7 [meta] Fix typo in .markdownlint.json
preceeding -> preceding
2021-01-08 20:40:02 +09:00
Jordan Harband
41ca203e3e [Dev Deps] update markdownlint-cli 2020-02-07 08:05:47 -10:00
Siddharth Batra
e7ffd44b4a Update .markdownlint.json
Fixed typos and grammar
2018-09-02 22:59:40 +05:30
liyuhang
4702115038 Fix: Typo 2018-06-25 16:08:50 +08:00
Daniel Axelrod
98f2224ec2 Add linting for Markdown prose
Codify existing practices for writing Markdown in style guides and
enforce them via Markdownlint. A new npm script "lint" in the top level
package.json runs before tests or as the first step of the "travis"
script.

Only modify documents in cases where they had bugs or isolated cases of
inconsistency:

README.md: 10: MD007 Unordered list indentation
Inconsistent with all other top level lists

README.md: 10: MD032 Lists should be surrounded by blank lines
Some Markdown parsers don't handle this correctly

README.md: 3156-3161: MD005 Inconsistent indentation for list items at
                      the same level
Bug, looks like it's intended to be another list level but GitHub
renders it at the same level as the "No but seriously"

README.md & css-in-javascript/README.md: throughout: MD012 Multiple
          consecutive blank lines

README.md: throughout: MD004 Unordered list style
Some nested lists used plusses, now everything consistently uses
dashes.
2017-06-02 17:10:16 +00:00
Jordan Harband
52d3401f95 [eslint config] [eslint config base] [breaking] Migrate non-React rules to a separate linter config. 2016-04-16 11:04:28 -07:00
Bae Hyun Seung
bf8677d1ac 'esnext' option has been deprecated 2016-04-19 15:38:41 +09:00
Nick
6671a55556 CHORE - Remove Trailing Spaces 2016-04-03 09:59:12 -04:00
Christopher Banh
d11f2663c5 Update .jshintrc with new line length 2015-12-24 02:08:16 -08:00
Christopher Banh
8989a8a513 Rename jshintrc to .jshintrc
According to http://jshint.com/docs/, the "special file" to configure JSHint is named `.jshintrc`, not `jshintrc`.
2015-12-23 12:46:03 -08:00
Andreas Brekken
5695dc12df Make eslintrc dependencies copy-pasteable 2015-09-04 09:35:23 -07:00
Tomek Wiszniewski
d874a94a0a Mention eslint-config-airbnb
Actually, if we want to make the thing more convenient, we could go as far as saying: “

Before using our `.eslintrc` install these dependencies:

```sh
npm install --save-dev eslint-config-airbnb eslint babel-eslint eslint-plugin-react
```

”. I want to leave the decision up to you though.
2015-08-05 19:45:08 +02:00
Jake Teton-Landis
dbbf71bd71 eslintrc extends eslint-config-airbnb 2015-07-30 15:08:47 -07:00
Jake Teton-Landis
2f55be7cc3 [eslint] move .eslintrc into packages/eslint-config-airbnb 2015-07-30 14:47:42 -07:00
Jake Teton-Landis
1b212cf5b9 Merge pull request #431 from pascalduez/pr__update_eslint_config
Update ESlint deprecated rules
2015-07-30 14:12:39 -07:00
Tomek Wiszniewski
3c260d8e8a Get rid of no-reserved-keys in the .eslintrc
After all [point 8.2](https://github.com/airbnb/javascript/tree/63bece1#3.2) allows them in an ES 2015+ environment.
2015-07-29 20:32:19 +02:00
Pascal Duez
2af7a5607e Update deprecatd rules
- no-wrap-func -> no-extra-parens
- spaced-line-comment -> spaced-comment
2015-07-20 12:05:58 +02:00
Vladimir Starkov
ac8ff6539f add constructor
See details here http://babeljs.io/blog/2015/06/07/react-on-es6-plus/
2015-07-16 12:34:25 +02:00
Deniz Ozger
232054a26f Fixed a typo on README 2015-07-08 10:23:16 +01:00
Frederick Silva
8370c03902 fixed additional trailing comma - close #393 2015-07-06 15:13:47 -03:00
Marco Bettiolo
383b6a67cf Added links to JSX plugin's documentation and some links to env documentation and plugins repositories 2015-07-02 15:55:04 +01:00
Jake Teton-Landis
7b336c737e Merge pull request #382 from framini/patch-2
Fix doc url and typo
2015-07-01 13:44:19 -07:00
Francisco Ramini
7b64a9dc1c fix doc url and little typo 2015-07-01 17:27:20 -03:00
Nikita Gusakov
b020a431b0 Added "prefer-const" rule
Added new ES6 rule, introduced in eslint 0.23.0
 > This rule is aimed to flag variables that are declared using let keyword, but never modified after initial assignment.
2015-06-25 16:31:27 +03:00
Chris Portela
fe42d0bfa3 Made single quotes to double quotes 2015-06-24 16:02:21 -04:00
Chris Portela
e9b59b76a5 Update .eslintrc with other react class properties
In `eslint-plugin-react`'s page on their sorting rules they show the order I showed here. https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md#rule-options

I noticed because according to the current rules `contextTypes` goes below `render` and I also noticed other methods were missing from the list. Since we're being specific we should also include the other methods and properties that `eslint-plugin-react` handles by default.
2015-06-24 15:51:25 -04:00
Baraa Hamodi
a6796f0098 Update .eslintrc
Just a consistency thing. :)
2015-05-27 23:58:29 -07:00
Jake Teton-Landis
f87ddc012f add README describing eslintrc requirements 2015-05-18 12:02:48 -07:00
Jake Teton-Landis
20c4d37b33 add eslint rules for JSX style from issue #345 2015-05-18 11:55:36 -07:00
Tomek Wiszniewski
875d2ad05e Add esnext to the jsHint configuration
This way we'll allow ES6 syntax.
2015-04-28 21:28:05 -07:00
Nikita Gusakov
15c947b48b Allow dot-notation keywords in eslint
ES6 gives us promises, which have `.catch` method. Other Promise implementation also uses `try` and `finally` methods, which are also reserved keywords ([bluebird](https://github.com/petkaantonov/bluebird/blob/master/API.md)).
2015-04-25 18:24:58 +03:00
Harrison Shoff
91d56b6874 [eslint] fix whitespace, silence underscore dangle 2015-04-19 15:34:51 -07:00
Harrison Shoff
b694fedccd [linters] update .eslintrc 2015-04-18 17:58:26 -07:00
Rob Loach
87ea8909d8 fix(one-var): Add one-var setting from @nkbt 2015-04-05 23:04:13 -04:00
Rob Loach
3058e38d01 fix(eslint): Remove amd and jquery from env 2015-04-02 12:36:42 -04:00
Rob Loach
dbbdec3f29 feat(eslint): Add ESLint linting support 2015-04-01 17:39:32 -04:00
Mark Storus
697aa00da0 jshintrc cleanup
- eqnull is a relaxing option, not an enforcing option
- trailing has been removed as of jshint 2.5
- put in alphabetical order
2014-07-29 16:09:54 -07:00
Spike Brehm
b65dd90ea5 Add .jshintrc
This adds a `.jshintrc` to the `linters/` directory. I just copied over
the settings from the `SublimeLinter` file, de-nesting the JSON object
by one level.

It means we'll have to maintain both files, but it's good to have a
basic `.jshintrc` for those of us that aren't using JSHint through
Sublime Text.
2013-12-26 19:00:21 -08:00
vahan-hartooni
d5db0a2f45 Enforce 'use strict'
As stated in the [Modules section](https://github.com/airbnb/javascript#modules), `'use strict'` needs to be declared at the top of a module

[JSHint has an option](http://www.jshint.com/docs/options/#strict) for something like this by enforcing the declaration of the statement at the top function scope.
2013-12-17 13:07:59 -08:00
vahan-hartooni
898b46dc15 Update SublimeLinter.sublime-settings
The Airbnb guide states: "Strings longer than 80 characters should be written across multiple lines using string concatenation."

I propose to add the maxlen option to enforce this rule: http://www.jshint.com/docs/options/#maxlen

However maxlen enforces the entire source code, not just a line of String. I would like to hear your thoughts on whether that is a beneficial enforcement to keep JS code at a set width.
2013-12-02 10:46:34 -08:00
Ross Allen
6eed6bd96f Bump minor version for addition of single quotes setting 2012-11-13 16:05:12 -08:00
Ross Allen
e6ab9cec90 Add single quote enforcement setting 2012-11-13 16:05:01 -08:00
Ross Allen
cfa916e10a Remove unnecessary articles from setting descriptions 2012-11-13 16:04:10 -08:00
Harrison Shoff
4400753ac1 Merge pull request #11 from airbnb/sublime-linter-updates
SublimeLinter updates
2012-11-05 13:38:13 -08:00
Spike Brehm
edcc2c33e7 Define globals exposed by Node.js 2012-11-05 12:37:47 -08:00
Ross Allen
c4ee2eb3c3 Increment minor version to include 'camelcase' settings and comment updates 2012-11-05 12:19:26 -08:00
Ross Allen
859164d18e Remove references to third-person 'you', it sounds weird 2012-11-05 12:18:48 -08:00
Ross Allen
9c4f415c40 Use the imperative mood in comments, 'Prohibit' instead of 'Prohibits' 2012-11-05 12:18:48 -08:00
Ross Allen
9ae773e5c2 Enforce camelCase or UPPER_CASE for all variable names 2012-11-05 11:57:58 -08:00