| 1 | module.exports = { |
| 2 | env: { |
| 3 | es2021: true, |
| 4 | node: true, |
| 5 | mocha: true |
| 6 | }, |
| 7 | parser: '@typescript-eslint/parser', |
| 8 | parserOptions: { |
| 9 | ecmaVersion: 12, |
| 10 | sourceType: 'module' |
| 11 | }, |
| 12 | plugins: ['@typescript-eslint', 'prettierx'], |
| 13 | extends: [ |
| 14 | 'standard', |
| 15 | 'eslint:recommended', |
| 16 | 'plugin:@typescript-eslint/recommended', |
| 17 | 'plugin:prettierx/standardx', |
| 18 | 'plugin:prettierx/@typescript-eslint' |
| 19 | ], |
| 20 | rules: { |
| 21 | 'no-void': 'off', |
| 22 | |
| 23 | // We have some intentionally empty functions |
| 24 | '@typescript-eslint/no-empty-function': 'off', |
| 25 | |
| 26 | '@typescript-eslint/no-inferrable-types': [ |
| 27 | 'error', |
| 28 | { ignoreProperties: true } |
| 29 | ] |
| 30 | }, |
| 31 | overrides: [ |
| 32 | { |
| 33 | files: ['*.js'], |
| 34 | rules: { |
| 35 | '@typescript-eslint/no-var-requires': 'off' |
| 36 | } |
| 37 | } |
| 38 | ] |
| 39 | } |