eslint-plugin-autofix
Advanced tools
Comparing version 0.0.9 to 1.0.0
@@ -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 @@ /** |
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
46330
8
0
714
+ Addedstring-similarity@4.0.4(transitive)
- Removedstring-similarity@3.0.0(transitive)
Updatedespree@^6.1.2
Updatedstring-similarity@^4.0.1