diff --git a/.selene-schema.yml b/.selene-schema.yml new file mode 100644 index 0000000..ed335de --- /dev/null +++ b/.selene-schema.yml @@ -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 diff --git a/.stylua.toml b/.stylua.toml new file mode 100644 index 0000000..9ace380 --- /dev/null +++ b/.stylua.toml @@ -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 diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..d4b5ea1 --- /dev/null +++ b/selene.toml @@ -0,0 +1,7 @@ +std=".selene-schema" + +[lints] +global_usage = "allow" +mixed_table = "allow" +multiple_statements = "allow" +shadowing = "warn"