-
Notifications
You must be signed in to change notification settings - Fork 132
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
Fix the failing linting step #723
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6c83058
Upgrade the eslint package, lint all the files, add rules to be ignored
ingeniumed f825600
Tweak the packages installed
ingeniumed 59ec23d
Merge branch 'fix/gh-actions' of github.com:Automattic/Edit-Flow into…
ingeniumed 719a70c
Update build output
ingeniumed 9df1b9e
Do the linting first in the workflow
ingeniumed 6dbfc2b
Scroll to categories button before clicking, temporarily add addition…
alecgeatches 1cd8c77
Wait for categories button before using it
alecgeatches 95ee96b
Ignore unrelated Chromium error in logs
alecgeatches b276f5a
Add screenshot on failure
alecgeatches d44f5dd
Use selectors instead of xpath for clicking elements
alecgeatches ebbd4de
Try even more e2e test runs
alecgeatches cc828c5
Remove temporary code to run e2e tests more than once
alecgeatches 87d4da1
Restore the non-fixed version of the common modules and ignore them f…
ingeniumed b87cfe9
Fix the lint command
ingeniumed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
*.build.js | ||
node_modules | ||
vendor | ||
*.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
require( '@automattic/eslint-plugin-wpvip/init' ); | ||
|
||
module.exports = { | ||
extends: [ 'plugin:@automattic/wpvip/recommended' ], | ||
root: true, | ||
env: { | ||
jest: true, | ||
}, | ||
rules: { | ||
"no-prototype-builtins": 0, | ||
"no-eval": 0, | ||
"complexity": 0, | ||
"camelcase": 0, | ||
"no-undef": 0, | ||
"wpcalypso/import-docblock": 0, | ||
"valid-jsdoc": 0, | ||
"react/prop-types": 0, | ||
"react/react-in-jsx-scope": 0, | ||
"react-hooks/rules-of-hooks": 0, | ||
"no-redeclare": 0, | ||
"no-shadow": 0, | ||
"no-nested-ternary": 0, | ||
"no-var": 0, | ||
"no-unused-vars": 0, | ||
"no-useless-escape": 0, | ||
"prefer-const": 0, | ||
"no-global-assign": 0, | ||
"no-constant-binary-expression": 0, | ||
"valid-typeof": 0, | ||
"eqeqeq": 0, | ||
"radix": 0, | ||
"no-eq-null": 0, | ||
"array-callback-return": 0, | ||
"no-unused-expressions": 0, | ||
"no-alert": 0, | ||
"no-lonely-if": 0, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
vendor | ||
*.php | ||
package-lock.json | ||
package.json | ||
*.build.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"@automattic/eslint-plugin-wpvip/prettierrc" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Custom Statuses | ||
import './custom-status/block' | ||
import './custom-status/block'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@ingeniumed Do you think any of these rules are more important than the others and we can apply them now? Or maybe we can make issues to address the more important exceptions (
no-eval
) soon. I get ignoring huge refactorings likevalid-jsdoc
, but it'd be great if low-hanging code quality and safety rules would be implemented.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.
I wanted to avoid adding more scope to this PR by resolving those, that's really why I avoided adding it in here. I also think as we build more features into this plugin, we are likely to change/upgrade that code (which might happen anyways thanks to the package modernizations)