homebridge-prometheus-exporter/.eslintrc.js
2022-11-07 15:23:48 +01:00

23 lines
687 B
JavaScript

module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
root: true,
rules: {
'prettier/prettier': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'prefer-arrow-callback': 'error',
},
overrides: [
{
files: ['.eslintrc.js', 'jest.config.js', 'prettier.config.js'],
env: {
node: true,
browser: false,
},
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
}