mpellegrini / fullstack-typescript-monorepo-starter

1 stars 1 forks source link

feature: add more typescript-eslint rules to toolchain/eslint-config #94

Closed mpellegrini closed 3 months ago

mpellegrini commented 3 months ago

Add the following rules to the base typescript esling-config

mpellegrini commented 3 months ago
'@typescript-eslint/naming-convention': [
      'error',
      {
        selector: 'default',
        format: ['camelCase', 'PascalCase'],
        leadingUnderscore: 'allow',
        trailingUnderscore: 'allow',
      },
      { selector: 'class', format: ['PascalCase'] },
      { selector: 'typeAlias', format: ['PascalCase'] },
      { selector: 'property', format: null },
      {
        selector: 'variableLike',
        format: ['camelCase', 'PascalCase', 'UPPER_CASE'], // React component のため
        leadingUnderscore: 'allow',
        trailingUnderscore: 'allow',
      },
    ],
mpellegrini commented 3 months ago

https://typescript-eslint.io/rules/no-empty-object-type/ is already enabled in the recommended setting

mpellegrini commented 3 months ago

Not going to implement the tailwindcss plugin

mpellegrini commented 3 months ago

moved https://typescript-eslint.io/rules/naming-convention/ to separate ticket. Which completed everything in this ticket.