Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-ava

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-ava - npm Package Compare versions

Comparing version 15.0.0 to 15.0.1

59

index.js

@@ -5,4 +5,5 @@ 'use strict';

const importModules = require('import-modules');
const {name, version} = require('./package.json');
const rules = {
const recommendedRules = {
'ava/assertion-arguments': 'error',

@@ -40,29 +41,37 @@ 'ava/hooks-order': 'error',

module.exports = {
const plugin = {
meta: {
name,
version,
},
rules: importModules(path.resolve(__dirname, 'rules'), {camelize: false}),
configs: {
recommended: {
env: {
es6: true,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'ava',
],
rules: {
...rules,
},
configs: {},
};
Object.assign(plugin.configs, {
recommended: {
env: {
es6: true,
},
'flat/recommended': {
plugins: {
ava: 'ava',
},
rules: {
...rules,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'ava',
],
rules: {
...recommendedRules,
},
},
};
'flat/recommended': {
plugins: {
ava: plugin,
},
rules: {
...recommendedRules,
},
},
});
module.exports = plugin;
{
"name": "eslint-plugin-ava",
"version": "15.0.0",
"version": "15.0.1",
"description": "ESLint rules for AVA",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc