difftreelog
test update eslint config
in: master
1 file changed
tests/.eslintrc.jsondiffbeforeafterboth1{2 "env": {3 "browser": true,4 "es2020": true5 },6 "extends": [7 "eslint:recommended",8 "plugin:@typescript-eslint/recommended"9 ],10 "parser": "@typescript-eslint/parser",11 "parserOptions": {12 "ecmaVersion": 11,13 "sourceType": "module",14 "project": "**/tsconfig.json"15 },16 "plugins": [17 "@typescript-eslint",18 "mocha"19 ],20 "rules": {21 "@typescript-eslint/no-floating-promises": [22 "error"23 ],24 "indent": [25 "error",26 2,27 {28 "SwitchCase": 129 }30 ],31 "no-trailing-spaces": "warn",32 "function-call-argument-newline": [33 "error",34 "consistent"35 ],36 "function-paren-newline": [37 "error",38 "multiline"39 ],40 "linebreak-style": [41 "error",42 "unix"43 ],44 "quotes": [45 "error",46 "single",47 {48 "avoidEscape": true49 }50 ],51 "require-await": 2,52 "mocha/no-async-describe": "error",53 "mocha/no-nested-tests": "error",54 "mocha/no-synchronous-tests": "error",55 "semi": [56 "error",57 "always"58 ],59 "@typescript-eslint/explicit-module-boundary-types": "off",60 "comma-dangle": [61 "error",62 "always-multiline"63 ],64 "no-unused-vars": "off",65 "@typescript-eslint/no-empty-function": "off",66 "@typescript-eslint/no-non-null-assertion": "off",67 "@typescript-eslint/no-explicit-any": "off",68 "@typescript-eslint/no-unused-vars": [69 "warn",70 {71 "varsIgnorePattern": "(?:_.+|__dirname|__filename)",72 "argsIgnorePattern": "_.+"73 }74 ],75 "no-async-promise-executor": "warn",76 "@typescript-eslint/no-empty-interface": "off",77 "prefer-const": [78 "error",79 {80 "destructuring": "all"81 }82 ],83 "@typescript-eslint/ban-ts-comment": "off",84 "object-curly-spacing": "warn",85 "arrow-spacing": "warn",86 "array-bracket-spacing": "warn",87 "template-curly-spacing": "warn",88 "space-in-parens": "warn",89 "arrow-body-style": ["warn", "as-needed"],90 "no-restricted-syntax": [91 "warn",92 {93 "message": "toHuman results in horrible, hard to debug conversions with no stability guarantees, use Codec/at least .toJson instead",94 "selector": "MemberExpression > Identifier[name=\"toHuman\"]"95 }96 ],97 "@typescript-eslint/naming-convention": [98 "warn",99 {100 "selector": "default",101 "format": [102 "camelCase"103 ],104 "leadingUnderscore": "allow",105 "trailingUnderscore": "allow"106 },107 {108 "selector": "variable",109 "format": [110 "camelCase",111 "UPPER_CASE"112 ],113 "leadingUnderscore": "allow",114 "trailingUnderscore": "allow"115 },116 {117 "selector": "typeLike",118 "format": [119 "PascalCase"120 ]121 },122 {123 "selector": "memberLike",124 "format": null125 }126 ]127 }128}1{2 "env": {3 "browser": true,4 "es2020": true5 },6 "extends": [7 "eslint:recommended",8 "plugin:@typescript-eslint/recommended"9 ],10 "parser": "@typescript-eslint/parser",11 "parserOptions": {12 "ecmaVersion": 11,13 "sourceType": "module",14 "project": "**/tsconfig.json"15 },16 "plugins": [17 "@typescript-eslint",18 "mocha"19 ],20 "rules": {21 "@typescript-eslint/no-floating-promises": [22 "error"23 ],24 "indent": [25 "error",26 2,27 {28 "SwitchCase": 129 }30 ],31 "no-trailing-spaces": "warn",32 "keyword-spacing": [33 "error",34 {35 "overrides": {36 "if": {"after": false},37 "while": {"after": false},38 "for": {"after": false}39 }40 }41 ],42 "function-call-argument-newline": [43 "error",44 "consistent"45 ],46 "function-paren-newline": [47 "error",48 "multiline"49 ],50 "linebreak-style": [51 "error",52 "unix"53 ],54 "quotes": [55 "error",56 "single",57 {58 "avoidEscape": true59 }60 ],61 "require-await": 2,62 "mocha/no-async-describe": "error",63 "mocha/no-nested-tests": "error",64 "mocha/no-synchronous-tests": "error",65 "semi": [66 "error",67 "always"68 ],69 "@typescript-eslint/explicit-module-boundary-types": "off",70 "comma-dangle": [71 "error",72 "always-multiline"73 ],74 "no-unused-vars": "off",75 "@typescript-eslint/no-empty-function": "off",76 "@typescript-eslint/no-non-null-assertion": "off",77 "@typescript-eslint/no-explicit-any": "off",78 "@typescript-eslint/no-unused-vars": [79 "warn",80 {81 "varsIgnorePattern": "(?:_.+|__dirname|__filename)",82 "argsIgnorePattern": "_.+"83 }84 ],85 "no-async-promise-executor": "warn",86 "@typescript-eslint/no-empty-interface": "off",87 "prefer-const": [88 "error",89 {90 "destructuring": "all"91 }92 ],93 "@typescript-eslint/ban-ts-comment": "off",94 "object-curly-spacing": ["warn", "never"],95 "arrow-spacing": "warn",96 "array-bracket-spacing": ["warn", "never"],97 "template-curly-spacing": "warn",98 "space-in-parens": "warn",99 "arrow-body-style": ["warn", "as-needed"],100 "no-restricted-syntax": [101 "warn",102 {103 "message": "toHuman results in horrible, hard to debug conversions with no stability guarantees, use Codec/at least .toJson instead",104 "selector": "MemberExpression > Identifier[name=\"toHuman\"]"105 }106 ],107 "@typescript-eslint/naming-convention": [108 "warn",109 {110 "selector": "default",111 "format": [112 "camelCase"113 ],114 "leadingUnderscore": "allow",115 "trailingUnderscore": "allow"116 },117 {118 "selector": "variable",119 "format": [120 "camelCase",121 "UPPER_CASE"122 ],123 "leadingUnderscore": "allow",124 "trailingUnderscore": "allow"125 },126 {127 "selector": "typeLike",128 "format": [129 "PascalCase"130 ]131 },132 {133 "selector": "memberLike",134 "format": null135 }136 ]137 }138}