mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
30 lines
756 B
JavaScript
30 lines
756 B
JavaScript
import globals from "globals"
|
|
import pluginJs from "@eslint/js"
|
|
import tseslint from "typescript-eslint"
|
|
import pluginReact from "eslint-plugin-react"
|
|
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
export default [
|
|
{
|
|
files: ["**/*.{ts,tsx}"],
|
|
languageOptions: {globals: globals.browser},
|
|
rules: {
|
|
semi: ["error", "never"],
|
|
'@typescript-eslint/consistent-type-imports': 'error'
|
|
},
|
|
},
|
|
{
|
|
ignores: ["public", "vendor", "webpack.config.js", "docs"]
|
|
},
|
|
{
|
|
settings: {
|
|
react: {
|
|
version: "detect"
|
|
}
|
|
}
|
|
},
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
] |