Naomi Jacobs
8ed1d855bb
[eslint config] [base] [patch] Include 'accumulator' exception for no-param-reassign
2018-03-20 11:40:04 -07:00
Joe Lencioni
49dab881da
Change import/no-self-import from "off" to "error"
...
We recently had an incident where this rule would have prevented
infinite loops in Hypernova and in the browser.
2018-03-23 08:42:42 -07:00
Remco Haszing
8247e338a2
[eslint config] [base] [patch] Set import/extensions to ignorePackages
...
This allows to import non-JavaScript files through the main export of a dependency's package.json.
The following would trigger an error before, but is fine with the new configuration:
```js
import 'roboto-fontface';
```
2017-12-04 10:11:35 +01:00
Remco Haszing
a100a3957f
[eslint config] [base] [breaking] Update object-curly-newline to match eslint 4.18.0
...
In eslint v4.18.0 separate settings are introduced for imports and exports for the `object-curly-newline` rule.
Without this change, there is different behavior when updating eslint to this version.
2018-03-01 14:33:02 +01:00
Pirasis
396166b1d3
[eslint config] [*] [fix] ensure whitespace entry point is compatible with node 4
2018-03-01 12:15:56 +07:00
Jordan Harband
40dbeace17
[Tests] ensure all entry points parse
2018-02-28 23:00:19 -08:00
Sharmila
6373dab990
Adds config entry point with only whitespace rules enabled
...
Adds a change to eslint-config-airbnb and eslint-config-airbnb-base to pull a list of rules from the project root and return a config with all rules turned off except the whitespace rules explicitly listed in the array. Also adds entry point data to readme.
2018-02-27 15:21:29 -08:00
Thomas Grainger
c82500d7fa
[eslint config] [base] [breaking] enable no-useless-path-segments
2018-02-22 01:07:09 +00:00
Jordan Harband
1fbeabd0c4
[eslint config] [*] [breaking] [deps] update eslint, eslint-plugin-import
2018-02-22 13:51:02 -08:00
Honza Javorek
ea14bda110
Add licenses to sub packages
2018-02-22 15:48:50 +01:00
Jordan Harband
3c3074e502
[eslint config] [*] [deps] update eslint, eslint-find-rules, eslint-plugin-react, tape
2018-02-20 00:10:46 -08:00
Jordan Harband
ff1c12178e
[eslint config] [breaking] update eslint-plugin-react to v7.6; update rule configs
2018-01-26 23:31:30 -08:00
Sharmila
e9fff7adbf
[eslint config] [base] [breaking] Prevent line breaks before and after =
2018-01-26 10:57:21 -08:00
Alex Baulch
53b2d7d245
[eslint config] [breaking] bump react pragma to v16; update class-methods-use-this's exceptMethods to include componentDidCatch
2018-01-22 10:42:28 +00:00
Jordan Harband
7dab8371c9
[eslint config] [deps] update eslint
2018-01-20 23:36:32 -08:00
Jordan Harband
7b1ced2bf7
[eslint config] [base] [deps] update eslint
2018-01-20 23:35:21 -08:00
Aditya Agarwal
a08afd77d5
[eslint-config] [*] [docs] add npx shortcut
2018-01-10 20:04:25 +05:30
Jordan Harband
69a3554100
[eslint config] [base] [patch] properly ignore indentation on jsx
...
Fixes #1658 .
2018-01-08 00:52:17 -08:00
Jordan Harband
7b18d7c215
[eslint config] [*] [deps] update eslint
2018-01-08 00:35:15 -08:00
Matias Olivera
eb50272401
Forbid .mjs extension from being specified
2017-11-05 13:23:21 -03:00
Matias Olivera
1d9d25d278
Add .mjs to the list of supported extensions
2017-11-05 13:21:48 -03:00
Pirasis
90235cab7c
[eslint config] [base] [patch] array-callback-return: enable allowImplicit option
2017-12-24 10:06:09 +07:00
Jordan Harband
9061044af0
[eslint config] [*] [deps] update eslint, eslint-plugin-jsx-a11y
2017-12-23 20:25:29 -08:00
Kristóf Poduszló
4817a6b75c
[eslint config] [patch] Add 'to' as a specialLink to the 'anchor-is-valid' a11y rule
...
Support React Router's `<Link to="...">` attribute out of the box.
2017-11-28 19:47:00 +01:00
Jordan Harband
b709023494
[eslint config] [base] [breaking] enable implicit-arrow-linebreak
2017-11-29 23:52:45 -08:00
Jordan Harband
2087a42b51
[eslint config] [base] [deps] update eslint
2017-11-29 23:43:55 -08:00
Jordan Harband
44dbd0bdc4
[eslint config] [patch] disable no-did-mount-set-state, since it’s necessary for server-rendering.
...
Fixes #684 .
2017-11-04 01:02:09 -07:00
Ed Morley
7ff6303513
[guide] Use HTTPS for links to ESLint documentation
...
The result of a `s_http://eslint\.org_https://eslint\.org_g `.
Avoids the HTTP 302s of the non-HTTPs URLs.
2017-10-30 13:19:22 +00:00
Sharmila
2676cbfb2f
[eslint config] [base] [breaking] Enables nonblock-statement-body-position rule and adds link to guide
2017-10-24 17:49:14 -07:00
Sharmila
8161f32f1f
[eslint config] [base] [breaking] no-mixed-operators: only warn on ** and % mixed with arithmetic operators; removes violation against mixing common math operators.
...
Fixes #1071 .
2017-10-20 16:09:16 -07:00
Jordan Harband
94c47734e8
[eslint config] [*] [deps] update eslint-plugin-import
2017-10-20 15:48:09 -07:00
Jordan Harband
8cfc97eee9
[Tests] fix linting tests
2017-10-18 21:28:52 -07:00
Jordan Harband
6f2395a3f1
[eslint config] [base] [breaking] import/named: enable
2017-10-18 14:28:58 -07:00
Jordan Harband
b66d6e42f3
[eslint config] [base] [breaking] lines-between-class-members: set to “always”
2017-10-18 14:27:41 -07:00
Thomas Grainger
01e72b9963
[eslint config] [base] [breaking] no-else-return: disallow else-if
2017-10-18 14:06:04 -07:00
Sharmila
6fbc47256e
Fixes test syles
2017-10-18 13:37:49 -07:00
Sharmila
6e1f11185d
[eslint config] [base] Enables eslint rule for operator-linebreak
...
Requiring operators at the beginning of the line makes code more readable. When operators are on the left hand side they mirror the syntax of method chaining and it is easy to see the build of logic in a statement.
2017-10-18 13:37:49 -07:00
Jordan Harband
cf9e17efee
[eslint config] v16.1.0
2017-10-16 12:01:21 -07:00
Jordan Harband
ec4b9b109a
[eslint config] [deps] update eslint-config-airbnb-base, eslint to v4.9
2017-10-16 12:00:49 -07:00
Jordan Harband
7f61af685c
[eslint config] [base] v12.1.0
2017-10-16 11:50:50 -07:00
Jordan Harband
3581bac32f
[eslint config] [base] [deps] update eslint to v4.9
2017-10-16 11:42:13 -07:00
Pirasis Leelatanon
62d8d66049
[eslint config] sort peerDependencies in alphabetical order
2017-10-13 10:38:23 +07:00
Jordan Harband
dfbeaaea4b
[eslint config] v16.0.0
2017-10-06 10:40:05 -07:00
Jordan Harband
e5b5aeeb6b
[eslint config] [breaking] enable/add react rules:
...
- `react/jsx-curly-brace-presence`
- `react/no-typos`
- `react/no-unused-state`
- `react/no-redundant-should-component-update`
- `react/default-props-match-prop-types`
2017-10-05 01:01:01 -07:00
Jordan Harband
2c228825a8
[eslint config] [deps] update eslint, eslint-config-airbnb-base, eslint-plugin-react
2017-10-05 00:55:14 -07:00
Jordan Harband
ad3746672e
[eslint config] [base] v12.0.2
2017-10-05 00:03:21 -07:00
Jordan Harband
a8155091ff
[eslint config] [base] [deps] update eslint
2017-10-05 00:02:31 -07:00
Jordan Harband
cd038fb89b
v12.0.1
2017-09-27 16:38:49 -04:00
Jordan Harband
b7ff33e79c
[eslint config] [base] [deps] update eslint
2017-09-27 16:37:54 -04:00
Jordan Harband
8e29a161f9
[eslint config] [base] [fix] ensure all JSX elements are ignored by indent
...
Fixes #1569 .
2017-09-27 16:33:51 -04:00