1
0
Fork 0
forked from ofs/fensir
fensir/eslint.config.js

34 lines
569 B
JavaScript
Raw Normal View History

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/",
],
})