-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
@@ -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) |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
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 🙏
There was a problem hiding this comment.
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', {}] | ||
}, | ||
}; |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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...
@felipeorlando @iondrimba e @eduardojmatos ontem fiz uns ajustes aqui. |
Create a new config for legacy project to support es5 and es6:
airbnb-base/legacy
jasmine-jquery
to support tests with DOM