Skip to content

Commit 586d9eb

Browse files
authored
chore: simplify linter configuration (#134)
1 parent 67dad97 commit 586d9eb

File tree

5 files changed

+4
-143
lines changed

5 files changed

+4
-143
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"plugins": ["eslint-plugin", "node", "prettier"],
1010
"extends": [
11-
"standard",
11+
"eslint:recommended",
1212
"plugin:eslint-plugin/recommended",
1313
"plugin:node/recommended",
1414
"plugin:prettier/recommended"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Enforce best practices for JavaScript promises.
44

55
[![travis-ci](https://travis-ci.org/xjamundx/eslint-plugin-promise.svg)](https://travis-ci.org/xjamundx/eslint-plugin-promise)
66
[![npm version](https://badge.fury.io/js/eslint-plugin-promise.svg)](https://www.npmjs.com/package/eslint-plugin-promise)
7-
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
87
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
98

109
<!-- START doctoc generated TOC please keep comment here to allow auto update -->

package-lock.json

Lines changed: 0 additions & 134 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,16 @@
1414
"scripts": {
1515
"precommit": "lint-staged",
1616
"test": "jest",
17-
"lint": "eslint index.js rules __tests__ --ignore-pattern '**/*.json'"
17+
"lint": "eslint **/*.js"
1818
},
1919
"devDependencies": {
2020
"doctoc": "^1.3.0",
2121
"eslint": "^4.17.0",
2222
"eslint-config-prettier": "^2.9.0",
23-
"eslint-config-standard": "^11.0.0-beta.0",
2423
"eslint-plugin-eslint-plugin": "^1.4.0",
25-
"eslint-plugin-import": "^2.8.0",
2624
"eslint-plugin-jest": "^21.12.2",
2725
"eslint-plugin-node": "^6.0.0",
2826
"eslint-plugin-prettier": "^2.6.0",
29-
"eslint-plugin-promise": "./",
30-
"eslint-plugin-standard": "^3.0.1",
3127
"husky": "^0.14.3",
3228
"jest": "^22.4.2",
3329
"jest-runner-eslint": "^0.4.0",

rules/always-return.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ module.exports = {
111111
funcInfo.branchInfoMap[segment.id] = { good: false, node: node }
112112
},
113113

114-
onCodePathSegmentEnd: function(segment, node) {
114+
onCodePathSegmentEnd: function() {
115115
const funcInfo = peek(funcInfoStack)
116116
funcInfo.branchIDStack.pop()
117117
},
118118

119-
onCodePathStart: function(path, node) {
119+
onCodePathStart: function() {
120120
funcInfoStack.push({
121121
branchIDStack: [],
122122
branchInfoMap: {}

0 commit comments

Comments
 (0)