forked from ofs/fensir
34 lines
569 B
JavaScript
34 lines
569 B
JavaScript
|
import antfu from "@antfu/eslint-config"
|
||
|
|
||
|
export default await antfu({
|
||
|
stylistic: {
|
||
|
indent: 2,
|
||
|
quotes: "double",
|
||
|
},
|
||
|
typescript: true,
|
||
|
vue: true,
|
||
|
astro: true,
|
||
|
yaml: true,
|
||
|
rules: {
|
||
|
"curly": ["error", "all"],
|
||
|
"camelcase": ["warn", {
|
||
|
properties: "always",
|
||
|
ignoreImports: true,
|
||
|
}],
|
||
|
"ts/consistent-type-definitions": ["warn", "type"],
|
||
|
},
|
||
|
}, {
|
||
|
files: ["**/*.astro"],
|
||
|
rules: {
|
||
|
"no-undef": ["off"],
|
||
|
},
|
||
|
}, {
|
||
|
ignores: [
|
||
|
"node_modules/",
|
||
|
"**/.pnpm-store/",
|
||
|
"dist/",
|
||
|
".astro/",
|
||
|
".direnv/",
|
||
|
],
|
||
|
})
|