|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "eslint-config-airbnb-base", |
| 5 | + "airbnb-typescript", |
| 6 | + "plugin:@typescript-eslint/recommended", |
| 7 | + "prettier" |
| 8 | + ], |
| 9 | + "env": { |
| 10 | + "es2021": true, |
| 11 | + "node": true |
| 12 | + }, |
| 13 | + "parser": "@typescript-eslint/parser", |
| 14 | + "plugins": ["@typescript-eslint", "prettier"], |
| 15 | + "rules": { |
| 16 | + "@typescript-eslint/no-unused-vars": "error", |
| 17 | + "import/prefer-default-export": "off", |
| 18 | + "no-tabs": ["off"], |
| 19 | + "max-len": ["off"], |
| 20 | + "no-await-in-loop": "off", |
| 21 | + "react/jsx-filename-extension": "off", |
| 22 | + "class-methods-use-this": "off", |
| 23 | + "no-new": "off", |
| 24 | + "no-param-reassign": "off", |
| 25 | + "@typescript-eslint/quotes": [ |
| 26 | + "error", |
| 27 | + "single", |
| 28 | + { |
| 29 | + "avoidEscape": true |
| 30 | + } |
| 31 | + ], |
| 32 | + "@typescript-eslint/comma-dangle": ["error", "never"], |
| 33 | + "@typescript-eslint/no-namespace": "off", |
| 34 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 35 | + "@typescript-eslint/no-use-before-define": "off", |
| 36 | + "@typescript-eslint/no-explicit-any": "off", |
| 37 | + "@typescript-eslint/lines-between-class-members": [ |
| 38 | + "error", |
| 39 | + "always", |
| 40 | + { |
| 41 | + "exceptAfterSingleLine": true |
| 42 | + } |
| 43 | + ], |
| 44 | + "prettier/prettier": [ |
| 45 | + "error", |
| 46 | + { |
| 47 | + "tabWidth": 2 |
| 48 | + } |
| 49 | + ] |
| 50 | + }, |
| 51 | + "overrides": [ |
| 52 | + { |
| 53 | + "files": ["*.spec.{js,ts}"], |
| 54 | + "env": { |
| 55 | + "mocha": true, |
| 56 | + "node": true |
| 57 | + }, |
| 58 | + "rules": { |
| 59 | + "no-unused-expressions": "off", |
| 60 | + "@typescript-eslint/no-unused-expressions": "off", |
| 61 | + "@typescript-eslint/no-throw-literal": "off" |
| 62 | + } |
| 63 | + } |
| 64 | + ], |
| 65 | + "parserOptions": { |
| 66 | + "project": "./tsconfig.json" |
| 67 | + }, |
| 68 | + "ignorePatterns": [ |
| 69 | + "dist", |
| 70 | + "node_modules", |
| 71 | + ".eslintrc.js", |
| 72 | + "jest.config.js", |
| 73 | + "functions", |
| 74 | + "cdk.out" |
| 75 | + ] |
| 76 | +} |
0 commit comments