coffeelint.json
CoffeeLint configuration file
| 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
Properties
This rule checks to see that there is spacing before and after the arrow operator that declares a function. [default level: ignore]
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]
2 nested properties
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]
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]
1 nested properties
2 nested properties
Examine the complexity of your application. [default level: ignore]
1 nested properties
Prevents defining duplicate keys in object literals and classes. [default level: error]
Requires constructors with no parameters to include the parens. [default level: ignore]
This rule makes sure that parentheses are around comprehensions. [default level: warn]
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]
1 nested properties
This rule ensures your project uses only windows or unix line endings. [default level: ignore]
1 nested properties
This rule imposes a maximum line length on your code. [default level: error]
2 nested properties
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]
Checks the number of newlines between classes and other code. [default level: ignore]
1 nested properties
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]
Disallows declaring empty functions. The goal of this rule is that unintentional empty callbacks can be detected. [default level: ignore]
This rule prohibits empty parameter lists in function definitions. [default level: ignore]
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]
1 nested properties
This rule prohibits implicit parens on function calls. [default level: ignore]
This rule prohibits string interpolation in a single quoted string. [default level: ignore]
This rule warns about nested string interpolation, as it tends to make code harder to read and understand. [default level: warn]
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]
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]
This rule checks that no stand alone @ are in use, they are discouraged. [default level: ignore]
This rule forbids tabs in indentation. Enough said. [default level: error]
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]
This rule prohibits trailing semicolons, since they are needless cruft in CoffeeScript. [default level: error]
This rule forbids trailing whitespace in your code, since it is needless cruft. [default level: error]
2 nested properties
This rule prohibits double quotes unless string interpolation is used or the string contains single quotes. [default level: ignore]
Disallows defining functions with fat arrows when this is not used within the function. [default level: warn]
Requires constructors with parameters to include the parens. [default level: ignore]
This rule prohibits &&, ||, ==, != and !. Use and, or, is, isnt, and not instead. !! (for converting to a boolean) is ignored. [default level: ignore]
This rule enforces that operators have space around them. [default level: ignore]
This rule checks to make sure you have a space after commas. [default level: ignore]
This rule detects when changes are made by transform function, and warns that line numbers are probably incorrect. [default level: warn]
Definitions
Determines the error level