mirror of
https://github.com/dtwardow/homebridge-multi-tap-switch.git
synced 2026-11-01 20:18:30 +00:00
Renamed ESlint config file
This commit is contained in:
1 parent
2b840ec462
commit
bccc0fa4cd
1 file changed
@@ -0,0 +1,35 @@
|
||||
import eslint from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: ['dist/**'],
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
'quotes': ['error', 'single'],
|
||||
'indent': ['error', 2, { 'SwitchCase': 0 }],
|
||||
'linebreak-style': ['error', 'unix'],
|
||||
'semi': ['error', 'always'],
|
||||
'comma-dangle': ['error', 'always-multiline'],
|
||||
'dot-notation': 'error',
|
||||
'eqeqeq': ['error', 'smart'],
|
||||
'curly': ['error', 'all'],
|
||||
'brace-style': ['error'],
|
||||
'prefer-arrow-callback': 'warn',
|
||||
'max-len': ['warn', 160],
|
||||
'object-curly-spacing': ['error', 'always'],
|
||||
'no-use-before-define': 'off',
|
||||
'@typescript-eslint/no-use-before-define': ['error', { 'classes': false, 'enums': false }],
|
||||
'@typescript-eslint/no-unused-vars': ['error', { 'caughtErrors': 'none' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
sourceType: 'module',
|
||||
},
|
||||
},
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
);
|
||||
Reference in new issue
Block a user