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-base', 'prettier'],
  parserOptions: {
    ecmaVersion: 2018,
    ecmaFeatures: {
      impliedStrict: true,
      classes: true,
      allowImportExportEverywhere: true,
    },
  },
  env: {
    browser: true,
    node: true,
    jquery: true,
    jest: true,
  },
  rules: {
    'no-unused-vars': [
      'warn',
      {
        argsIgnorePattern: 'res|next|^err|_',
      },
    ],
    'require-await': 'warn',
    'arrow-body-style': ['error', 'as-needed'],
    'no-param-reassign': [
      'error',
      {
        props: false,
      },
    ],
    'implicit-arrow-linebreak': 'off',
    'operator-linebreak': 'off',
    'function-paren-newline': 'off',
    'no-confusing-arrow': 'off',
    'no-console': 'off',
    import: 'off',
    'func-names': 'off',
    'space-before-function-paren': 'off',
    'generator-star-spacing': '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',
    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,
      },
    ],
  },
  plugins: ['eslint-plugin-html', 'import', 'prettier'],
};