Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature/function line space #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 9, 2023
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
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.cache/
.vscode/
images/
out/
plugins/
scripts/
370 changes: 370 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,370 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-l13",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/array-type": [
"error",
{
"default": "array-simple"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Object": {
"message": "Avoid using the `Object` type. Did you mean `object`?"
},
"Function": {
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
},
"Boolean": {
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
},
"Number": {
"message": "Avoid using the `Number` type. Did you mean `number`?"
},
"String": {
"message": "Avoid using the `String` type. Did you mean `string`?"
},
"Symbol": {
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
}
}
}
],
"brace-style": "off",
"@typescript-eslint/brace-style": "error",
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": [
"error",
{
"arrays": "always-multiline",
"enums": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"generics": "always-multiline",
"imports": "always-multiline",
"objects": "always-multiline",
"tuples": "always-multiline"
}
],
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": "error",
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "angle-bracket"
}
],
"@typescript-eslint/consistent-type-definitions": "off",
"default-param-last": "off",
"@typescript-eslint/default-param-last": "error",
"dot-notation": "off",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": "error",
"indent": "off",
"@typescript-eslint/indent": [
"error",
"tab",
{
"ignoreComments": true,
"ArrayExpression": 1,
"FunctionDeclaration": {
"body": 1
},
"MemberExpression": 1,
"ObjectExpression": 1,
"SwitchCase": 1
}
],
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": "error",
"lines-between-class-members": "off",
"@typescript-eslint/lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"@typescript-eslint/member-ordering": "off",
"camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": [
"camelCase",
"PascalCase",
"UPPER_CASE"
],
"leadingUnderscore": "allow",
"trailingUnderscore": "forbid"
}
],
"@typescript-eslint/no-dupe-class-members": "error",
"no-duplicate-imports": "off",
"@typescript-eslint/no-duplicate-imports": "error",
"@typescript-eslint/no-explicit-any": "off",
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": [
"error",
"all",
{
"conditionalAssign": false
}
],
"@typescript-eslint/no-floating-promises": "off",
"no-invalid-this": "off",
"@typescript-eslint/no-invalid-this": "error",
"no-loop-func": "off",
"@typescript-eslint/no-loop-func": "error",
"no-loss-of-precision": "off",
"@typescript-eslint/no-loss-of-precision": "error",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/no-require-imports": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "error",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"object-curly-spacing": "off",
"@typescript-eslint/object-curly-spacing": [
"error",
"always"
],
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-literal-enum-member": "error",
"quotes": "off",
"@typescript-eslint/quotes": [
"error",
"single"
],
"@typescript-eslint/restrict-template-expressions": "off",
"space-infix-ops": "off",
"@typescript-eslint/space-infix-ops": [
"error",
{
"int32Hint": false
}
],
"semi": "off",
"@typescript-eslint/semi": "error",
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "never",
"types": "never",
"lib": "never"
}
],
"@typescript-eslint/unified-signatures": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-dynamic-require": "error",
"import/order": "error",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"jsdoc/newline-after-description": "error",
"l13/padded-blocks-extended": [
"error",
{
"blocks": "never",
"classes": "always",
"functions": "always",
"switches": "never"
}
],
"array-bracket-spacing": "error",
"array-callback-return": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"complexity": "off",
"comma-style": "error",
"curly": [
"error",
"multi-line"
],
"default-case-last": "error",
"dot-location": [
"error",
"property"
],
"eol-last": [
"off",
"never"
],
"eqeqeq": [
"error",
"smart"
],
"func-style": [
"error",
"declaration"
],
"function-paren-newline": [
"error",
"never"
],
"grouped-accessor-pairs": [
"error",
"getBeforeSet"
],
"guard-for-in": "off",
"id-denylist": [
"error",
"any",
"boolean",
"number",
"string",
"Undefined"
],
"id-match": "error",
"implicit-arrow-linebreak": "error",
"key-spacing": "error",
"linebreak-style": [
"error",
"unix"
],
"max-classes-per-file": "error",
"max-len": [
"warn",
{
"code": 160
}
],
"multiline-ternary": [
"error",
"never"
],
"new-parens": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-console": "warn",
"no-else-return": "error",
"no-eval": "error",
"no-label-var": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 3,
"maxBOF": 0,
"maxEOF": 1
}
],
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-new": "error",
"no-new-wrappers": "error",
"no-new-func": "error",
"no-nonoctal-decimal-escape": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-restricted-syntax": [
"error",
"WithStatement"
],
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-template-curly-in-string": "error",
"no-trailing-spaces": [
"error",
{
"skipBlankLines": true
}
],
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "error",
"no-useless-concat": "error",
"no-useless-rename": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-shorthand": "error",
"one-var": [
"error",
"never"
],
"operator-assignment": "error",
"operator-linebreak": [
"error",
"before"
],
"padded-blocks": [
"error",
{
"classes": "always",
"switches": "never"
}
],
"prefer-regex-literals": "error",
"prefer-template": "error",
"radix": "error",
"rest-spread-spacing": "error",
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"space-in-parens": "error",
"space-unary-ops": "error",
"symbol-description": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"valid-typeof": [
"error",
{
"requireStringLiterals": false
}
],
"yield-star-spacing": "error",
"yoda": [
"error",
"never",
{
"exceptRange": true
}
]
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
out
node_modules
*.vsix
*.vsix
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
Loading