How to use the eslint-plugin-jest.environments function in eslint-plugin-jest

To help you get started, we’ve selected a few eslint-plugin-jest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vuelidate / vuelidate / .eslintrc.js View on Github external
},
  extends: [
    // 'plugin:vue/essential', // is this required?
    'standard'
  ],
  globals: {},
  parserOptions: {
    ecmaVersion: 2018,
    sourceType: 'module'
  },
  plugins: [],
  rules: {},
  overrides: [
    Object.assign({}, jestConfig.configs.recommended, {
      files: ['packages/**/*.spec.js'],
      globals: jestConfig.environments.globals.globals,
      env: {
        es6: true,
        node: true
      }
    })
  ]
}

eslint-plugin-jest

ESLint rules for Jest

MIT
Latest version published 16 days ago

Package Health Score

92 / 100
Full package analysis