Test: Added StandardJS (Static Analysis) #97
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.
What problems does this tool catch?
This tool catches style issues, such as inconsistent indentation, as well as simple syntactical issues, such as using
==or===, or detecting unused variables.What types of customization are possible or necessary?
We can define our own globals and environments. However, we cannot change the syntax rules.
How can/should this tool be integrated into a development process?
This tool should be used throughout integration, and should be used to fix syntax issues in code as it is committed to the repository.
Are there many false positives? False negatives? True positive reports about things you don’t care about?
There are false positives for when our globals are not added, for example when we call "it" in our testing suite. There are also true positives for when the indents are made of tabs and not spaces, which directly contradicts the syntax rules for eslint and is unhelpful.
Strengths: easy to implement, does not require extensive dependencies.
Weaknesses: The formatting conventions the
standardtests against conflicts with those ofeslint. For example,eslintexpects indents to be made up of tabs, whilestandardexpects them to be made up of spaces. Thus, it is illogical to put both in the testing suite.Changes made: ran
standard --fix, thennpm run lint -- --fix. also addedstandardto the tests inpackage.json.Attached is an excerpt and a screenshot of the terminal output when running

standard.standard_terminal_output.txt