|
| 1 | +module.exports = { |
| 2 | + "extends": ["airbnb", "plugin:prettier/recommended"], |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "plugins": ["@typescript-eslint"], |
| 5 | + "rules": { |
| 6 | + "prettier/prettier": [2, { |
| 7 | + "printWidth": 120 |
| 8 | + }], |
| 9 | + "semi": [2, "never"], |
| 10 | + "comma-dangle": [2, { |
| 11 | + "arrays": "always-multiline", |
| 12 | + "objects": "always-multiline", |
| 13 | + "imports": "always-multiline", |
| 14 | + "exports": "always-multiline", |
| 15 | + "functions": "ignore" |
| 16 | + }], |
| 17 | + "import/no-extraneous-dependencies": [2, { |
| 18 | + "devDependencies": true |
| 19 | + }], |
| 20 | + "no-unused-vars": "off", |
| 21 | + "implicit-arrow-linebreak": "off", |
| 22 | + "@typescript-eslint/no-unused-vars": ["error", { |
| 23 | + "vars": "local", |
| 24 | + "args": "after-used", |
| 25 | + "ignoreRestSiblings": false |
| 26 | + }], |
| 27 | + "arrow-parens": [2, "as-needed"], |
| 28 | + "max-len": [2, { |
| 29 | + "code": 120, |
| 30 | + "ignoreComments": true, |
| 31 | + "ignoreTrailingComments": true, |
| 32 | + "ignoreUrls": true, |
| 33 | + "ignoreStrings": true, |
| 34 | + "ignoreTemplateLiterals": true, |
| 35 | + "ignoreRegExpLiterals": true, |
| 36 | + }], |
| 37 | + "object-curly-newline": ["error", { |
| 38 | + "ObjectExpression": { |
| 39 | + "consistent": true |
| 40 | + }, |
| 41 | + "ObjectPattern": { |
| 42 | + "consistent": true |
| 43 | + }, |
| 44 | + "ImportDeclaration": { |
| 45 | + "consistent": true, |
| 46 | + }, |
| 47 | + "ExportDeclaration": { |
| 48 | + "multiline": true, |
| 49 | + "minProperties": 3 |
| 50 | + } |
| 51 | + }], |
| 52 | + "no-plusplus": [0], |
| 53 | + "no-console": [2, { |
| 54 | + "allow": ["warn", "error", "info"] |
| 55 | + }], |
| 56 | + "lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }] |
| 57 | + }, |
| 58 | + "globals": { |
| 59 | + "BigInt": "readonly" |
| 60 | + }, |
| 61 | + "env": { |
| 62 | + "jest": true, |
| 63 | + "browser": true, |
| 64 | + "node": true |
| 65 | + }, |
| 66 | + "settings": { |
| 67 | + "import/resolver": { |
| 68 | + "node": { |
| 69 | + "paths": ["src"], |
| 70 | + "extensions": [".js", ".jsx", ".ts", ".tsx"] |
| 71 | + } |
| 72 | + } |
| 73 | + } |
| 74 | +}; |
0 commit comments