This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
root: true | ||
extends: | ||
- eslint:recommended | ||
- strict/es5 | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |