This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
forked from tastejs/todomvc
-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update dependency jscs to v3 (master) #47
Open
appcues-wss
wants to merge
1
commit into
master
Choose a base branch
from
whitesource-remediate/master-jscs-3.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master)
Update dependency jscs to v3 (master) - autoclosed
Mar 27, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master) - autoclosed
Update dependency jscs to v3 (master)
Mar 31, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master)
Update dependency jscs to v3 (master) - autoclosed
May 8, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master) - autoclosed
Update dependency jscs to v3 (master)
May 8, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master)
Update dependency jscs to v3 (master) - autoclosed
Jun 14, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master) - autoclosed
Update dependency jscs to v3 (master)
Jun 15, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master)
Update dependency jscs to v3 (master) - autoclosed
Jun 16, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master) - autoclosed
Update dependency jscs to v3 (master)
Jun 19, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master)
Update dependency jscs to v3 (master) - autoclosed
Aug 13, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master) - autoclosed
Update dependency jscs to v3 (master)
Aug 14, 2023
appcues-wss
bot
changed the title
Update dependency jscs to v3 (master)
chore(deps): update dependency jscs to v3 (master)
Oct 30, 2023
appcues-wss
bot
changed the title
chore(deps): update dependency jscs to v3 (master)
chore(deps): update dependency jscs to v3 (master) - autoclosed
Dec 9, 2023
appcues-wss
bot
changed the title
chore(deps): update dependency jscs to v3 (master) - autoclosed
chore(deps): update dependency jscs to v3 (master)
Dec 13, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR contains the following updates:
^2.7.0
->^3.0.0
By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
jscs-dev/node-jscs (jscs)
v3.0.0
Compare Source
Hell yeah! 3.0 is here. First and foremost we rewrote every... single... rule. We fixed a plentiful amount of bugs (most of which were found during refactoring those rules using CST). This provides us the opportunity to include autofix for complicated rules like the brand new
disallowUnusedVariables
rule (see below).Breaking Changes
If you aren't a plugin writer or support build extensions (like grunt or gulp), etc you don't have to worry about anything.
We didn't rename/remove any rules. All you should have to do to update is just bump the
jscs
version in yourpackage
version to3.0.0
and be done with it.Configuration
These following config options have been replaced in 3.0:
--esnext
(-e) // enabled by default--esprima
(-s) and--esprimaOptions
// babylon is the underlying CST parser--verbose
// also enabled by default to show rule name when there is an errorOne thing to notice though: the
yandex
preset was removed. Since Yandex doesn't have official code style (don't look at the https://github.com/ymaps/codestyle), we were requested to remove itOne drawback from all these changes is that JSCS might be a little, just a little slower, so if you find any issues related to that - don't hesitate to drop us a line, or just drop us a line we are all friendly :).
New rules
Since this release is about rewrite of internal design, we adding only four new rules (all of them were added by our contributors!).
disallowUnusedVariables
by Brian SchempThat rule useful when you have
var x = <whatever>
and you don't export thatx
and don't use it. This rule will highlight that and remove it if you want.disallowSpacesInsideImportedObjectBraces
andrequireSpacesInsideImportedObjectBraces
by Maks SadowskyWhen you need or don't need additional parentheses -
requireUseStrict
Erik VoldShort and cool - ask you to use
"use strict"
pragma on top of the file if you so desire.requireImportAlphabetized
by Ray HammondKeeps your imports alphabetized, pretty handy way to keep your dependency in tidy state.
Presets
requireSpaceBeforeObjectValues
rule to airbnb preset (Oleg Gaidarenko)requireSpacesInsideImportedObjectBraces
to airbnb (Maks Sadowsky)Internal
There are a lot of internal changes but we like to keep this changelog short and tidy. We will continue to update this shortly.
v2.11.0
Compare Source
Spring release! Yeah, yeah, technically spring only comes in middle of the March (you nerds, you), but we're coming to you a bit earlier!
Anyways, there are three new rules, a couple of changes for the
airbnb
preset and important fixes fordisallowSpacesInsideTemplateStringPlaceholders
andvalidateQuoteMarks
(for all you ES7 lovers).New Rules
requireSpaceBeforeDestructuredValues
by Maks SadowskyEnforces colon spacing after destructuring assignment i.e.
requireSpaceBeforeObjectValues
but for destructuring.disallowArrayDestructuringReturn
by Maks SadowskyEnforces the 5:3 verse of airbnb code style, which prohibits use of array destructuring for thy
CallExpressions
.requireNewlineBeforeSingleStatementsInIf
by Brian SchempEnforces using newlines in your parenthesesless code.
Presets
requireCamelCaseOrUpperCaseIdentifiers
in airbnb (Oleg Gaidarenko)disallowArrayDestructuringReturn
to airbnb preset (Maks Sadowsky)Bug fixes
disallowSpacesInsideTemplateStringPlaceholders
: check template literal (ikokostya)validateQuoteMarks
: do not throw on es7 decorators (Oleg Gaidarenko)Other commits (as always) are omitted, since they're all about internal stuff and we care about your viewing pleasure.
v2.10.1
Compare Source
Bug fixes
requireSpaceBeforeKeywords
#2135v2.10.0
Compare Source
Happy Presidents Day!
In this release, it's just some additional rules to update to the airbnb preset, new rules, and fixes.
Preset Changes
maximumLineLength
to theairbnb
preset (reference) (Oleg Gaidarenko)disallowSpacesInsideTemplateStringPlaceholders
to theairbnb
preset (not explicit but used in examples) (Oleg Gaidarenko)disallowNewlineBeforeBlockStatements
rule to themdcs
preset (reference) (Mauricio Massaia)New Rules
disallowSpacesInsideTemplateStringPlaceholders
(ikokostya)
requireImportsAlphabetized
(Ray Hammond)Rule Updates
requireSpaceBeforeKeywords
: add aallExcept
option for filtering out default keywords (gpiress)Bug fixes
requireNumericLiterals
: miss if first argument is an Identifier (Robert Jackson)disallowSpacesInsideTemplateStringPlaceholders
: skip the edge case (Oleg Gaidarenko)requirePaddingNewLinesBeforeExport
: exclude if only statement in block (Brian Schemp)maximumLineLength
: some nodes might contain null values (Oleg Gaidarenko)Docs
v2.9.0
Compare Source
Whoo a release during this blizzard! Hopefully, this will be our last release before we start pushing out pre-release versions of 3.0. (If necessary, we can push bug fixes to 2.x)
The plan:
2.9.0
release2.x
branch off ofmaster
master
to be the3.0
branchNew Rules
requireCapitalizedConstructorsNew
(Alexander O'Mara)Rule Updates
validateNewlineAfterArrayElements
: add autofix support for this rule (Joeri de Gooijer)This was @joerideg's first PR, so congrats and hope to see more contributions (not necessarily here)!
requireSemicolons
: account for stage-2ClassProperty
(Henry Zhu)requireCamelCaseOrUpperCaseIdentifiers
: add extra optionsallowedPrefixes, allowedSuffixes, allExcept
For options:
{ allowedSuffixes: ["_dCel", {regex:{pattern:"_[kMG]?Hz"}}] }
requireNewlineBeforeBlockStatements
,disallowNewlineBeforeBlockStatements
: account forSwitchStatement
Presets
airbnb
: Enforce rule 25.1 (Joe Bartlett)requireDollarBeforejQueryAssignment
airbnb
: Enforce rule 7.11 (Joe Bartlett)google
: Enforce naming rules"requireCamelCaseOrUpperCaseIdentifiers": { "allowedPrefixes": ["opt_"], "allExcept": ["var_args"] }
Bug fixes
requireEnhancedObjectLiterals
: Don't error for computed properties (Henry Zhu)requireTemplateStrings
: should not report string to binary (Oleg Gaidarenko)requireVarDeclFirst
: be aware of the comments (Kushan Joshi)Misc
OVERVIEW.md
: add the Visual Studio Code extension to list of "Friendly Packages" (Tyler Hughes)v2.8.0
Compare Source
Happy new year! Small changes this time, small, but important fixes which still warrants the minor bump.
Aside from bug fixes, this update includes improvement for the airbnb preset and
allExcept
option for thedisallowNewlineBeforeBlockStatements