Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmath committed Apr 13, 2017
0 parents commit fa5e3c0
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/npm-debug.*
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.editorconfig
/.gitignore
/.npmrc
/circle.yml
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# @mcmath/coffeelint-config

[CoffeeLint][coffeelint] configuration for [CoffeeScript][coffeescript]
projects

## Install

Install through [npm][npm] as a development dependency.
[CoffeeScript][coffeescript] and [CoffeeLint][coffeelint] should also be
installed.

```sh
npm install --save-dev coffee-script coffeelint @mcmath/coffeelint-config
```

## Usage

Create a `coffeelint.json` file at the root of your project with the following
contents:

```json
{ "extends": "@mcmath/coffeelint-config" }
```

Rules may be added or modified like so:

```json
{
"extends": "@mcmath/coffeelint-config",
"indentation": {
"level": "error",
"value": 2
},
"max_line_length": {
"level": "ignore"
}
}
```

[npm]: https://www.npmjs.com/package/@mcmath/coffeelint-config
[coffeescript]: http://coffeescript.org/
[coffeelint]: http://www.coffeelint.org/
14 changes: 14 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
machine:
node:
version: "6.1.0"
deployment:
npm-release:
tag: /^v[0-9]+\.[0-9]+\.[0-9]+$|^v1\.0\.0-[A-Za-z]+\.[0-9]+$/
owner: mcmath
commands:
- npm publish
npm-prerelease:
tag: /^v([2-9]|[1-9][0-9]+)\.0\.0-[A-Za-z]+\.[0-9]+$/
owner: mcmath
commands:
- npm publish --tag next
73 changes: 73 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"arrow_spacing": {
"level": "error"
},
"colon_assignment_spacing": {
"level": "error",
"spacing": { "left": 0, "right": 1 }
},
"empty_constructor_needs_parens": {
"level": "error"
},
"ensure_comprehensions": {
"level": "error"
},
"eol_last": {
"level": "error"
},
"indentation": {
"level": "error",
"value": 4
},
"line_endings": {
"level": "error",
"value": "unix"
},
"max_line_length": {
"level": "error",
"value": 100
},
"missing_fat_arrows": {
"level": "error"
},
"newlines_after_classes": {
"level": "error",
"value": 2
},
"no_debugger": {
"level": "error"
},
"no_empty_param_list": {
"level": "error"
},
"no_nested_string_interpolation": {
"level": "error"
},
"no_private_function_fat_arrows": {
"level": "error"
},
"no_stand_alone_at": {
"level": "error"
},
"no_this": {
"level": "error"
},
"no_unnecessary_double_quotes": {
"level": "error"
},
"no_unnecessary_fat_arrows": {
"level": "error"
},
"non_empty_constructor_needs_parens": {
"level": "error"
},
"prefer_english_operator": {
"level": "error"
},
"space_operators": {
"level": "error"
},
"spacing_after_comma": {
"level": "error"
}
}
31 changes: 31 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@mcmath/coffeelint-config",
"version": "0.0.0",
"description": "CoffeeLint configuration for CoffeeScript projects",
"main": "index.json",
"keywords": [
"coffeescript",
"coffeelint",
"linter",
"config"
],
"scripts": {
"test": "jsonlint index.json -q"
},
"author": "Akim McMath <akim.elijah.mcmath@gmail.com>",
"license": "UNLICENSED",
"repository": {
"type": "git",
"url": "git+https://github.com/mcmath/coffeelint-config.git"
},
"bugs": {
"url": "https://github.com/mcmath/coffeelint-config/issues"
},
"homepage": "https://github.com/mcmath/coffeelint-config#readme",
"peerDependencies": {
"coffeelint": "1"
},
"devDependencies": {
"jsonlint": "^1.6.2"
}
}

0 comments on commit fa5e3c0

Please sign in to comment.