From a0976d8bfd77dcf9c5d869956937d3154149ab6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 4 Mar 2019 13:36:40 +0100 Subject: [PATCH] Enable CoffeeScript Lint in Hound We already had a CoffeeScript Lint configuration file, but we weren't using it. We're replacing it with a more basic one. --- .coffeelint.json | 41 +++++++++++++++++ .hound.yml | 4 +- coffeelint.json | 114 ----------------------------------------------- 3 files changed, 44 insertions(+), 115 deletions(-) create mode 100644 .coffeelint.json delete mode 100644 coffeelint.json diff --git a/.coffeelint.json b/.coffeelint.json new file mode 100644 index 000000000..9b00e8a75 --- /dev/null +++ b/.coffeelint.json @@ -0,0 +1,41 @@ +{ + "arrow_spacing": { + "level": "error" + }, + "braces_spacing": { + "level": "error", + "spaces": 1 + }, + "colon_assignment_spacing": { + "level": "error", + "spacing": { + "left": 0, + "right": 1 + } + }, + "eol_last": { + "level": "error" + }, + "indentation": { + "value": 2 + }, + "line_endings": { + "level": "error" + }, + "max_line_length": { + "value": 100, + "level": "error", + "limitComments": true + }, + "no_trailing_whitespace": { + "level": "error", + "allowed_in_comments": false, + "allowed_in_empty_lines": false + }, + "space_operators": { + "level": "error" + }, + "spacing_after_comma": { + "level": "error" + } +} diff --git a/.hound.yml b/.hound.yml index 26cdad927..b311fe432 100644 --- a/.hound.yml +++ b/.hound.yml @@ -1,4 +1,6 @@ rubocop: config_file: .rubocop_basic.yml scss: - config_file: .scss-lint.yml \ No newline at end of file + config_file: .scss-lint.yml +coffeescript: + config_file: .coffeelint.json diff --git a/coffeelint.json b/coffeelint.json deleted file mode 100644 index c69c63f10..000000000 --- a/coffeelint.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "coffeescript_error": { - "level": "error" - }, - "arrow_spacing": { - "name": "arrow_spacing", - "level": "warn" - }, - "no_tabs": { - "name": "no_tabs", - "level": "error" - }, - "no_trailing_whitespace": { - "name": "no_trailing_whitespace", - "level": "warn", - "allowed_in_comments": false, - "allowed_in_empty_lines": true - }, - "max_line_length": { - "name": "max_line_length", - "value": 140, - "level": "warn", - "limitComments": true - }, - "line_endings": { - "name": "line_endings", - "level": "ignore", - "value": "unix" - }, - "no_trailing_semicolons": { - "name": "no_trailing_semicolons", - "level": "error" - }, - "indentation": { - "name": "indentation", - "value": 2, - "level": "error" - }, - "camel_case_classes": { - "name": "camel_case_classes", - "level": "error" - }, - "colon_assignment_spacing": { - "name": "colon_assignment_spacing", - "level": "warn", - "spacing": { - "left": 0, - "right": 1 - } - }, - "no_implicit_braces": { - "name": "no_implicit_braces", - "level": "ignore", - "strict": true - }, - "no_plusplus": { - "name": "no_plusplus", - "level": "ignore" - }, - "no_throwing_strings": { - "name": "no_throwing_strings", - "level": "error" - }, - "no_backticks": { - "name": "no_backticks", - "level": "error" - }, - "no_implicit_parens": { - "name": "no_implicit_parens", - "level": "ignore" - }, - "no_empty_param_list": { - "name": "no_empty_param_list", - "level": "warn" - }, - "no_stand_alone_at": { - "name": "no_stand_alone_at", - "level": "ignore" - }, - "space_operators": { - "name": "space_operators", - "level": "warn" - }, - "duplicate_key": { - "name": "duplicate_key", - "level": "error" - }, - "empty_constructor_needs_parens": { - "name": "empty_constructor_needs_parens", - "level": "ignore" - }, - "cyclomatic_complexity": { - "name": "cyclomatic_complexity", - "value": 10, - "level": "ignore" - }, - "newlines_after_classes": { - "name": "newlines_after_classes", - "value": 3, - "level": "ignore" - }, - "no_unnecessary_fat_arrows": { - "name": "no_unnecessary_fat_arrows", - "level": "warn" - }, - "missing_fat_arrows": { - "name": "missing_fat_arrows", - "level": "ignore" - }, - "non_empty_constructor_needs_parens": { - "name": "non_empty_constructor_needs_parens", - "level": "ignore" - } -}