homebridge-prometheus-exporter/.eslintrc.js
2022-11-07 22:31:17 +01:00

24 lines
719 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',
'sort-imports': 'warn',
},
overrides: [
{
files: ['.eslintrc.js', 'jest.config.js', 'prettier.config.js'],
env: {
node: true,
browser: false,
},
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
}