UNPKG

683 BJavaScriptView Raw
1module.exports = {
2 plugins: ['@typescript-eslint/eslint-plugin'],
3 rules: {
4 // note you must disable the base rule as it can report incorrect errors
5 camelcase: 'off',
6 '@typescript-eslint/camelcase': 'off',
7 '@typescript-eslint/explicit-member-accessibility': 'warn',
8 '@typescript-eslint/no-explicit-any': 'warn',
9 '@typescript-eslint/prefer-interface': 'off',
10 '@typescript-eslint/explicit-function-return-type': [
11 'error',
12 {
13 allowExpressions: true,
14 allowTypedFunctionExpressions: true,
15 },
16 ],
17 '@typescript-eslint/indent': 'off',
18 },
19};