eslint-plugin-no-array-reduce
Advanced tools
Comparing version 1.0.51 to 1.0.52
@@ -1,1 +0,1 @@ | ||
var r=(e,o)=>({MemberExpression(n){n.property.name===o&&e.report({node:n,message:`Usage of "${o}()" method is disallowed.`})}});var u={rules:{"no-reduce":{create:e=>r(e,"reduce")},"no-reduce-right":{create:e=>r(e,"reduceRight")}},configs:{recommended:{plugins:["no-array-reduce"],rules:{"no-array-reduce/no-reduce":"error","no-array-reduce/no-reduce-right":"error"}}}};module.exports=u; | ||
var r=(e,o)=>({MemberExpression(t){t.property.name===o&&e.report({node:t,message:`Usage of "${o}()" method is disallowed.`})}});var n={rules:{"no-reduce":{create:e=>r(e,"reduce")},"no-reduce-right":{create:e=>r(e,"reduceRight")}},configs:{recommended:{plugins:["no-array-reduce"],rules:{"no-array-reduce/no-reduce":"error","no-array-reduce/no-reduce-right":"error"}}}};module.exports=n; |
{ | ||
"name": "eslint-plugin-no-array-reduce", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"description": "ESLint rule to disallow Array.reduce() method.", | ||
@@ -13,6 +13,6 @@ "main": "./dist/index.js", | ||
"build": "tsup src/index.ts --no-splitting --minify", | ||
"lint": "eslint --max-warnings 0 'src/**/*.{js,ts}'", | ||
"lint": "eslint --max-warnings 0 .", | ||
"lint-staged-husky": "lint-staged", | ||
"lint-prettier": "prettier --config .prettierrc -l './**/*.{ts,tsx,js,jsx,css,scss,json,md}'", | ||
"prettier": "prettier --config .prettierrc --write './**/*.{ts,tsx,js,jsx,css,scss,json,md}'", | ||
"lint-prettier": "prettier --config .prettierrc -l --ignore-unknown './**/*'", | ||
"prettier": "prettier --config .prettierrc --write --ignore-unknown './**/*'", | ||
"commit": "git-cz", | ||
@@ -28,8 +28,8 @@ "semantic-release": "semantic-release --branches main", | ||
"@types/node": "^17.0.23", | ||
"@typescript-eslint/eslint-plugin": "^5.17.0", | ||
"@typescript-eslint/parser": "^5.17.0", | ||
"@typescript-eslint/eslint-plugin": "^5.18.0", | ||
"@typescript-eslint/parser": "^5.18.0", | ||
"commitizen": "^4.2.4", | ||
"eslint": "^8.12.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
@@ -47,10 +47,2 @@ "husky": "^7.0.4", | ||
}, | ||
"lint-staged": { | ||
"*": [ | ||
"pretty-quick --staged" | ||
], | ||
"{src,test}/**/*.{js,ts}": [ | ||
"eslint --max-warnings 0" | ||
] | ||
}, | ||
"commitlint": { | ||
@@ -57,0 +49,0 @@ "extends": [ |
6614