Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #58 from AtomLinter/coffeelint_and_travis
Browse files Browse the repository at this point in the history
CI, coffeelint and travis
  • Loading branch information
arusakov committed Feb 29, 2016
2 parents 1b3bc83 + 51ea12d commit b857075
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
node_js:
- "4.1"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
linter-tslint
=========================
==============
[![Build Status](https://travis-ci.org/AtomLinter/linter-tslint.svg?branch=master)](https://travis-ci.org/AtomLinter/linter-tslint)

This linter plugin for AtomLinter provides an interface to [tslint](https://github.com/palantir/tslint). It will be used with files that have the "TypeScript" or "TypeScriptReact" syntax.

Expand Down
135 changes: 135 additions & 0 deletions coffeelint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"arrow_spacing": {
"level": "error"
},
"braces_spacing": {
"level": "ignore",
"spaces": 0,
"empty_object_spaces": 0
},
"camel_case_classes": {
"level": "error"
},
"coffeescript_error": {
"level": "error"
},
"colon_assignment_spacing": {
"level": "error",
"spacing": {
"left": 0,
"right": 1
}
},
"cyclomatic_complexity": {
"level": "ignore",
"value": 10
},
"duplicate_key": {
"level": "error"
},
"empty_constructor_needs_parens": {
"level": "ignore"
},
"ensure_comprehensions": {
"level": "warn"
},
"eol_last": {
"level": "error"
},
"indentation": {
"value": 2,
"level": "error"
},
"line_endings": {
"level": "error",
"value": "unix"
},
"max_line_length": {
"value": 80,
"level": "error",
"limitComments": true
},
"missing_fat_arrows": {
"level": "ignore",
"is_strict": false
},
"newlines_after_classes": {
"value": 2,
"level": "error"
},
"no_backticks": {
"level": "error"
},
"no_debugger": {
"level": "error",
"console": false
},
"no_empty_functions": {
"level": "error"
},
"no_empty_param_list": {
"level": "error"
},
"no_implicit_braces": {
"level": "ignore",
"strict": true
},
"no_implicit_parens": {
"level": "ignore",
"strict": true
},
"no_interpolation_in_single_quotes": {
"level": "error"
},
"no_nested_string_interpolation": {
"level": "warn"
},
"no_plusplus": {
"level": "error"
},
"no_private_function_fat_arrows": {
"level": "warn"
},
"no_stand_alone_at": {
"level": "ignore"
},
"no_tabs": {
"level": "error"
},
"no_this": {
"level": "error"
},
"no_throwing_strings": {
"level": "error"
},
"no_trailing_semicolons": {
"level": "error"
},
"no_trailing_whitespace": {
"level": "error",
"allowed_in_comments": false,
"allowed_in_empty_lines": true
},
"no_unnecessary_double_quotes": {
"level": "error"
},
"no_unnecessary_fat_arrows": {
"level": "warn"
},
"non_empty_constructor_needs_parens": {
"level": "ignore"
},
"prefer_english_operator": {
"level": "ignore",
"doubleNotLevel": "ignore"
},
"space_operators": {
"level": "ignore"
},
"spacing_after_comma": {
"level": "ignore"
},
"transform_messes_up_line_numbers": {
"level": "warn"
}
}
1 change: 1 addition & 0 deletions lib/init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ requireResolve = require 'resolve'

TSLINT_MODULE_NAME = 'tslint'


module.exports =

config:
Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
"type": "git",
"url": "https://github.com/AtomLinter/linter-tslint.git"
},
"scripts": {
"test": "npm run lint",
"lint": "coffeelint ./lib"
},
"license": "MIT",
"engines": {
"atom": ">0.50.0"
},
"dependencies": {
"atom-package-deps": "^4.0.1",
"atom-package-deps": "4.0.1",
"resolve": "1.1.7",
"tslint": "^3.5.0",
"typescript": "^1.8.2"
"tslint": "3.5.0",
"typescript": "1.8.2"
},
"readmeFilename": "README.md",
"bugs": {
Expand All @@ -35,5 +39,8 @@
"1.0.0": "provideLinter"
}
}
},
"devDependencies": {
"coffeelint": "1.14.2"
}
}

0 comments on commit b857075

Please sign in to comment.