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    
Size: Mime:
/**
 * This is the default ESLint configuration.
 * Note: changes to this file affect all projects that depend on it.
 *
 * Refer to README.md for more usage information.
 */

module.exports = {
  extends: ['airbnb', 'prettier', 'prettier/react'],
  parserOptions: {
    ecmaVersion: 2018,
    ecmaFeatures: {
      impliedStrict: true,
      classes: true,
      allowImportExportEverywhere: true,
    },
  },
  env: {
    browser: true,
    node: true,
    jquery: true,
    jest: true,
  },
  globals: {
    shallow: true,
    render: true,
    mount: true,
  },
  rules: {
    'no-unused-vars': [
      'warn',
      {
        argsIgnorePattern: 'res|next|^err',
      },
    ],
    'arrow-body-style': ['error', 'as-needed'],
    'no-param-reassign': [
      'error',
      {
        props: false,
      },
    ],
    'no-console': 'off',
    import: 'off',
    'func-names': 'off',
    'space-before-function-paren': 'off',
    'comma-dangle': 'off',
    'max-len': 'off',
    'import/extensions': 'off',
    'import/no-extraneous-dependencies': [
      'error',
      {
        devDependencies: true,
      },
    ],
    'import/prefer-default-export': 'off',
    'no-underscore-dangle': 'off',
    'consistent-return': 'off',
    'react/display-name': 'warn',
    'react/jsx-filename-extension': [
      'warn',
      {
        extensions: ['.js', '.jsx'],
      },
    ],
    'react/jsx-no-bind': 'warn',
    'react/jsx-props-no-spreading': 'warn',
    'react/forbid-prop-types': 'warn',
    'react/no-unescaped-entities': 'off',
    'react/prefer-stateless-function': 'off',
    'react/react-in-jsx-scope': 'error',
    'react/static-property-placement': 'warn',
    radix: 'off',
    'no-shadow': [
      'error',
      {
        hoist: 'all',
        allow: ['resolve', 'reject', 'done', 'next', 'err', 'error'],
      },
    ],
    quotes: [
      'error',
      'single',
      {
        avoidEscape: true,
        allowTemplateLiterals: true,
      },
    ],
    'prettier/prettier': [
      'error',
      {
        trailingComma: 'es5',
        singleQuote: true,
        printWidth: 120,
      },
    ],
    'jsx-a11y/href-no-hash': 'off',
    'jsx-a11y/anchor-is-valid': [
      'warn',
      {
        aspects: ['invalidHref'],
      },
    ],
  },
  plugins: ['eslint-plugin-html', 'prettier', 'import'],
};