Skip to content

Add .eslintrc and .editorconfig #1

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

Merged
merged 5 commits into from
Jul 5, 2015
Merged

Add .eslintrc and .editorconfig #1

merged 5 commits into from
Jul 5, 2015

Conversation

richardscarrott
Copy link
Member

@mderrick @albertkang

I've merged our eslint rules -- you might want to check over them as it was hard to diff them as my list didn't contain any of the eslint default rules so let me know if you notice any that I've omitted.

The differences I found were:

  • You had "no-reserved-keys": 2 however I don't think we need this as we're going to be compiling our client side code from es6 to es3 syntax.
  • I had "valid-jsdoc": 1 rather than "valid-jsdoc": 2 so I went with yours.

Once this is merged in I'll make a change to the boilerplate to use these linting rules. With re: to .editorconfig I think we'll have to create a gulp task which copies it from this repo on demand (and check the copy into the boilerplate).

Also I'll add a .eslintignorerc to the boilerplate to ignore node_modules

"no-unneeded-ternary": 2,
"object-curly-spacing": 2,
"one-var": 2,
"one-var": [2, "never"],
Copy link
Member Author

Choose a reason for hiding this comment

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

dupe

"extends": "./.eslintrc-default",
"env": {
"browser": true,
"node": true,
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this anymore now we are using es6 modules.

@mderrick
Copy link
Member

mderrick commented Jul 5, 2015

👍

richardscarrott added a commit that referenced this pull request Jul 5, 2015
Add .eslintrc and .editorconfig
@richardscarrott richardscarrott merged commit 43483f5 into master Jul 5, 2015
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