diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-31 11:35:32 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-05-31 11:35:32 +0200 |
commit | e75bc5d3fe24979ca59c995a7decbcbf720a20a8 (patch) | |
tree | 6e89a71e982473abde2a31354d43f4bf6230afac /master/server/.eslintrc.js | |
parent | 2212cbab4fea2f66b2736401a3f7f53f31bb898e (diff) |
style(master): change server eol to LF
Diffstat (limited to 'master/server/.eslintrc.js')
-rw-r--r-- | master/server/.eslintrc.js | 302 |
1 files changed, 151 insertions, 151 deletions
diff --git a/master/server/.eslintrc.js b/master/server/.eslintrc.js index b4c9158..b489103 100644 --- a/master/server/.eslintrc.js +++ b/master/server/.eslintrc.js @@ -1,151 +1,151 @@ -module.exports = { - env: { - commonjs: true, - es2021: true, - node: true - }, - extends: [ - "standard", - "plugin:@typescript-eslint/recommended" - ], - parserOptions: { - ecmaVersion: 12, - parser: "@typescript-eslint/parser" - }, - plugins: [ - "@typescript-eslint" - ], - rules: { - "no-console": "off", - "no-debugger": "off", - "array-bracket-spacing": [ - "error", - "always" - ], - "array-bracket-newline": [ "warn", "consistent" ], - "array-element-newline": "off", - "arrow-body-style": "off", - "arrow-parens": [ - "error", - "as-needed" - ], - "arrow-spacing": [ - "error", - { - after: true, - before: true - } - ], - "brace-style": [ "error", "stroustrup", { allowSingleLine: false } ], - camelcase: "off", - "capitalized-comments": [ - "error", - "always" - ], - "comma-spacing": [ - "error", - { - after: true, - before: false - } - ], - "comma-style": [ - "error", - "last" - ], - "comma-dangle": [ "error", "never" ], - "computed-property-spacing": [ - "error", - "never" - ], - curly: [ "error", "all" ], - "dot-notation": "off", - eqeqeq: "error", - "func-names": "off", - "func-style": [ "error", "declaration", { allowArrowFunctions: true } ], - "id-length": "off", - "implicit-arrow-linebreak": [ - "error", - "beside" - ], - indent: [ "warn", "tab" ], - "keyword-spacing": [ "error", { - before: false, - overrides: { - from: { before: true }, - for: { after: false }, - if: { after: false }, - throw: { after: false }, - while: { after: false } - } - } ], - "linebreak-style": [ - "error", - "unix" - ], - "line-comment-position": [ "error", { position: "above" } ], - "max-len": [ "error", { code: 90 } ], - "max-lines": [ "error", 600 ], - "max-params": [ "error", 6 ], - "max-statements": "off", - "multiline-comment-style": [ "error", "bare-block" ], - "no-await-in-loop": "off", - "no-control-regex": "off", - "no-else-return": [ - "error", - { - allowElseIf: true - } - ], - "no-extra-parens": "off", - "no-magic-numbers": "off", - "no-tabs": "off", - "no-ternary": "off", - "no-underscore-dangle": [ "error", { allowAfterThis: true } ], - "no-var": "error", - "object-curly-spacing": [ - "error", - "always" - ], - "object-shorthand": "off", - "one-var": "off", - "padded-blocks": "off", - "prefer-arrow-callback": "off", - "prefer-const": "off", - "prefer-destructuring": "off", - "prefer-template": "off", - "quote-props": [ "error", "as-needed" ], - quotes: [ "error", "double" ], - semi: [ "error", "always" ], - "semi-style": [ - "error", - "last" - ], - "sort-keys": "off", - "space-before-function-paren": [ "error", "never" ], - "space-in-parens": [ - "error", - "never" - ], - "spaced-comment": [ - "error", - "always" - ], - strict: [ - "error", - "never" - ], - "template-curly-spacing": [ - "error", - "never" - ], - "unicode-bom": [ - "error", - "never" - ], - yoda: [ - "error", - "never" - ] - } -}; +module.exports = {
+ env: {
+ commonjs: true,
+ es2021: true,
+ node: true
+ },
+ extends: [
+ "standard",
+ "plugin:@typescript-eslint/recommended"
+ ],
+ parserOptions: {
+ ecmaVersion: 12,
+ parser: "@typescript-eslint/parser"
+ },
+ plugins: [
+ "@typescript-eslint"
+ ],
+ rules: {
+ "no-console": "off",
+ "no-debugger": "off",
+ "array-bracket-spacing": [
+ "error",
+ "always"
+ ],
+ "array-bracket-newline": [ "warn", "consistent" ],
+ "array-element-newline": "off",
+ "arrow-body-style": "off",
+ "arrow-parens": [
+ "error",
+ "as-needed"
+ ],
+ "arrow-spacing": [
+ "error",
+ {
+ after: true,
+ before: true
+ }
+ ],
+ "brace-style": [ "error", "stroustrup", { allowSingleLine: false } ],
+ camelcase: "off",
+ "capitalized-comments": [
+ "error",
+ "always"
+ ],
+ "comma-spacing": [
+ "error",
+ {
+ after: true,
+ before: false
+ }
+ ],
+ "comma-style": [
+ "error",
+ "last"
+ ],
+ "comma-dangle": [ "error", "never" ],
+ "computed-property-spacing": [
+ "error",
+ "never"
+ ],
+ curly: [ "error", "all" ],
+ "dot-notation": "off",
+ eqeqeq: "error",
+ "func-names": "off",
+ "func-style": [ "error", "declaration", { allowArrowFunctions: true } ],
+ "id-length": "off",
+ "implicit-arrow-linebreak": [
+ "error",
+ "beside"
+ ],
+ indent: [ "warn", "tab" ],
+ "keyword-spacing": [ "error", {
+ before: false,
+ overrides: {
+ from: { before: true },
+ for: { after: false },
+ if: { after: false },
+ throw: { after: false },
+ while: { after: false }
+ }
+ } ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "line-comment-position": [ "error", { position: "above" } ],
+ "max-len": [ "error", { code: 90 } ],
+ "max-lines": [ "error", 600 ],
+ "max-params": [ "error", 6 ],
+ "max-statements": "off",
+ "multiline-comment-style": [ "error", "bare-block" ],
+ "no-await-in-loop": "off",
+ "no-control-regex": "off",
+ "no-else-return": [
+ "error",
+ {
+ allowElseIf: true
+ }
+ ],
+ "no-extra-parens": "off",
+ "no-magic-numbers": "off",
+ "no-tabs": "off",
+ "no-ternary": "off",
+ "no-underscore-dangle": [ "error", { allowAfterThis: true } ],
+ "no-var": "error",
+ "object-curly-spacing": [
+ "error",
+ "always"
+ ],
+ "object-shorthand": "off",
+ "one-var": "off",
+ "padded-blocks": "off",
+ "prefer-arrow-callback": "off",
+ "prefer-const": "off",
+ "prefer-destructuring": "off",
+ "prefer-template": "off",
+ "quote-props": [ "error", "as-needed" ],
+ quotes: [ "error", "double" ],
+ semi: [ "error", "always" ],
+ "semi-style": [
+ "error",
+ "last"
+ ],
+ "sort-keys": "off",
+ "space-before-function-paren": [ "error", "never" ],
+ "space-in-parens": [
+ "error",
+ "never"
+ ],
+ "spaced-comment": [
+ "error",
+ "always"
+ ],
+ strict: [
+ "error",
+ "never"
+ ],
+ "template-curly-spacing": [
+ "error",
+ "never"
+ ],
+ "unicode-bom": [
+ "error",
+ "never"
+ ],
+ yoda: [
+ "error",
+ "never"
+ ]
+ }
+};
|