diff --git a/.eslintrc.js b/.eslintrc.js index dc595eb12..fb5fbac33 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,7 +7,7 @@ module.exports = { 'plugin:@typescript-eslint/recommended', ], parser: '@typescript-eslint/parser', - plugins: ['import', 'prettier', '@taskany/rules'], + plugins: ['import', 'prettier', '@taskany/rules', 'react'], rules: { '@taskany/rules/prefer-interface': 'error', '@typescript-eslint/no-empty-function': 'off', @@ -90,5 +90,12 @@ module.exports = { ], }, ], + 'react/jsx-curly-brace-presence': [ + 'error', + { + props: 'never', + children: 'never', + }, + ], }, }; diff --git a/src/components/PageTitle.tsx b/src/components/PageTitle.tsx index 7f1dab02a..7a602ee6e 100644 --- a/src/components/PageTitle.tsx +++ b/src/components/PageTitle.tsx @@ -32,7 +32,7 @@ export const PageTitle: React.FC = ({ title, subtitle, info, onC {subtitle && ( <> - {':'} + : {subtitle}