Eslint config defaults#526
Eslint config defaults#526justjake merged 3 commits intoairbnb:masterfrom taion:eslint-config-defaults
Conversation
- react/jsx-quotes has been superseded by jsx-quotes - eqeqeq now covers comparisons to null
There was a problem hiding this comment.
can you not just reference them relatively? I think that issue was why I was constructing a rules object instead of just extending 'base' previously. Can eslint resolve these when running npm run lint without special linking magicks?
There was a problem hiding this comment.
npm run lint didn't work when referencing them relatively. It interpreted them as the names of eslint-config-* packages for some reason.
It's possible that doing something like https://github.com/walmartlabs/eslint-config-defaults/blob/master/package.json#L34 involving making main not be index.js could work, but I didn't try it, because this approach seemed tolerable.
There was a problem hiding this comment.
I believe all extends in eslint have to be named starting with "eslint-config", or a scoped package with the name ending in "/eslint-config".
There was a problem hiding this comment.
@ljharb I have no clue - the relative imports work here: https://github.com/airbnb/javascript/pull/526/files#diff-ca246d3b4ba146243647f872c0e7e8d1R3, but they didn't work on index.js. ¯_(ツ)_/¯
|
Lovely! Love open source. Thanks @taion! 🍻 |
|
This is super awesome guys! Nice work! |
Closes #522.
@justjake: I can see why you didn't want to do this. This was a lot more time-consuming than I had anticipated.
It's split up into 3 commits:
eslint-config-defaultsand plug them in.