{"size": 1252, "ext": "js", "max_stars_repo_path": ".config/eslint/.eslintrc.js", "max_stars_repo_name": "mayank0508/moon-design", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": ".config/eslint/.eslintrc.js", "max_issues_repo_name": "mayank0508/moon-design", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": ".config/eslint/.eslintrc.js", "max_forks_repo_name": "mayank0508/moon-design", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.6382978723, "max_line_length": 121, "alphanum_fraction": 0.5870607029}
const path = require('path');

module.exports = {
  extends: ["eslint:recommended", "prettier"],
  env: {
    browser: true,
    node: true,
    es6: true,
  },
  parserOptions: {
    sourceType: "module",
    allowImportExportEverywhere: true
  },
  parser: '@typescript-eslint/parser',
  plugins: ['react', '@typescript-eslint'],
  rules: {
    //
    // @TODO Implementation
    //
    'import/first': 'off', // Unnecessarily compresses JSX comment
    // 'import/no-cycle': 'off',
    'import/export': 'off', // We have both default export as well as named ones for now
    'no-unused-expressions': 'off', // Investigate `jsx;` alternative
    'no-use-before-define': 'off',
    '@typescript-eslint/no-inferrable-types': 'off',
    "@typescript-eslint/no-use-before-define": 'off',
    "no-undef": 'off',
    "no-unused-vars": 'off'
    // Prevents a bug https://stackoverflow.com/questions/63818415/react-was-used-before-it-was-defined/64024916#64024916
  },
  overrides: [
    {
      /** Disable specific rules for SVGR config */
      files: ['packages/icons/src/config/*'],
      rules: {
        'no-unused-vars': 'off',
      },
    },
    {
      files: ['*.test.ts', '*.test.tsx'],
      env: {
        jest: true,
      },
    },
  ],
};
