mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
33 lines
656 B
JavaScript
33 lines
656 B
JavaScript
// ts-check
|
|
import globals from "globals"
|
|
import eslint from "@eslint/js"
|
|
import eslintPluginAstro from "eslint-plugin-astro"
|
|
import stylistic from "@stylistic/eslint-plugin"
|
|
|
|
export default [
|
|
eslint.configs.recommended,
|
|
...eslintPluginAstro.configs.recommended,
|
|
stylistic.configs.customize({
|
|
indent: 2,
|
|
quotes: "double",
|
|
semi: false,
|
|
jsx: true,
|
|
}),
|
|
{
|
|
ignores: ["dist"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
},
|
|
rules: {
|
|
"prefer-const": [
|
|
"error",
|
|
{
|
|
destructuring: "any",
|
|
ignoreReadBeforeAssign: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
]
|