Skip to content

Commit

Permalink
refactor: minor linter improvements, add cspell ignore words for vsco…
Browse files Browse the repository at this point in the history
…de users
  • Loading branch information
a-h committed May 18, 2024
1 parent d9a13c4 commit 8c73ab9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cSpell.words": [
"blockquote",
"fieldset",
"figcaption",
"formatstring",
"goexpression",
"keygen",
"strs",
"templ"
]
}
2 changes: 1 addition & 1 deletion parser/v2/conditionalattributeparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var conditionalAttribute parse.Parser[ConditionalAttribute] = conditionalAttribu

type conditionalAttributeParser struct{}

func (_ conditionalAttributeParser) Parse(pi *parse.Input) (r ConditionalAttribute, ok bool, err error) {
func (conditionalAttributeParser) Parse(pi *parse.Input) (r ConditionalAttribute, ok bool, err error) {
start := pi.Index()

// Strip leading whitespace and look for `if `.
Expand Down
2 changes: 1 addition & 1 deletion parser/v2/forexpressionparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var forExpression parse.Parser[Node] = forExpressionParser{}

type forExpressionParser struct{}

func (_ forExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
func (forExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
var r ForExpression
start := pi.Index()

Expand Down
2 changes: 1 addition & 1 deletion parser/v2/switchexpressionparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var switchExpression parse.Parser[Node] = switchExpressionParser{}

type switchExpressionParser struct{}

func (_ switchExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
func (switchExpressionParser) Parse(pi *parse.Input) (n Node, ok bool, err error) {
var r SwitchExpression
start := pi.Index()

Expand Down

0 comments on commit 8c73ab9

Please sign in to comment.