Skip to content
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

Config Base and Legacy #5

Merged
merged 8 commits into from
Oct 25, 2017
Merged

Config Base and Legacy #5

merged 8 commits into from
Oct 25, 2017

Conversation

williamcosta
Copy link
Contributor

Create a new config for legacy project to support es5 and es6:

  • add config to es5 with airbnb-base/legacy
  • add plugin jasmine-jquery to support tests with DOM

@@ -1,4 +1,7 @@
# eslint-config-getninjas

[![npm version](https://badge.fury.io/js/eslint-config-getninjas.svg)](https://badge.fury.io/js/eslint-config-getninjas)

Choose a reason for hiding this comment

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

👏

index.js Outdated
@@ -1,41 +1,11 @@
module.exports = {
extends: 'airbnb-base',

parser: 'babel-eslint',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this config no more necessary?

Copy link
Contributor Author

@williamcosta williamcosta Oct 20, 2017

Choose a reason for hiding this comment

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

This config is in common.js file.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, In fact I was also in doubt about leaving this config in common. Because in my view the ES5 does not need babel.

Choose a reason for hiding this comment

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

The parser config option isn't on common.js file. You can just add this there...

@@ -0,0 +1,32 @@
module.exports = {
Copy link
Contributor

@iondrimba iondrimba Oct 20, 2017

Choose a reason for hiding this comment

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

Congrats, very professional @williamcosta @nathpaiva 🙏

Choose a reason for hiding this comment

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

English, pls

}],
'class-methods-use-this': ['off', {}]
},
};
Copy link
Contributor

Choose a reason for hiding this comment

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

EOF

index.js Outdated
@@ -1,41 +1,11 @@
module.exports = {
extends: 'airbnb-base',

parser: 'babel-eslint',

Choose a reason for hiding this comment

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

The parser config option isn't on common.js file. You can just add this there...

@williamcosta
Copy link
Contributor Author

@felipeorlando @iondrimba e @eduardojmatos ontem fiz uns ajustes aqui.

@williamcosta williamcosta merged commit 55a191b into master Oct 25, 2017
@williamcosta williamcosta deleted the hackday/eslint-legacy branch October 25, 2017 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants