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

eslint-plugin-autofix

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-autofix - npm Package Compare versions

Comparing version 0.0.9 to 1.0.0

3

lib/ast-utils.js

@@ -13,3 +13,3 @@ /**

* Finds a function node from ancestors of a node.
* @param {ASTNode} node - A start node to find.
* @param {ASTNode} node A start node to find.
* @returns {Node|null} A found function node.

@@ -28,3 +28,2 @@ */

* Check if an expression has side effect.
*
* @param {Node} node AST node

@@ -31,0 +30,0 @@ * @returns {boolean} result

@@ -8,3 +8,3 @@ /**

const packageMetadata = require("../../package");
const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/, "");
const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/u, "");
const allRules = require("../rules");

@@ -11,0 +11,0 @@

@@ -8,3 +8,3 @@ /**

const packageMetadata = require("../../package");
const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/, "");
const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/u, "");
const allRules = require("../rules");

@@ -11,0 +11,0 @@

@@ -8,3 +8,3 @@ /**

const packageMetadata = require("../../package");
const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/, "");
const PLUGIN_NAME = packageMetadata.name.replace(/^eslint-plugin-/u, "");
const allRules = require("../rules");

@@ -11,0 +11,0 @@

@@ -0,0 +0,0 @@ /**

@@ -56,6 +56,6 @@ /**

fs.readdirSync(`${__dirname}/rules`)
.filter(fileName => fileName.endsWith(".js") && /^[^._]/.test(fileName))
.map(fileName => fileName.replace(/\.js$/, ""))
.filter(fileName => fileName.endsWith(".js") && /^[^._]/u.test(fileName))
.map(fileName => fileName.replace(/\.js$/u, ""))
.reduce((rules, ruleName) => Object.assign(rules, { [ruleName]: loadRule(ruleName) }), allRules);
module.exports = allRules;

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -19,3 +19,2 @@ /**

* This function is directly copied from eslint source code.
*
* @param {Object} options Options from context

@@ -65,3 +64,2 @@ * @returns {Object} config The rule config

* unused.
*
* @param {Object} config rule config

@@ -77,3 +75,3 @@ * @returns {string | null} the prefix, if it exists

const m = argsIgnorePattern.toString().match(/^\/\^(\w+)\/\w?$/);
const m = argsIgnorePattern.toString().match(/^\/\^(\w+)\/\w?$/u);

@@ -80,0 +78,0 @@ if (!m) {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

{
"name": "eslint-plugin-autofix",
"version": "0.0.9",
"version": "1.0.0",
"author": "薛定谔的猫 <weiran.zsd@outlook.com>",

@@ -8,5 +8,3 @@ "description": "autofix some errors reported by eslint rules.",

"scripts": {
"lint": "eslint .",
"test": "mocha \"tests/**/*.js\"",
"pretest": "npm run lint",
"generate-readme-table": "node tools/generate-readme-table.js",

@@ -23,20 +21,16 @@ "generate-release": "node-release-script",

"eslint-rule-composer": "^0.3.0",
"espree": "^6.0.0",
"espree": "^6.1.2",
"esutils": "^2.0.2",
"lodash": "^4.17.15",
"string-similarity": "^3.0.0"
"string-similarity": "^4.0.1"
},
"devDependencies": {
"@not-an-aardvark/node-release-script": "^0.1.0",
"@types/eslint": "^4.16.6",
"eslint": "^6.1.0",
"eslint-config-eslint": "^5.0.1",
"eslint-plugin-eslint-plugin": "^2.0.1",
"eslint-plugin-node": "^9.1.0",
"execa": "^2.0.3",
"@types/eslint": "^6.1.8",
"execa": "^4.0.0",
"git-config": "0.0.7",
"husky": "^3.0.1",
"husky": "^4.2.3",
"minimist": "^1.2.0",
"mocha": "^6.2.0",
"standard-version": "^7.0.0"
"mocha": "^7.0.1",
"standard-version": "^7.1.0"
},

@@ -50,34 +44,2 @@ "peerDependencies": {

],
"eslintConfig": {
"extends": [
"eslint",
"plugin:eslint-plugin/recommended"
],
"plugins": [
"eslint-plugin"
],
"overrides": [
{
"files": [
"lib/rules/*.js"
],
"rules": {
"project/rule-def-format": 0
}
},
{
"files": [
"tests/**/*.js"
],
"env": {
"mocha": true
}
}
]
},
"husky": {
"hooks": {
"pre-commit": "npm run lint -- --fix && git add ."
}
},
"license": "MIT",

@@ -84,0 +46,0 @@ "repository": "https://github.com/aladdin-add/eslint-plugin/tree/master/packages/autofix",

@@ -0,0 +0,0 @@ <p align="center">

Sorry, the diff of this file is not supported yet

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