Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #215 from torn4dom4n/master
Browse files Browse the repository at this point in the history
Using coffeelint support
  • Loading branch information
Wliu authored Feb 25, 2017
2 parents ff8556c + 1c832bb commit 3b2c525
Show file tree
Hide file tree
Showing 11 changed files with 122 additions and 122 deletions.
1 change: 1 addition & 0 deletions .coffeelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spec/fixtures
27 changes: 1 addition & 26 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@ module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')

coffee:
glob_to_multiple:
expand: true
cwd: 'src'
src: ['**/*.coffee']
dest: 'lib'
ext: '.js'

coffeelint:
options:
no_empty_param_list:
level: 'error'
max_line_length:
level: 'ignore'
indentation:
level: 'ignore'

src: ['src/*.coffee']
test: ['spec/*.coffee']
gruntfile: ['Gruntfile.coffee']

shell:
test:
command: 'node node_modules/.bin/jasmine-focused --coffee --captureExceptions --forceexit spec'
Expand All @@ -38,15 +17,11 @@ module.exports = (grunt) ->
stderr: true
failOnError: true

grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-shell')
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-atomdoc')

grunt.registerTask 'clean', ->
require('rimraf').sync('lib')
require('rimraf').sync('api.json')

grunt.registerTask('lint', ['coffeelint'])
grunt.registerTask('default', ['coffee', 'lint'])
grunt.registerTask('test', ['coffee', 'lint', 'shell:test'])
grunt.registerTask('test', ['shell:test'])
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Atom TextBuffer Core
[![OS X Build Status](https://travis-ci.org/atom/text-buffer.svg?branch=master)](https://travis-ci.org/atom/text-buffer)
[![macOS Build Status](https://travis-ci.org/atom/text-buffer.svg?branch=master)](https://travis-ci.org/atom/text-buffer)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/48xl8do1sm2thf5p/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/text-buffer/branch/master)
[![Dependency Status](https://david-dm.org/atom/text-buffer.svg)](https://david-dm.org/atom/text-buffer)

Expand Down
37 changes: 37 additions & 0 deletions coffeelint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"max_line_length": {
"level": "ignore"
},
"no_empty_param_list": {
"level": "error"
},
"arrow_spacing": {
"level": "error"
},
"no_interpolation_in_single_quotes": {
"level": "error"
},
"no_debugger": {
"level": "error"
},
"prefer_english_operator": {
"level": "error"
},
"colon_assignment_spacing": {
"spacing": {
"left": 0,
"right": 1
},
"level": "error"
},
"braces_spacing": {
"spaces": 0,
"level": "error"
},
"spacing_after_comma": {
"level": "error"
},
"no_stand_alone_at": {
"level": "error"
}
}
15 changes: 1 addition & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"coffee-cache": "^0.2.0",
"coffee-script": "^1.10.0",
"coffeelint": "^1.14.2",
"coffeelint": "1.16.0",
"dedent": "^0.6.0",
"electron": "^1.4.0",
"eslint": "2.2.0",
Expand All @@ -34,8 +34,6 @@
"grunt": "^0.4.5",
"grunt-atomdoc": "^1.0.1",
"grunt-cli": "^0.1.13",
"grunt-coffeelint": "^0.0.15",
"grunt-contrib-coffee": "^0.13.0",
"grunt-shell": "^1.1.2",
"jasmine": "^2.4.1",
"jasmine-core": "^2.4.1",
Expand All @@ -57,16 +55,5 @@
"pathwatcher": "6.7.1",
"serializable": "^1.0.3",
"underscore-plus": "^1.0.0"
},
"coffeelintConfig": {
"no_empty_param_list": {
"level": "error"
},
"max_line_length": {
"level": "ignore"
},
"indentation": {
"level": "ignore"
}
}
}
Loading

0 comments on commit 3b2c525

Please sign in to comment.