-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactored rules #10
Refactored rules #10
Conversation
@cbl6499 @martinlagler @Quehnie @mscharl @alexander-schranz Please review. Some rules are deprecated which could be replaced with the Additionally a rule to check the JSDoc has been deprecated, which could be replaced with the ℹ️ All available rules are available here: https://eslint.org/docs/latest/rules/ |
Install https://www.npmjs.com/package/eslint-plugin-import and use the plugin Additional rules that we use in our projects.
|
@cbl6499 Done, thank you! |
@thomasduenser All rules are ok for me but |
As discussed we will not include those two rules for the moment |
@@ -22,9 +22,10 @@ | |||
}, | |||
"homepage": "https://github.com/massiveart/eslint-config-ma#readme", | |||
"devDependencies": { | |||
"eslint": "^4.19.1" | |||
"eslint": "^8.37.0", | |||
"eslint-plugin-import": "^2.27.5" |
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 should be a normal dependency like stylelint prepend: https://github.com/massiveart/stylelint-config-ma/blob/c696964e740ce65776a6629708a84bc0fad0d508/package.json#L25
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.
@alexander-schranz Thanks, done!
@@ -1,4 +0,0 @@ | |||
import $ from 'jquery'; | |||
|
|||
export default $.Deferred(); |
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.
We should keep this test else eslint fixer does convert $.Deferred
to $.deferred
which actually targets a not existing jquery method:
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.
@alexander-schranz Done!
eslint
env
values"
with'