module.exports = {
  env: {
    browser: true,
    es2021: true,
    node: true,
  },
  extends: ['airbnb-base', 'plugin:@typescript-eslint/recommended', 'prettier'],
  parser: '@typescript-eslint/parser',
  parserOptions: {
    ecmaVersion: 12,
    sourceType: 'module',
  },
  plugins: ['@typescript-eslint', 'prettier'],
  camelcase: ['error', { properties: 'never' }],//去除驼峰验证
  rules: {
    'prettier/prettier': 'error',
    'import/extensions': [
      'error',
      {
        js: 'never',
        jsx: 'never',
        ts: 'always',
        tsx: 'never',
        json: 'always',
      },
    ],

    'import/no-unresolved': 'off',
    'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
  },
};
