2024-08-22 19:24:05 +00:00
|
|
|
import { objectKeysRule } from "./object-keys/rule";
|
2024-10-09 10:55:06 +00:00
|
|
|
import { namedUseEffectRule } from "./named-use-effect/rule";
|
2024-12-19 07:22:39 +00:00
|
|
|
import { consistentStorybookTitle } from "./consistent-storybook-title/rule";
|
2024-08-22 19:24:05 +00:00
|
|
|
|
|
|
|
|
const plugin = {
|
|
|
|
|
rules: {
|
|
|
|
|
"object-keys": objectKeysRule,
|
2024-10-09 10:55:06 +00:00
|
|
|
"named-use-effect": namedUseEffectRule,
|
2024-12-19 07:22:39 +00:00
|
|
|
"consistent-storybook-title": consistentStorybookTitle,
|
2024-08-22 19:24:05 +00:00
|
|
|
},
|
|
|
|
|
configs: {
|
|
|
|
|
recommended: {
|
|
|
|
|
rules: {
|
|
|
|
|
"@appsmith/object-keys": "warn",
|
2024-10-09 10:55:06 +00:00
|
|
|
"@appsmith/named-use-effect": "warn",
|
2024-12-19 07:22:39 +00:00
|
|
|
"@appsmith/consistent-storybook-title": "error",
|
2024-08-22 19:24:05 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = plugin;
|