|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "env": { |
| 4 | + "node": true, |
| 5 | + "browser": false, |
| 6 | + "es6": true |
| 7 | + }, |
| 8 | + "ignorePatterns": ["dist/"], |
| 9 | + "extends": [ |
| 10 | + "eslint:recommended" |
| 11 | + ], |
| 12 | + "globals": { |
| 13 | + "Atomics": "readonly", |
| 14 | + "SharedArrayBuffer": "readonly" |
| 15 | + }, |
| 16 | + "parserOptions": { |
| 17 | + "ecmaFeatures": { |
| 18 | + "jsx": true |
| 19 | + }, |
| 20 | + "ecmaVersion": 2021, |
| 21 | + "sourceType": "module" |
| 22 | + }, |
| 23 | + "overrides": [{ |
| 24 | + "files": ["**.ts"], |
| 25 | + "extends": [ |
| 26 | + "eslint:recommended", |
| 27 | + "plugin:@typescript-eslint/recommended" |
| 28 | + ], |
| 29 | + "parser": "@typescript-eslint/parser", |
| 30 | + "plugins": [ |
| 31 | + "@typescript-eslint", |
| 32 | + "import", |
| 33 | + "node" |
| 34 | + ], |
| 35 | + "rules": { |
| 36 | + "@typescript-eslint/explicit-module-boundary-types": ["off"], |
| 37 | + "@typescript-eslint/ban-ts-comment": ["off"], |
| 38 | + "@typescript-eslint/no-explicit-any": ["off"], |
| 39 | + "semi": ["off"], |
| 40 | + "@typescript-eslint/semi": ["warn", "always"], |
| 41 | + "@typescript-eslint/no-inferrable-types": ["off"] |
| 42 | + } |
| 43 | + }], |
| 44 | + "plugins": [ |
| 45 | + "@typescript-eslint", |
| 46 | + "import", |
| 47 | + "node" |
| 48 | + ], |
| 49 | + "settings": { |
| 50 | + "import/parsers": { |
| 51 | + "@typescript-eslint/parser": [".ts"] |
| 52 | + } |
| 53 | + }, |
| 54 | + "rules": { |
| 55 | + "indent": ["warn", 4, { |
| 56 | + "SwitchCase": 1, |
| 57 | + "FunctionDeclaration": { |
| 58 | + "parameters": "first" |
| 59 | + } |
| 60 | + }], |
| 61 | + "eqeqeq": ["off"], |
| 62 | + "no-undef": "off", |
| 63 | + "quotes": ["warn", "double", { "avoidEscape": true }], |
| 64 | + "no-unused-vars": ["warn", { |
| 65 | + "args": "none", |
| 66 | + "ignoreRestSiblings": true, |
| 67 | + "varsIgnorePattern": "^set" |
| 68 | + }], |
| 69 | + "no-prototype-builtins": ["off"], |
| 70 | + "object-curly-spacing": ["warn", "never"], |
| 71 | + "semi": ["warn", "always"], |
| 72 | + "no-undefined": ["off"], |
| 73 | + "array-bracket-newline": ["error", "consistent"], |
| 74 | + "brace-style": ["error", "1tbs", { |
| 75 | + "allowSingleLine": false |
| 76 | + }], |
| 77 | + "comma-spacing": ["error", { |
| 78 | + "before": false, |
| 79 | + "after": true |
| 80 | + }], |
| 81 | + "comma-style": ["error", "last"], |
| 82 | + "comma-dangle": ["error", "never"], |
| 83 | + "no-var": ["error"], |
| 84 | + "import/order": ["error", { |
| 85 | + "groups": ["builtin", "external","internal", "parent", "sibling", "index", "type", "object", "unknown"], |
| 86 | + "warnOnUnassignedImports": true |
| 87 | + }], |
| 88 | + "node/file-extension-in-import": ["error", "always", { |
| 89 | + "tryExtensions": [".js", ".json"] |
| 90 | + }], |
| 91 | + "newline-per-chained-call": ["error", { |
| 92 | + "ignoreChainWithDepth": 2 |
| 93 | + }], |
| 94 | + "no-confusing-arrow": ["error"], |
| 95 | + "no-const-assign": ["error"], |
| 96 | + "no-duplicate-imports": ["error", { |
| 97 | + "includeExports": true |
| 98 | + }], |
| 99 | + "camelcase": ["warn"], |
| 100 | + "jsx-quotes": ["warn"], |
| 101 | + "yoda": ["error", "never", { |
| 102 | + "exceptRange": true |
| 103 | + }], |
| 104 | + "no-eval": ["error"], |
| 105 | + "array-callback-return": ["error"], |
| 106 | + "valid-jsdoc": ["error", { |
| 107 | + "requireParamType": true, |
| 108 | + "requireReturnType": true, |
| 109 | + "requireReturn": false, |
| 110 | + "requireParamDescription": false, |
| 111 | + "requireReturnDescription": false |
| 112 | + }], |
| 113 | + "no-empty": ["error", { |
| 114 | + "allowEmptyCatch": true |
| 115 | + }], |
| 116 | + "keyword-spacing": ["warn"], |
| 117 | + "space-infix-ops": ["warn"], |
| 118 | + "spaced-comment": ["warn", "always"], |
| 119 | + "eol-last": ["warn", "always"], |
| 120 | + "max-len": ["warn", { |
| 121 | + "code": 140, |
| 122 | + "tabWidth": 4, |
| 123 | + "ignoreStrings": true |
| 124 | + }] |
| 125 | + } |
| 126 | +} |
0 commit comments