+
{draggableItems}
{provided.placeholder}
diff --git a/packages/eslint-plugin-twenty-ts/dist/index.js b/packages/eslint-plugin-twenty-ts/dist/index.js
index 2fd0edf8b..d98d50f36 100644
--- a/packages/eslint-plugin-twenty-ts/dist/index.js
+++ b/packages/eslint-plugin-twenty-ts/dist/index.js
@@ -4,7 +4,6 @@ module.exports = {
rules: {
"effect-components": require("./src/rules/effect-components"),
"no-hardcoded-colors": require("./src/rules/no-hardcoded-colors"),
- "no-spread-props": require('./src/rules/no-spread-props'),
"matching-state-variable": require("./src/rules/matching-state-variable"),
"sort-css-properties-alphabetically": require("./src/rules/sort-css-properties-alphabetically"),
"styled-components-prefixed-with-styled": require("./src/rules/styled-components-prefixed-with-styled"),
diff --git a/packages/eslint-plugin-twenty-ts/dist/src/rules/no-spread-props.js b/packages/eslint-plugin-twenty-ts/dist/src/rules/no-spread-props.js
deleted file mode 100644
index e54def9ec..000000000
--- a/packages/eslint-plugin-twenty-ts/dist/src/rules/no-spread-props.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const utils_1 = require("@typescript-eslint/utils");
-const createRule = utils_1.ESLintUtils.RuleCreator(() => "https://docs.twenty.com/contributor/frontend/style-guide#no-single-variable-prop-spreading-in-jsx-elements");
-const noSpreadPropsRule = createRule({
- create: (context) => ({
- JSXSpreadAttribute: (node) => {
- if (node.argument.type === "Identifier") {
- context.report({
- node,
- messageId: "noSpreadProps",
- });
- }
- },
- }),
- name: "no-spread-props",
- meta: {
- docs: {
- description: "Disallow passing props as {...props} in React components.",
- },
- messages: {
- noSpreadProps: `Single variable prop spreading is disallowed in JSX elements.\nPrefer explicitly listing out all props or using an object expression like so: \`{...{ prop1, prop2 }}\`.\nSee https://docs.twenty.com/contributor/frontend/style-guide#no-single-variable-prop-spreading-in-jsx-elements for more information.`,
- },
- type: "suggestion",
- schema: [],
- fixable: "code",
- },
- defaultOptions: [],
-});
-module.exports = noSpreadPropsRule;
-exports.default = noSpreadPropsRule;
diff --git a/packages/eslint-plugin-twenty-ts/dist/src/tests/no-spread-props.spec.js b/packages/eslint-plugin-twenty-ts/dist/src/tests/no-spread-props.spec.js
deleted file mode 100644
index a07a5014c..000000000
--- a/packages/eslint-plugin-twenty-ts/dist/src/tests/no-spread-props.spec.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const rule_tester_1 = require("@typescript-eslint/rule-tester");
-const no_spread_props_1 = __importDefault(require("../rules/no-spread-props"));
-const ruleTester = new rule_tester_1.RuleTester({
- parser: "@typescript-eslint/parser",
- parserOptions: {
- project: "./tsconfig.json",
- tsconfigRootDir: __dirname,
- ecmaFeatures: {
- jsx: true,
- },
- },
- });
-ruleTester.run("no-spread-props", no_spread_props_1.default, {
- valid: [
- {
- code: "
",
- },
- ],
- invalid: [
- {
- code: "
",
- errors: [
- {
- messageId: "noSpreadProps",
- },
- ],
- },
- ],
-});
diff --git a/packages/eslint-plugin-twenty/index.ts b/packages/eslint-plugin-twenty/index.ts
index 2ea148937..20a91daf4 100644
--- a/packages/eslint-plugin-twenty/index.ts
+++ b/packages/eslint-plugin-twenty/index.ts
@@ -2,7 +2,6 @@ module.exports = {
rules: {
"effect-components": require("./src/rules/effect-components"),
"no-hardcoded-colors": require("./src/rules/no-hardcoded-colors"),
- "no-spread-props": require("./src/rules/no-spread-props"),
"matching-state-variable": require("./src/rules/matching-state-variable"),
"sort-css-properties-alphabetically": require("./src/rules/sort-css-properties-alphabetically"),
"styled-components-prefixed-with-styled": require("./src/rules/styled-components-prefixed-with-styled"),
diff --git a/packages/eslint-plugin-twenty/src/rules/no-spread-props.ts b/packages/eslint-plugin-twenty/src/rules/no-spread-props.ts
deleted file mode 100644
index 614e2cdfe..000000000
--- a/packages/eslint-plugin-twenty/src/rules/no-spread-props.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { ESLintUtils } from "@typescript-eslint/utils";
-
-const createRule = ESLintUtils.RuleCreator(
- () =>
- "https://docs.twenty.com/contributor/frontend/style-guide#no-single-variable-prop-spreading-in-jsx-elements",
-);
-
-const noSpreadPropsRule = createRule({
- create: (context) => ({
- JSXSpreadAttribute: (node) => {
- if (node.argument.type === "Identifier") {
- context.report({
- node,
- messageId: "noSpreadProps",
- });
- }
- },
- }),
- name: "no-spread-props",
- meta: {
- docs: {
- description: "Disallow passing props as {...props} in React components.",
- },
- messages: {
- noSpreadProps: `Single variable prop spreading is disallowed in JSX elements.\nPrefer explicitly listing out all props or using an object expression like so: \`{...{ prop1, prop2 }}\`.\nSee https://docs.twenty.com/contributor/frontend/style-guide#no-single-variable-prop-spreading-in-jsx-elements for more information.`,
- },
- type: "suggestion",
- schema: [],
- fixable: "code",
- },
- defaultOptions: [],
-});
-
-module.exports = noSpreadPropsRule;
-
-export default noSpreadPropsRule;
diff --git a/packages/eslint-plugin-twenty/src/tests/no-spread-props.spec.ts b/packages/eslint-plugin-twenty/src/tests/no-spread-props.spec.ts
deleted file mode 100644
index f20ff8f1e..000000000
--- a/packages/eslint-plugin-twenty/src/tests/no-spread-props.spec.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import { RuleTester } from "@typescript-eslint/rule-tester";
-
-import noSpreadPropsRule from "../rules/no-spread-props";
-
-const ruleTester = new RuleTester({
- parser: "@typescript-eslint/parser",
- parserOptions: {
- project: "./tsconfig.json",
- tsconfigRootDir: __dirname,
- ecmaFeatures: {
- jsx: true,
- },
- },
-});
-
-ruleTester.run("no-spread-props", noSpreadPropsRule, {
- valid: [
- {
- code: "
",
- },
- {
- code: "
",
- },
- ],
- invalid: [
- {
- code: "
",
- errors: [
- {
- messageId: "noSpreadProps",
- },
- ],
- },
- ],
-});