2024-12-31 13:55:42 +01:00
|
|
|
import globals from "globals"
|
|
|
|
|
import pluginJs from "@eslint/js"
|
|
|
|
|
import tseslint from "typescript-eslint"
|
|
|
|
|
import pluginReact from "eslint-plugin-react"
|
2024-12-30 23:50:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
|
|
|
export default [
|
|
|
|
|
{
|
|
|
|
|
files: ["**/*.{ts,tsx}"],
|
|
|
|
|
languageOptions: {globals: globals.browser},
|
|
|
|
|
rules: {
|
2024-12-31 13:55:42 +01:00
|
|
|
semi: ["error", "never"],
|
|
|
|
|
'@typescript-eslint/consistent-type-imports': 'error'
|
2024-12-30 23:50:15 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ignores: ["public", "vendor", "webpack.config.js"]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
settings: {
|
|
|
|
|
react: {
|
|
|
|
|
version: "detect"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
pluginJs.configs.recommended,
|
|
|
|
|
...tseslint.configs.recommended,
|
|
|
|
|
pluginReact.configs.flat.recommended,
|
2024-12-31 13:55:42 +01:00
|
|
|
]
|