difftreelog
test add new eslint rules
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 "@typescript-eslint/naming-convention": [90 "warn",91 {92 "selector": "default",93 "format": [94 "camelCase"95 ],96 "leadingUnderscore": "allow",97 "trailingUnderscore": "allow"98 },99 {100 "selector": "variable",101 "format": [102 "camelCase",103 "UPPER_CASE"104 ],105 "leadingUnderscore": "allow",106 "trailingUnderscore": "allow"107 },108 {109 "selector": "typeLike",110 "format": [111 "PascalCase"112 ]113 },114 {115 "selector": "memberLike",116 "format": null117 }118 ]119 }120}