tree-sitter/lib/binding_web/eslint.config.mjs

28 lines
740 B
JavaScript
Raw Permalink Normal View History

2025-01-16 01:10:54 -05:00
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
'no-fallthrough': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unnecessary-condition': ['error', {
allowConstantLoopConditions: true
}],
'@typescript-eslint/restrict-template-expressions': ['error', {
allowNumber: true
}],
}
},
);