Sfoglia il codice sorgente

remove eslint-disable-next-line no-nested-ternary lines

Yuki Takei 2 mesi fa
parent
commit
ccb40be483

+ 0 - 1
apps/app/config/next-i18next.config.js

@@ -22,7 +22,6 @@ module.exports = {
   localePath: path.resolve('./public/static/locales'),
   serializeConfig: false,
 
-  // eslint-disable-next-line no-nested-ternary
   use: isDev
     ? isServer()
       ? [new HMRPlugin({ webpack: { server: true } })]

+ 0 - 1
apps/app/src/client/components/Admin/AuditLogManagement.tsx

@@ -158,7 +158,6 @@ export const AuditLogManagement: FC = () => {
       const isNan = Number.isNaN(inputNumber);
 
       if (!isNan) {
-        // eslint-disable-next-line no-nested-ternary
         const jumpPageNumber =
           inputNumber > totalPagingPages
             ? totalPagingPages

+ 0 - 2
apps/app/src/client/components/Common/SubmittableInput/AutosizeSubmittableInput.tsx

@@ -10,9 +10,7 @@ export const getAdjustedMaxWidthForAutosizeInput = (
   size: 'sm' | 'md' | 'lg' = 'md',
   isValid?: boolean,
 ): number => {
-  // eslint-disable-next-line no-nested-ternary
   const bsFormPaddingSize = size === 'sm' ? 8 : size === 'md' ? 12 : 16; // by bootstrap form
-  // eslint-disable-next-line no-nested-ternary
   const bsValidationIconSize = size === 'sm' ? 25 : size === 'md' ? 24 : 26; // by bootstrap form validation
 
   return (

+ 0 - 1
apps/app/src/client/components/Sidebar/Sidebar.tsx

@@ -285,7 +285,6 @@ export const Sidebar = (): JSX.Element => {
 
   // css styles
   const grwSidebarClass = styles['grw-sidebar'];
-  // eslint-disable-next-line no-nested-ternary
   let modeClass = '';
   switch (sidebarMode) {
     case SidebarMode.DRAWER:

+ 0 - 1
packages/remark-growi-directive/src/micromark-extension-growi-directive/lib/directive-leaf.js

@@ -75,7 +75,6 @@ function tokenizeDirectiveLeaf(effects, ok, nok) {
 
   /** @type {State} */
   function afterName(code) {
-    // eslint-disable-next-line no-nested-ternary
     return code === codes.dollarSign
       ? nok(code)
       : code === codes.leftSquareBracket

+ 0 - 1
packages/remark-growi-directive/src/micromark-extension-growi-directive/lib/directive-text.js

@@ -56,7 +56,6 @@ function tokenizeDirectiveText(effects, ok, nok) {
 
   /** @type {State} */
   function afterName(code) {
-    // eslint-disable-next-line no-nested-ternary
     return code === codes.dollarSign
       ? nok(code)
       : code === codes.leftSquareBracket