{"size": 1864, "ext": "js", "max_stars_repo_path": ".eslintrc.js", "max_stars_repo_name": "devstronomy/frontend", "max_stars_repo_stars_event_min_datetime": "2019-09-10T19:52:03.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-10T19:52:03.000Z", "max_issues_repo_path": ".eslintrc.js", "max_issues_repo_name": "devstronomy/frontend", "max_issues_repo_issues_event_min_datetime": "2019-09-17T14:19:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T10:21:33.000Z", "max_forks_repo_path": ".eslintrc.js", "max_forks_repo_name": "devstronomy/frontend", "max_forks_repo_forks_event_min_datetime": "2019-09-17T07:38:20.000Z", "max_forks_repo_forks_event_max_datetime": "2019-09-17T07:38:20.000Z"}
{"max_stars_count": 1, "max_issues_count": 21, "max_forks_count": 1, "avg_line_length": 26.2535211268, "max_line_length": 233, "alphanum_fraction": 0.5756437768}
module.exports = {
  env: {
    browser: true,
    es2021: true,
    jest: true,
    node: true,
  },

  plugins: ['react', 'react-hooks'],

  extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended'],

  settings: {
    react: {
      version: 'detect',
      pragma: 'React', // Pragma to use, default to "React"
    },
  },

  rules: {
    'no-case-declarations': ['off'],
    'no-unused-vars': [
      'error',
      {
        ignoreRestSiblings: true,
        argsIgnorePattern: '^_',
      },
    ],

    // React 17
    'react/jsx-uses-react': 'off',
    'react/react-in-jsx-scope': 'off',
  },

  overrides: [
    {
      files: ['**/*.ts?(x)'],
      parser: '@typescript-eslint/parser',
      parserOptions: {
        ecmaVersion: 2021,
        sourceType: 'module',
        ecmaFeatures: {
          jsx: true,
        },

        // typescript-eslint specific options
        warnOnUnsupportedTypeScriptVersion: true,
      },
      plugins: ['@typescript-eslint'],
      extends: ['plugin:@typescript-eslint/recommended'],

      // If adding a typescript-eslint version of an existing ESLint rule, make sure to disable the ESLint rule here.
      rules: {
        // Check already done by TypeScript. See:
        // https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
        'no-undef': 'off',

        // Add TypeScript specific rules (and turn off ESLint equivalents)
        '@typescript-eslint/explicit-module-boundary-types': 'off',
        '@typescript-eslint/no-explicit-any': 'off',
        '@typescript-eslint/no-unused-vars': [
          'warn',
          {
            args: 'none',
          },
        ],
      },
    },
  ],
}
