Commit Graph

1796 Commits

Author SHA1 Message Date
Julian Grinblat
3493b060ec [eslint config] [minor] Support eslint-plugin-react-hooks@2 2019-09-16 19:37:29 +09:00
Jordan Harband
019e0f7e07 [eslint config] add config for disabled new rules 2020-02-13 17:42:08 -08:00
Jordan Harband
41ca203e3e [Dev Deps] update markdownlint-cli 2020-02-07 08:05:47 -10:00
Kévin Berthommier
651280e5a2 [eslint config] [base] Fix indentation with JSX Fragments 2020-02-07 16:49:10 +01:00
Jordan Harband
f86f19cefc [eslint config] [*] [deps] update eslint-plugin-import, eslint-plugin-react 2020-02-07 08:32:08 -10:00
Jordan Harband
4df908033f [eslint config] [*] [dev deps] update @babel/runtime, babel-preset-airbnb, safe-publish-latest, tape 2020-02-07 08:29:46 -10:00
Jordan Harband
377fbcac88 [eslint config] [*] [deps] update object.entries 2020-02-07 08:25:49 -10:00
Geo Artemenko
6d05dd898a [eslint config] [*] [readme] normalize multiline word according to merriam-webster 2019-11-22 22:04:23 -05:00
Jordan Harband
b5954c32b3 [eslint config] [base] [deps] [minor] add new disabled rules, update eslint 2019-12-10 16:47:51 -08:00
Jordan Harband
370793b3dd [eslint-config] [*] [fix] whitespace: only set erroring rules to "warn"
Fixes #2105
2019-12-10 16:32:17 -08:00
Jonas Scheffner
2e3adc98c7 [eslint config] [base] [patch] import/no-extraneous-dependencies: Support karma config files 2019-10-28 13:42:10 +01:00
Vse Mozhet Byt
5927c7f706 [guide] fix possible typo 2019-11-08 16:05:06 +02:00
Igor Gassmann
56b75dc359 [guide] Document class-methods-use-this
This PR documents the currently enforced `class-methods-use-this` ESlint rule as discussed in #2129
2019-11-03 21:00:57 +01:00
trg
64b965efe0 [guide] Fix Temporal dead zone link anchor 2019-10-01 01:27:12 +03:00
Alexander Wesolowski
3fb312f181 [eslint config] [patch] Add static-variables to sort-comp rule 2019-10-04 15:57:05 -07:00
Pirasis
8f78e1f44b [tests] re-enable eslint rule prefer-destructuring internally 2019-10-05 08:01:44 +07:00
Pirasis
5a32c33bf2 [eslint config] [base] [minor] enable import/no-useless-path-segments for commonjs
Fixes #2077.
2019-10-05 08:49:01 +07:00
Pirasis
df2c99c814 [tests] fix eslint errors from c66cfc3 2019-10-05 08:21:45 +07:00
Filipp Riabchun
ab72ab9e90 [eslint config] [patch] Remove duplicate componentDidCatch
See https://github.com/airbnb/javascript/pull/2043#discussion_r331208075

I left the one before `cWU`, as in [defaults](https://github.com/airbnb/javascript/pull/2043#discussion_r331208075)
2019-10-03 21:31:32 +02:00
Jordan Harband
dee4f172e7 [eslint config] [base] add new rules in eslint 6.x, disabled 2019-10-03 19:18:32 -04:00
Jordan Harband
c66cfc3f89 [eslint config] [deps] update eslint-plugin-react 2019-10-03 19:20:10 -04:00
Jordan Harband
8c94d53bf8 [eslint config] [*] [dev deps] update @babel/runtime, babel-preset-airbnb, safe-publish-latest 2019-10-03 19:10:47 -04:00
Jordan Harband
79047a9470 [eslint config] [base] [deps] update confusing-browser-globals 2019-10-03 19:10:12 -04:00
Tom Prats
7932a52e4b Added Tomify and Traitify to the organizations 2019-09-04 14:11:39 -04:00
Daniel Gray
1ca21aba79 [eslint config] clarify hooks section in readme
It took me too long to realize that `"extends": "airbnb/hooks"` won't cut it, and that you need to include both `"extends": ["airbnb", "airbnb/hooks"]`. I think the docs should be explicit about this.
2019-08-17 19:14:24 -05:00
Jordan Harband
295d1e61cb [guide] clean up confusing example from bad rebase
... from
820745d610 (diff-04c6e90faac2675aa89e2176d2eec7d8R963-R965)
/ #1863.

Fixes #2071.
2019-08-14 08:46:21 -07:00
Jordan Harband
a204cdf38a [eslint config] v18.0.1 eslint-config-airbnb-v18.0.1 2019-08-13 12:30:37 -07:00
Jordan Harband
530278467f [eslint config] [patch] react/state-in-constructor: fix incorrect configuration 2019-08-13 12:29:28 -07:00
Jordan Harband
bdba997ac7 [eslint config] v18.0.0 eslint-config-airbnb-v18.0.0 2019-08-10 08:41:05 -07:00
Jordan Harband
1e0a696730 [eslint config] [breaking] disable label-has-for; enable control-has-associated-label 2019-08-09 23:54:08 -07:00
Jordan Harband
73f71d9ba4 [eslint config] [breaking] enable react/jsx-props-no-spreading 2019-08-09 23:53:03 -07:00
Jordan Harband
089022aeff [eslint config] [minor] enable react/static-property-placement 2019-08-09 23:52:44 -07:00
Jordan Harband
7f5a65832d [eslint config] [minor] enable react/state-in-constructor 2019-08-09 23:52:29 -07:00
Jordan Harband
25075b5f72 [eslint config] [minor] enable react/jsx-curly-newline 2019-08-09 23:50:40 -07:00
Jordan Harband
a23f93eb00 [eslint config] [breaking] enable react/jsx-fragments 2019-08-09 23:48:45 -07:00
Jordan Harband
b447768ad3 [eslint config] [deps] update eslint-config-airbnb-base, eslint-plugin-react 2019-08-09 23:48:11 -07:00
Jordan Harband
b05573cae4 [eslint config] [base] v14.0.0 eslint-config-airbnb-base-v14.0.0 2019-08-09 23:41:02 -07:00
Jordan Harband
e6f591f660 [Dev Deps] update babel-related deps to latest 2019-08-09 23:22:48 -07:00
Jordan Harband
282ef9ea90 [eslint config] [base] [breaking] no-self-assign: enable props option 2019-08-09 22:46:22 -07:00
Jordan Harband
d490ee1806 [eslint config] [base] [breaking] enable no-useless-catch 2019-08-09 22:45:49 -07:00
Jordan Harband
08f8093ed1 [eslint config] [base] [breaking] enable max-classes-per-file 2019-08-09 22:45:27 -07:00
Jordan Harband
d03a712bba [eslint config] [base] [breaking] enable no-misleading-character-class 2019-08-09 22:44:01 -07:00
Jordan Harband
f0c767fd39 [eslint config] [base] [breaking] enable no-async-promise-executor 2019-08-09 22:43:20 -07:00
Jordan Harband
88e71e6e52 [eslint config] [base] [breaking] enable prefer-object-spread 2019-08-09 22:42:20 -07:00
Jordan Harband
11ede40d55 [eslint config] [base] [breaking] func-name-matching: enable considerPropertyDescriptor option 2019-08-09 22:41:33 -07:00
Jordan Harband
e257deebd4 [eslint config] [base] [patch] camelcase: enable ignoreDestructuring 2019-08-09 22:40:53 -07:00
Jordan Harband
6b5922ca21 [eslint config] [breaking] set react version to "detect"
Fixes #1983.
2019-08-09 22:39:06 -07:00
Behnam Mohammadi
a490005ddf [react] event handlers should not return values 2019-07-06 23:45:11 +04:30
Jeff VanDyke
bb011c2f2f [eslint config] [base] [patch] Add markers to spaced-comment block for Flow types
See <https://flow.org/en/docs/types/comments/>
2018-11-29 09:13:54 -05:00
Vladimir Kutepov
8148bfce3c [eslint config] [base] [patch] Do not prefer destructuring for object assignment expression
```js
let param = 'default value';

if (object)
  param = object.param; // <= prefer-destructuring
}

// ...
```
I think that `param = object.param;` is better than `({ param } = object);` because it is easier to read and tedious to write brackets by hand.

MDN: [Destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)
2017-10-10 18:21:50 +03:00