mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
37 lines
745 B
JavaScript
37 lines
745 B
JavaScript
import typescriptESLint from "typescript-eslint"
|
|
import configConventions from "eslint-config-conventions"
|
|
import importX from "eslint-plugin-import-x"
|
|
|
|
export default typescriptESLint.config(
|
|
{
|
|
ignores: [
|
|
".next",
|
|
"**/next.config.js",
|
|
"**/eslint.config.js",
|
|
"**/tailwind.config.js",
|
|
"**/postcss.config.js",
|
|
"**/vitest.config.ts",
|
|
"**/kysely.config.ts",
|
|
],
|
|
},
|
|
...configConventions,
|
|
{
|
|
name: "config-eslint",
|
|
plugins: {
|
|
"import-x": importX,
|
|
},
|
|
rules: {
|
|
"import-x/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
ts: "always",
|
|
tsx: "always",
|
|
js: "never",
|
|
jsx: "never",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
)
|