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

Commit

Permalink
Add dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jun 9, 2016
1 parent 9eb0999 commit c641533
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[Makefile]
indent_style = tab

[*.{yaml,yml,conf}]
indent_size = 2
68 changes: 68 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

root: true
extends:
- eslint:recommended
- strict/es5
- google

parserOptions:
sourceType: module
impliedStrict: true

plugins:
- if-in-test
- xo
- promise
- node
- import


env:
node: true

rules:
eqeqeq: [error, smart]
no-extra-parens: error
max-len: [error, 128]
# too strict for us now, will enable some day
func-names: off
id-match: off
id-blacklist: off
newline-after-var: off
no-inline-comments: off
consistent-this: off
no-invalid-this: off
no-process-exit: off
no-underscore-dangle: off
id-length: off
no-sync: error
no-shadow: error
global-require: error
init-declarations: error
consistent-return: error
no-warning-comments: error
camelcase: [error , { properties: never }]
# no strict more
strict: [error, never]
quote-props: [error, consistent-as-needed]
guard-for-in: error

require-jsdoc: off
valid-jsdoc: error

no-magic-numbers: [error, { ignore: [-1, 0, 1, 2] }]

xo/filename-case: [error, {case: kebabCase}]

promise/param-names: error
promise/catch-or-return: error

node/no-unsupported-features: [error, {version: 5, ignores: [blockScopedFunctions]}]
node/no-deprecated-api: warn

import/no-duplicates: error
import/extensions: [error , { js: never, json: always }]
import/no-extraneous-dependencies: error
import/prefer-default-export: error
import/newline-after-import: warn
import/no-mutable-exports: error
32 changes: 32 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Set default behaviour, in case users don't have core.autocrlf set.

* text=auto

# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.

*.cfg text
*.config text
*.css text
*.csv text diff=csv eol=lf
*.html text diff=html
*.java text diff=java
*.js text
*.json text
*.less text
*.md text
*.py text diff=python
*.rb text diff=ruby
*.sql text
*.svg text
*.txt text
*.xml text
*.yml text

# Declare files that will always have LF line endings on checkout.
*.sh text eol=lf

# Denote all files that are truly binary and should not be modified.

*.jpg binary
*.png binary
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
.DS_Store
22 changes: 22 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"preset": "google",
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"maximumLineLength": 128,
"jsDoc": {
"checkAnnotations": {
"preset": "closurecompiler",
"extra": {
"ngdoc": "some"
}
},
"checkParamNames": true,
"requireParamTypes": true,
"checkRedundantParams": true,
"checkReturnTypes": true,
"checkRedundantReturns": true,
"requireReturnTypes": true,
"checkTypes": "capitalizedNativeCase",
"checkRedundantAccess": true,
"requireNewlineAfterDescription": true
}
}

0 comments on commit c641533

Please sign in to comment.