Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Rule name changes rollup #1834

Closed
14 tasks
hzoo opened this issue Oct 2, 2015 · 2 comments
Closed
14 tasks

Rule name changes rollup #1834

hzoo opened this issue Oct 2, 2015 · 2 comments

Comments

@hzoo
Copy link
Member

hzoo commented Oct 2, 2015

Rule Renames


Remove deprecated values


Rework options to use allExcept


Newline name consistency #853

  • newline or newLine or NewLine, lineBreak, lineFeed, etc

disallowKeywordsOnNewLine
disallowNewlineBeforeBlockStatements
disallowObjectKeysOnNewLine
disallowPaddingNewLinesAfterBlocks
disallowPaddingNewLinesAfterUseStrict
disallowPaddingNewLinesBeforeExport
disallowPaddingNewlinesBeforeKeywords
disallowPaddingNewLinesBeforeLineComments
disallowPaddingNewlinesInBlocks
disallowPaddingNewLinesInObjects
requireBlocksOnNewline
requireKeywordsOnNewLine
requireNewlineBeforeBlockStatements
requireObjectKeysOnNewLine
requirePaddingNewLineAfterVariableDeclaration
requirePaddingNewLinesAfterBlocks
requirePaddingNewLinesAfterUseStrict
requirePaddingNewLinesBeforeExport
requirePaddingNewlinesBeforeKeywords
requirePaddingNewLinesBeforeLineComments
requirePaddingNewlinesInBlocks
requirePaddingNewLinesInObjects
validateNewlineAfterArrayElements

disallowCommaBeforeLineBreak
disallowMultipleLineBreaks
disallowOperatorBeforeLineBreak
requireCommaBeforeLineBreak
requireLineBreakAfterVariableAssignment
requireOperatorBeforeLineBreak
validateLineBreaks

requireLineFeedAtFileEnd

Singular vs. Plural

  • ?

Function Spacing rules

  • ?
    We should combine/deprecated old ones (require/disallow)
  • requireSpacesinFunction
  • requireSpacesinFunctionExpression
  • requireSpacesinFunctionDeclaration
  • requireSpacesinNamedFunctionExpression
  • requireSpacesinAnonymousFunctionExpression

spaces around instead of before/after

If not move all the last 4 rules into requiresSpacesInFunction with options, at least remove named/anon and move into functionexpression. Otherwise for any function spacing rule change we need to change 20 files (example is with supporting async)

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@jacksonrayhamilton
Copy link
Contributor

This doesn't have to be breaking; you could define aliases.

@hzoo hzoo changed the title Breaking: Rule name changes rollup Rule name changes rollup Oct 3, 2015
@hzoo
Copy link
Member Author

hzoo commented Oct 3, 2015

We can do the aliases and then remove in next version yeah.

@mdevils mdevils mentioned this issue Oct 8, 2015
16 tasks
@hzoo hzoo added the orphaned label Apr 15, 2016
@hzoo hzoo closed this as completed Apr 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants