Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@kv/eslint-config / src / utils / getConfig.ts
Size: Mime:
import type { PackageConfig } from '../types';

import getExtends from './getExtends';
import getPlugins from './getPlugins';
import getRules from './getRules';

const getConfig = ({ isTypeScript }: PackageConfig) => ({
  extends: getExtends({ isTypeScript }),
  plugins: getPlugins({ isTypeScript }),
  rules: getRules({ isTypeScript }),
  parser: '@typescript-eslint/parser',
  parserOptions: {
    ecmaVersion: 2020,
    sourceType: 'module',
    warnOnUnsupportedTypeScriptVersion: false,
  },
  env: {
    'jest/globals': true,
  },
  settings: {
    jest: {
      version: 26,
    },
    react: {
      version: '17.0.1',
    },
    'import/external-module-folders': ['node_modules', '.yarn'],
    'import/parsers': {
      '@typescript-eslint/parser': ['.js', '.jsx', '.ts', '.tsx'],
    },
  },
});

export default getConfig;