This commit is contained in:
66
frontend/.oxlintrc.json
Normal file
66
frontend/.oxlintrc.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"ignorePatterns": ["node_modules", "dist", "coverage", ".firebase", ".turbo"],
|
||||
"extends": [
|
||||
"../packages/oxlint-config/index.jsonc",
|
||||
"../packages/oxlint-config/plugin.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
],
|
||||
"jsPlugins": ["eslint-plugin-compat"],
|
||||
"rules": {
|
||||
"compat/compat": "error"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["**/*.ts"],
|
||||
"rules": {
|
||||
//
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["storybook/**/*.tsx"],
|
||||
"rules": {
|
||||
"explicit-function-return-type": "off",
|
||||
"no-explicit-any": "off",
|
||||
"no-unsafe-assignment": "off",
|
||||
"no-empty-function": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"jsPlugins": ["eslint-plugin-solid", "@tanstack/eslint-plugin-query"],
|
||||
"files": ["src/**/*.tsx"],
|
||||
"rules": {
|
||||
"explicit-function-return-type": "off",
|
||||
"solid/components-return-once": "error",
|
||||
"solid/event-handlers": "error",
|
||||
"solid/imports": "error",
|
||||
"solid/jsx-no-duplicate-props": "error",
|
||||
"solid/jsx-no-script-url": "error",
|
||||
"solid/jsx-no-undef": "error",
|
||||
"solid/no-array-handlers": "error",
|
||||
"solid/no-destructure": "error",
|
||||
"solid/no-innerhtml": "error",
|
||||
"solid/no-react-deps": "error",
|
||||
"solid/no-react-specific-props": "error",
|
||||
"solid/no-unknown-namespaces": "error",
|
||||
"solid/prefer-classlist": "error",
|
||||
"solid/prefer-for": "error",
|
||||
"solid/prefer-show": "error",
|
||||
"solid/reactivity": "error",
|
||||
"solid/self-closing-comp": [
|
||||
"error",
|
||||
{
|
||||
"html": "void"
|
||||
}
|
||||
],
|
||||
"solid/style-prop": "error",
|
||||
"@tanstack/query/exhaustive-deps": "error",
|
||||
"@tanstack/query/no-rest-destructuring": "error",
|
||||
"@tanstack/query/stable-query-client": "error",
|
||||
"@tanstack/query/no-unstable-deps": "error",
|
||||
"@tanstack/query/infinite-query-property-order": "error",
|
||||
"@tanstack/query/no-void-query-fn": "error",
|
||||
"@tanstack/query/mutation-property-order": "error"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user