enable automated linting

This commit is contained in:
Thijs van Loef 2025-06-09 23:49:35 +02:00
parent d70396a664
commit 097dafb553
2 changed files with 50 additions and 9 deletions

View file

@ -1,12 +1,19 @@
import tseslint from 'typescript-eslint';
export default tseslint.config(
tseslint.configs.recommended,
{
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
rules: {
semi: "error",
"prefer-const": "error"
}
export default tseslint.config({
files: ["**/*.{ts,tsx,js,jsx}"],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true
}
}
);
},
rules: {
"semi": "error",
"prefer-const": "warn"
}
});