From 66ce0019614e22bcbfb0dccd725bb3a4cab3d700 Mon Sep 17 00:00:00 2001 From: Desmond Brand Date: Sun, 10 Aug 2014 21:41:55 -0700 Subject: [PATCH] Move coffeelint settings to external file The motivation is for this is to allow `coffeelint` config to be shared by `script/grunt coffeelint`, global `coffeelint` and inline linting via `AtomLinter`. Test Plan: Made some deliberate lint errors then ran `script/grunt coffeelint` and verified the output looked the same with and without this change. --- build/Gruntfile.coffee | 7 +------ coffeelint.json | 11 +++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 coffeelint.json diff --git a/build/Gruntfile.coffee b/build/Gruntfile.coffee index fed064c76..6b1dae4a8 100644 --- a/build/Gruntfile.coffee +++ b/build/Gruntfile.coffee @@ -144,12 +144,7 @@ module.exports = (grunt) -> coffeelint: options: - no_empty_param_list: - level: 'error' - max_line_length: - level: 'ignore' - indentation: - level: 'ignore' + configFile: 'coffeelint.json' src: [ 'dot-atom/**/*.coffee' 'exports/**/*.coffee' diff --git a/coffeelint.json b/coffeelint.json new file mode 100644 index 000000000..b3bed36b7 --- /dev/null +++ b/coffeelint.json @@ -0,0 +1,11 @@ +{ + "indentation": { + "level": "ignore" + }, + "max_line_length": { + "level": "ignore" + }, + "no_empty_param_list": { + "level": "error" + } +}