New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move eslint-config-ember to dependencies #43
Move eslint-config-ember to dependencies #43
Conversation
03ee080
to
2c5992b
Compare
LGTM. @jonathanKingston, is there anything we might be missing that might cause trouble with this approach instead of the original? |
A few things that I thought of:
|
The reason this is a devDependency is so I'm not convinced we want to do this, the initial thinking was that the user would install As mentioned this won't work in older npm's either. |
I agree with @jonathanKingston, I don't want |
@jonathanKingston Can we make |
I think I'd prefer that too. Extending from |
That's exactly what I have in my current projects that use ember-cli-qunit-eslint, though I'd love to rally the community around this one instead! FWIW here's what I was using: // .eslintrc
{
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true
},
"extends": "eslint:recommended"
} // tests/.eslintrc
{
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"embertest": true
},
"extends": "eslint:recommended"
} You might be able to simplify this even further. The |
I'm using this in two of my projects: {
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": false
},
"rules": {
// ...
}
} this also removes the need for |
I think I like the approach that you all are suggesting better, too:
I've shifted a few projects to ESLint and ended up needing to make really substantial changes to the config in every case anyway, relaxing rules when necessary. It would have been much easier to configure if the whole config was in one file, rather than pulling rules from |
When listed as a
devDependency
, I noticed that the application that hadember-cli-eslint
installed also neededeslint-config-ember
within its own dependencies. By moving it to be adependency
of the addon instead, that could be avoided, which makes this addon a little easier to manage, since you don't have to adjust the version ofeslint-config-ember
directly.