homebridge-prometheus-exporter/.eslintrc.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-11-06 13:50:39 +01:00
module.exports = {
extends: ['eslint:recommended'],
2022-11-06 13:50:39 +01:00
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
root: true,
rules: {
'prettier/prettier': 'warn',
'prefer-arrow-callback': 'error',
2022-11-07 23:02:24 +01:00
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
},
],
2022-11-06 13:50:39 +01:00
},
overrides: [
{
files: ['**/*.ts'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parserOptions: {
project: ['./tsconfig.json'],
},
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'error',
},
},
2022-11-06 13:50:39 +01:00
{
files: ['.eslintrc.js', 'jest.config.js', 'prettier.config.js'],
env: {
node: true,
browser: false,
},
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
}