Skip to content

Commit

Permalink
Initial commit: Linter and formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeioth committed May 20, 2024
1 parent 85edc7e commit b2d856b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .selene-schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
base: lua51+lua52
name: .selene-schema
globals:
after_each:
args:
- type: function
assert.equals:
args:
- type: any
- type: any
- required: false
type: any
assert.is_not:
any: true
assert.same:
args:
- type: any
- type: any
assert.spy:
args:
- type: any
assert.stub:
args:
- type: any
assert.truthy:
args:
- type: any
before_each:
args:
- type: function
describe:
args:
- type: string
- type: function
it:
args:
- type: string
- type: function
jit:
any: true
vim:
any: true
8 changes: 8 additions & 0 deletions .stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
call_parentheses = "Always"
collapse_simple_statement = "Never"
column_width = 79
indent_type = "Spaces"
indent_width = 2
line_endings = "Unix"
quote_style = "AutoPreferSingle"
remove_trailing_separators = false
7 changes: 7 additions & 0 deletions selene.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
std=".selene-schema"

[lints]
global_usage = "allow"
mixed_table = "allow"
multiple_statements = "allow"
shadowing = "warn"

0 comments on commit b2d856b

Please sign in to comment.