mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-11 22:40:32 +01:00
25 lines
455 B
JavaScript
25 lines
455 B
JavaScript
import { FlatCompat } from "@eslint/eslintrc"
|
|
import js from "@eslint/js"
|
|
|
|
const compat = new FlatCompat()
|
|
|
|
export default [
|
|
{
|
|
...compat
|
|
.extends(
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended-type-checked",
|
|
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
"prettier"
|
|
)
|
|
.map(c => ({
|
|
...c,
|
|
files: ["**/*.{ts,tsx,mts}"]
|
|
}))
|
|
},
|
|
{
|
|
files: ["**/*.{js,jsx,cjs,mjs}"],
|
|
...js.configs.recommended
|
|
}
|
|
]
|