This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Cleanup based on ember-suave
rules
#732
Labels
wontfix
indicates an issue/pull request will not be worked on
Comments
Thanks @btecu! |
This was referenced Oct 13, 2016
jkleinsc
pushed a commit
that referenced
this issue
Oct 13, 2016
`const` -> `let` (inside modules) Part of #732.
jkleinsc
pushed a commit
that referenced
this issue
Oct 13, 2016
`thing(a,b)` -> `thing(a, b)` Part of #732.
This was referenced Oct 14, 2016
Merged
This was referenced Oct 27, 2016
Merged
Hi, I'll take this one for now if that's ok?
aka remove |
@amyrlam Yes, go for it. 😄 |
@btecu cool thanks, started a branch |
amyrlam
added a commit
to amyrlam/hospitalrun-frontend
that referenced
this issue
Nov 16, 2016
Resolves: Part of HospitalRun#732 Added rule to .eslintrc Proposes adding other rules from HospitalRun#732 to .eslintrc so that they will be enforced by linter.
amyrlam
added a commit
to amyrlam/hospitalrun-frontend
that referenced
this issue
Nov 16, 2016
Re: http://eslint.org/docs/rules/object-curly-spacing Realized my fork was out of date when started looking at this issue recently. I have previously used ember-suave, just getting started with eslint. Since many of the rules outlined in HospitalRun#732 aren’t part of eslint recommended https://github.com/DockYard/eslint-plugin-ember-suave/blob/master/config/recommended.js, I suggest adding the rules to the eslintrc.js so that they are enforced as they are fixed. If this PR is ok: - I’ll add the rest of the already completed rules from HospitalRun#732 in a follow-on PR. - I will go through the remaining rules from HospitalRun#732, and add the rule to the .eslintrc.js as the rules are fixed.
This was referenced Nov 17, 2016
Merged
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Continuation of #724.
Plan
Currently, all failing rules are turned off.
The plan is to go and fix all of the errors that the core maintainers agree on and submit those in individual (smaller) pull requests for faster merging and to avoid conflicts.
Changes proposed
[ 1, 2 ]
->[1, 2]
[Cleanup] eslintarray-bracket-spacing
#733some_ember_function
->someEmberFunction
thing(a,b)
->thing(a, b)
[Cleanup] eslintcomma-spacing
#734const
->let
(inside modules) [Cleanup] eslintember-suave/no-const-outside-module-scope
#735Ember.isNone()
->const { isNone } = Ember; isNone()
@amyrlam working on itlet brand = car.brand;
->let { brand } = car;
[CLEANUP] eslintember-suave/prefer-destructuring
#769indent
#772{ age:21 }
->{ age: 21 }
[Cleanup] eslintkey-spacing
#741}else {
->} else {
[CLEANUP] eslintkeyword-spacing
#771new report()
->new Report()
[Cleanup] eslintnew-cap
#810{'foo': 'bar'}
->{ 'foo': 'bar' }
[CLEANUP] eslintobject-curly-spacing
#770doWork: function()
->doWork()
[Cleanup] eslintprefer-shorthand
#809let a, b;
->let a; let b;
[Cleanup] eslintone-var
#736+
should be on the new line instead of end of previous line [CLEANUP] eslintoperator-linebreak
#773obj.foo.apply(obj, args)
->foo.apply(obj, args)
[Cleanup] eslintprefer-spread
#808'My name is ' + name
->My name is ${name}
[Cleanup] eslintprefer-template
#745"
->'
[Cleanup] eslintquotes
#746//Comment
->// Comment
[Cleanup] eslintspaced-comment
#739a+b
->a + b
[Cleanup] eslintspace-infix-ops
#740Will leave
no-console
off.cc @HospitalRun/core-maintainers
The text was updated successfully, but these errors were encountered: