mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 12:26:24 +00:00
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
import eslint from '@eslint/js';
|
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'script',
|
|
parserOptions: {
|
|
project: true,
|
|
},
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/await-thenable': 'error',
|
|
'@typescript-eslint/ban-ts-comment': 'error',
|
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
'@typescript-eslint/return-await': ['error', 'always'],
|
|
'object-curly-spacing': ['error', 'never'],
|
|
'@typescript-eslint/no-floating-promises': 'error',
|
|
},
|
|
},
|
|
{
|
|
ignores: ['tmp/', 'dist/', 'eslint.config.mjs'],
|
|
},
|
|
eslintConfigPrettier,
|
|
);
|