Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Fixing trivial ESLint checks #429

Merged

Conversation

davidmsibley
Copy link
Contributor

Fixing the grab bag of style misgivings, and pulling in the changes from master.


Contributor License Agreement adherence:

package.json Outdated
"max-len": "warn",
"promise/catch-or-return": "warn",
"promise/always-return": "warn",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the list of rules that have the most violations. With the misc violations fixed, we can go through one by one to fix these.

Copy link
Contributor

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

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

Awesome! 🥇
LGTM!

package.json Outdated
@@ -104,7 +104,7 @@
"eslintConfig": {
"root": true,
"parserOptions": {
"ecmaVersion": 5
"ecmaVersion": 6
Copy link
Contributor

Choose a reason for hiding this comment

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

What was causing errors parsing with the ES5 standard?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

almost everything is ES5 except tools/uw-frame-static/build.js

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and unfortunately I can't change versions of the parser per file, it's a project level thing.

Copy link
Contributor

@ChristianMurphy ChristianMurphy May 4, 2017

Choose a reason for hiding this comment

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

Parser can be changed per folder.
an .eslintrc.yml or .eslintrc.json file in a folder will override project level configuration.

Copy link
Contributor

Choose a reason for hiding this comment

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

also configurations are merged, so only the parserOptions property would need to be set.

@davidmsibley davidmsibley mentioned this pull request May 4, 2017
1 task
@davidmsibley davidmsibley merged commit 1a00a39 into uPortal-Attic:eslint-refactor May 4, 2017
@davidmsibley davidmsibley deleted the eslint-passtests branch May 5, 2017 19:29
@davidmsibley davidmsibley added this to the 5.0.0 milestone Aug 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants