Skip to content

Es6 refactor#10

Merged
shellscape merged 8 commits intomasterfrom
es6-refactor
Jan 11, 2017
Merged

Es6 refactor#10
shellscape merged 8 commits intomasterfrom
es6-refactor

Conversation

@shellscape
Copy link
Owner

Fixed a few bugs. Got rid of Babel.

@shellscape shellscape requested review from jwilsson and kokarn January 9, 2017 20:59
Copy link
Collaborator

@jwilsson jwilsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really nice, just some thoughts.

gulpfile.js Outdated
@@ -0,0 +1,32 @@
'use strict';

const del = require('del');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is unused, right?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦑 (closest thing to squashed i could find)


replaceWith (...nodes) {
replaceWith () {
let nodes = Array.prototype.slice.call(arguments);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 of one, half dozen of another :)

{
"name": "postcss-values-parser",
"version": "0.1.8",
"version": "1.0.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! 🎉

package.json Outdated
"babel-preset-stage-0": "^6.3.13",
"chai": "3.5.0",
"chai-shallow-deep-equal": "^1.4.0",
"del": "^2.2.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a friendly reminder to delete it here as well.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦑

test/word.js Outdated
]
},
{
it: 'should parse custom variables',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy/paste error from above?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦑

@jwilsson
Copy link
Collaborator

Something to think about: I've been thinking of publishing a eslint-config-lesshint but we disagree on some things (brace placement, spacing, etc.) 😉 . But that's always easy to override.

value = word.slice(ind, index),
node;

if (~hasAt.indexOf(ind)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a really good reason for includes over indexOf?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit easier to read IMO, but just a thought.

@shellscape
Copy link
Owner Author

re: the eslint config, yeah I'm planning on a shared config for all my projects as well. it's on my todo list. also need to get one going for the company I work for.

@shellscape shellscape merged commit 6726898 into master Jan 11, 2017
@shellscape shellscape deleted the es6-refactor branch January 11, 2017 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants