{"size": 1458, "ext": "js", "max_stars_repo_path": ".eslintrc.js", "max_stars_repo_name": "typescript-fun/typescript-fun", "max_stars_repo_stars_event_min_datetime": "2020-01-01T14:43:44.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-12T04:28:27.000Z", "max_issues_repo_path": ".eslintrc.js", "max_issues_repo_name": "typescript-fun/typescript-fun", "max_issues_repo_issues_event_min_datetime": "2020-01-01T20:55:17.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-13T02:38:22.000Z", "max_forks_repo_path": ".eslintrc.js", "max_forks_repo_name": "typescript-fun/typescript-fun", "max_forks_repo_forks_event_min_datetime": "2020-01-05T00:19:04.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-22T15:49:24.000Z"}
{"max_stars_count": 44, "max_issues_count": 29, "max_forks_count": 11, "avg_line_length": 30.375, "max_line_length": 108, "alphanum_fraction": 0.6426611797}
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/README.md
module.exports = {
  root: true,
  parser: '@typescript-eslint/parser',
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ['./tsconfig.json'],
  },
  plugins: ['@typescript-eslint', 'react-hooks'],
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/eslint-recommended',
    'plugin:@typescript-eslint/recommended',
    'plugin:@typescript-eslint/recommended-requiring-type-checking',
    'prettier/@typescript-eslint',
    'plugin:react/recommended',
    'plugin:import/errors',
    'plugin:import/warnings',
    'plugin:import/typescript',
  ],
  settings: {
    react: {
      version: 'detect',
    },
  },
  rules: {
    // Unnecessary.
    'react/prop-types': 'off',
    '@typescript-eslint/ban-ts-ignore': 'off',
    'import/no-named-as-default': 'off',
    // Buggy.
    '@typescript-eslint/explicit-function-return-type': 'off',
    'no-unused-vars': 'off',
    '@typescript-eslint/no-unused-vars': 'off',
    // Any as placeholder is OK.
    '@typescript-eslint/no-explicit-any': 'off',
    // No console in production.
    'no-console': 'error',
    // This is must.
    'react-hooks/rules-of-hooks': 'error',
    'react-hooks/exhaustive-deps': 'error',
    // Usefull for bigger projects.
    'import/no-cycle': 'error',
    // Not working with React Native Web
    'import/no-unresolved': 'off',
  },
};
