Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
docs
dist
node_modules
.vscode
.idea
coverage
lib
*.DS_Store
219 changes: 219 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"sonarjs",
"security",
"github"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
"plugin:security/recommended"
],
"rules": {
"strict": 0,
"github/array-foreach": 2,
"eol-last": [
"error",
"always"
],
"@typescript-eslint/no-explicit-any": 0,
"require-await": "error",
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"sonarjs/no-small-switch": "off",
"no-underscore-dangle": "error",
"no-process-exit": "error",
"no-warning-comments": "error",
"no-loop-func": "error",
"curly": [
"error"
],
"no-multi-spaces": "error",
"consistent-return": 0,
"consistent-this": [
0,
"self"
],
"func-style": 0,
"max-nested-callbacks": [
"error",
3
],
"camelcase": 0,
"no-debugger": 1,
"no-empty": 1,
"no-invalid-regexp": 1,
"no-unused-expressions": 1,
"no-native-reassign": 1,
"no-fallthrough": 1,
"sonarjs/cognitive-complexity": 1,
"eqeqeq": 2,
"no-undef": 2,
"no-dupe-keys": 2,
"no-empty-character-class": 2,
"no-self-compare": 2,
"valid-typeof": 2,
"no-unused-vars": [
2,
{
"args": "none"
}
],
"handle-callback-err": 2,
"no-shadow-restricted-names": 2,
"no-new-require": 2,
"no-mixed-spaces-and-tabs": 2,
"block-scoped-var": 2,
"no-else-return": 2,
"no-throw-literal": 2,
"no-void": 2,
"radix": 2,
"wrap-iife": [
2,
"outside"
],
"no-shadow": 0,
"no-use-before-define": [
2,
"nofunc"
],
"no-path-concat": 2,
"valid-jsdoc": [
0,
{
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false
}
],
"no-spaced-func": 2,
"semi-spacing": 2,
"quotes": [
2,
"single"
],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"indent": [
2,
2
],
"no-lonely-if": 2,
"no-floating-decimal": 2,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"comma-style": [
2,
"last"
],
"no-multiple-empty-lines": [
2,
{
"max": 1
}
],
"no-nested-ternary": 2,
"operator-assignment": [
2,
"always"
],
"padded-blocks": [
2,
"never"
],
"quote-props": [
2,
"as-needed"
],
"keyword-spacing": [
2,
{
"before": true,
"after": true,
"overrides": {}
}
],
"space-before-blocks": [
2,
"always"
],
"array-bracket-spacing": [
2,
"never"
],
"computed-property-spacing": [
2,
"never"
],
"space-in-parens": [
2,
"never"
],
"space-unary-ops": [
2,
{
"words": true,
"nonwords": false
}
],
"no-console": "error",
"wrap-regex": 2,
//"linebreak-style": ["error", "unix"],
"linebreak-style": 0,
"semi": [
2,
"always"
],
"arrow-spacing": [
2,
{
"before": true,
"after": true
}
],
"no-class-assign": 2,
"no-const-assign": 2,
"no-this-before-super": 2,
"no-var": 2,
"object-shorthand": [
2,
"always"
],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-spread": 2,
"prefer-template": 2
},
"overrides": [
{
"files": "*.spec.ts",
"rules": {
"no-undef": "off",
"security/detect-non-literal-fs-filename": "off",
"sonarjs/no-duplicate-string": "off",
"security/detect-object-injection": "off",
"max-nested-callbacks": "off",
"sonarjs/no-identical-functions": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dist
node_modules
.vscode
.idea
coverage
lib
*.DS_Store
Loading