mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-11 22:40:32 +01:00
* refactor(eslint): improve config readability and structure * chore(tsconfig): group options and add explanatory comments * docs(readme): restructure for clearer setup and contribution guide
25 lines
488 B
JavaScript
25 lines
488 B
JavaScript
import { FlatCompat } from "@eslint/eslintrc"
|
|
import js from "@eslint/js"
|
|
|
|
const compat = new FlatCompat()
|
|
|
|
const typescriptConfig = compat.extends(
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended-type-checked",
|
|
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
"prettier"
|
|
)
|
|
|
|
const javascriptConfig = js.configs.recommended
|
|
|
|
export default [
|
|
{
|
|
files: ["**/*.{ts,tsx,mts}"],
|
|
...typescriptConfig
|
|
},
|
|
{
|
|
files: ["**/*.{js,jsx,cjs,mjs}"],
|
|
...javascriptConfig
|
|
}
|
|
]
|