eslint-config-jhipster-react

Provides JHipster ESLint shareable configurations for React applications

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-config-jhipster-react
0.0.14 years ago4 years agoMinified + gzip package size for eslint-config-jhipster-react in KB

Readme

eslint-config-jhipster-react
Provides JHipster ESLint shareable configurations used in the JHispter generated React applications.
!NPM versionnpm-imagenpm-url !Dependency Statusdaviddm-imagedaviddm-url !code style: prettierprettier-imageprettier-url !Downloadsnpmcharts-imagenpmcharts-url

Overview

JHipster react shareable configurations.

Extends

JHipster react shareable configuration extends the base set of rules from eslint-config-jhipster to add react specific linting rules.
'plugin:react/recommended',
'jhipster'

Rules

In addition to the recommended set of configurations, JHipster overrides following rules.
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': [
  'error',
  {
    types: {
      Object: 'Use {} instead.'
    }
  }
],
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/unbound-method': 'off',
'default-case': 'error',
complexity: ['error', 40],
'no-invalid-this': 'off',
'react/prop-types': 'off',
'react/display-name': 'off'
License
Apache-2.0 © Vishal Mahajan