Module
Whine.Core.CommaFirstRecords
- Package
- purescript-whine-core
- Repository
- collegevine/purescript-whine
Checks that array literals are written comma-first style, with elements aligned vertically, one space to the right of the commas.
Single-line arrays are ok.
Several elements on the same line are ok, as long as the first one of them is aligned correctly.
-- Good:
{ x: 'foo'
, y: 42
, z: true
}
-- Good:
{ x: 'foo', y: 42, z: true }
-- Good:
{ x: 'foo', y: 42
, z: true
, w: false
, v: 0, u: 1
}
-- Bad:
{ x: 'foo'
, y: 42
, z: true
}
-- Bad:
{
x: 'foo',
y: 42,
z: true
}
-- Bad:
{ x: 'foo', y: 42,
z: true }
- Modules
- Vscode.
Client - Vscode.
Client. Configuration - Vscode.
Client. Executable - Vscode.
Client. FileSystemWatcher - Vscode.
Client. Workspace - Vscode.
Context - Vscode.
Events - Vscode.
Server. Capabilities - Vscode.
Server. Connection - Vscode.
Server. Diagnostic - Vscode.
Server. TextDocuments - Whine
- Whine.
Core. CaseBranchIndentation - Whine.
Core. CommaFirst - Whine.
Core. CommaFirstArrays - Whine.
Core. CommaFirstRecords - Whine.
Core. UndesirableFunctions - Whine.
Core. UndesirableModules - Whine.
Core. WhineRules - Whine.
Log - Whine.
Muting - Whine.
Prelude - Whine.
Print - Whine.
Runner - Whine.
Runner. Cli - Whine.
Runner. Config - Whine.
Runner. FS - Whine.
Runner. Glob - Whine.
Runner. LanguageServer - Whine.
Runner. PackageVersion - Whine.
Runner. Prelude - Whine.
Runner. Yaml - Whine.
Test - Whine.
Types - WhineM