From 3915bb43169ae501d81571c5e1efa12cf0e24dbb Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 4 Apr 2024 21:34:55 +0100 Subject: Enforce Text suffix for Text-rendering components (#3407) * Rm unused * Add Text suffix to Title/Description * Add Text suffix to text components * Add Text suffix to props * Validate Text components returns --- .eslintrc.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index 8ae91f346..92834fe68 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,3 @@ -const bskyEslint = require('./eslint') - module.exports = { root: true, extends: [ @@ -27,29 +25,18 @@ module.exports = { { impliedTextComponents: [ 'Button', // TODO: Not always safe. - 'ButtonText', - 'DateField.Label', - 'Description', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', - 'InlineLink', - 'Label', 'P', - 'Prompt.Title', - 'Prompt.Description', 'Prompt.Cancel', // TODO: Not always safe. 'Prompt.Action', // TODO: Not always safe. - 'TextField.Label', - 'TextField.Suffix', - 'Title', - 'Toggle.Label', 'ToggleButton.Button', // TODO: Not always safe. ], - impliedTextProps: ['FormContainer title'], + impliedTextProps: [], }, ], 'simple-import-sort/imports': [ -- cgit 1.4.1