eslint-plugin-ava
Advanced tools
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73690
2440