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:
const base = require('./base');

/**
 * This is the ESLint configuration for React projects.
 * Note: changes to this file affect all projects that depend on it.
 *
 * Refer to README.md for more usage information.
 */

module.exports = {
  ...base,
  extends: ['airbnb', 'prettier/react'],
  globals: {
    ...base.globals,
    shallow: true,
    render: true,
    mount: true,
  },
  rules: {
    ...base.rules,
    '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': 'off',
    'jsx-a11y/click-events-have-key-events': 'warn',
    'jsx-a11y/no-static-element-interactions': 'warn',
    'jsx-a11y/label-has-for': 'off',
    'jsx-a11y/href-no-hash': 'off',
    'jsx-a11y/anchor-is-valid': [
      'warn',
      {
        aspects: ['invalidHref'],
      },
    ],
  },
};