Type object
File match coffeelint.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/coffeelint-json/latest.json
Source https://www.schemastore.org/coffeelint.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

arrow_spacing

This rule checks to see that there is spacing before and after the arrow operator that declares a function. [default level: ignore]

All of: base object
braces_spacing object

This rule checks to see that there is the proper spacing inside curly braces. The spacing amount is specified by spaces. The spacing amount for empty objects is specified by empty_object_spaces. [default level: ignore]

All of: base object
2 nested properties
empty_object_spaces integer
Values: 0 1
spaces integer
Values: 0 1
camel_case_classes

This rule mandates that all class names are CamelCased. Camel casing class names is a generally accepted way of distinguishing constructor functions - which require the new prefix to behave properly - from plain old functions. [default level: error]

All of: base object
coffeescript_error

[default level: error]

All of: base object
colon_assignment_spacing object

This rule checks to see that there is spacing before and after the colon in a colon assignment (i.e., classes, objects). [default level: ignore]

All of: base object
1 nested properties
spacing object
2 nested properties
left integer
Values: 0 1
right integer
Values: 0 1
cyclomatic_complexity object

Examine the complexity of your application. [default level: ignore]

All of: base object
1 nested properties
value integer
duplicate_key

Prevents defining duplicate keys in object literals and classes. [default level: error]

All of: base object
empty_constructor_needs_parens

Requires constructors with no parameters to include the parens. [default level: ignore]

All of: base object
ensure_comprehensions

This rule makes sure that parentheses are around comprehensions. [default level: warn]

All of: base object
eol_last

Checks that the file ends with a single newline. [default level: ignore]

All of: base object
indentation object

This rule imposes a standard number of spaces to be used for indentation. Since whitespace is significant in CoffeeScript, it's critical that a project chooses a standard indentation format and stays consistent. Other roads lead to darkness. [default level: error]

All of: base object
1 nested properties
value integer
line_endings object

This rule ensures your project uses only windows or unix line endings. [default level: ignore]

All of: base object
1 nested properties
value string
Values: "unix" "windows"
max_line_length object

This rule imposes a maximum line length on your code. [default level: error]

All of: base object
2 nested properties
value integer
limitComments boolean
missing_fat_arrows

Warns when you use this inside a function that wasn't defined with a fat arrow. This rule does not apply to methods defined in a class, since they have this bound to the class instance (or the class itself, for class methods). [default level: ignore]

All of: base object
newlines_after_classes object

Checks the number of newlines between classes and other code. [default level: ignore]

All of: base object
1 nested properties
value integer
no_backticks

Backticks allow snippets of JavaScript to be embedded in CoffeeScript. While some folks consider backticks useful in a few niche circumstances, they should be avoided because so none of JavaScript's 'bad parts', like with and eval, sneak into CoffeeScript. [default level: error]

All of: base object
no_debugger

This rule detects the debugger statement. [default level: warn]

All of: base object
no_empty_functions

Disallows declaring empty functions. The goal of this rule is that unintentional empty callbacks can be detected. [default level: ignore]

All of: base object
no_empty_param_list

This rule prohibits empty parameter lists in function definitions. [default level: ignore]

All of: base object
no_implicit_braces object

This rule prohibits implicit braces when declaring object literals. Implicit braces can make code more difficult to understand, especially when used in combination with optional parenthesis. [default level: ignore]

All of: base object
1 nested properties
strict boolean
no_implicit_parens

This rule prohibits implicit parens on function calls. [default level: ignore]

All of: base object
no_interpolation_in_single_quotes

This rule prohibits string interpolation in a single quoted string. [default level: ignore]

All of: base object
no_nested_string_interpolation

This rule warns about nested string interpolation, as it tends to make code harder to read and understand. [default level: warn]

All of: base object
no_plusplus

This rule forbids the increment and decrement arithmetic operators. Some people believe the ++ and -- to be cryptic and the cause of bugs due to misunderstandings of their precedence rules. [default level: ignore]

All of: base object
no_private_function_fat_arrows

Warns when you use the fat arrow for a private function inside a class definition scope. It is not necessary and it does not do anything. [default level: warn]

All of: base object
no_stand_alone_at object

This rule checks that no stand alone @ are in use, they are discouraged. [default level: ignore]

All of: base object
no_tabs object

This rule forbids tabs in indentation. Enough said. [default level: error]

All of: base object
no_this

This rule prohibits this. Use @ instead. [default level: ignore]

All of: base object
no_throwing_strings

This rule forbids throwing string literals or interpolations. While JavaScript (and CoffeeScript by extension) allow any expression to be thrown, it is best to only throw Error objects, because they contain valuable debugging information like the stack trace. [default level: error]

All of: base object
no_trailing_semicolons

This rule prohibits trailing semicolons, since they are needless cruft in CoffeeScript. [default level: error]

All of: base object
no_trailing_whitespace object

This rule forbids trailing whitespace in your code, since it is needless cruft. [default level: error]

All of: base object
2 nested properties
allowed_in_comments boolean
allowed_in_empty_lines boolean
no_unnecessary_double_quotes

This rule prohibits double quotes unless string interpolation is used or the string contains single quotes. [default level: ignore]

All of: base object
no_unnecessary_fat_arrows

Disallows defining functions with fat arrows when this is not used within the function. [default level: warn]

All of: base object
non_empty_constructor_needs_parens

Requires constructors with parameters to include the parens. [default level: ignore]

All of: base object
prefer_english_operator

This rule prohibits &&, ||, ==, != and !. Use and, or, is, isnt, and not instead. !! (for converting to a boolean) is ignored. [default level: ignore]

All of: base object
space_operators

This rule enforces that operators have space around them. [default level: ignore]

All of: base object
spacing_after_comma

This rule checks to make sure you have a space after commas. [default level: ignore]

All of: base object
transform_messes_up_line_numbers

This rule detects when changes are made by transform function, and warns that line numbers are probably incorrect. [default level: warn]

All of: base object

Definitions

base object
level string

Determines the error level

Values: "error" "warn" "ignore"