Created
January 4, 2018 21:29
-
-
Save pauloborges/b7e0a0adcf4593c018f3213aeac438a5 to your computer and use it in GitHub Desktop.
eslint-plugin-prettier-issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends: | |
- plugin:prettier/recommended | |
parserOptions: | |
ecmaVersion: 6 | |
rules: | |
prefer-arrow-callback: "error" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function func(arg) { | |
return Array.isArray(arg.param) && foo.bar.filter(function(baz) { | |
return baz.code === 42; | |
}).length > 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "eslint-plugin-prettier-issue", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"lint": "eslint index.js", | |
"lint-fix": "eslint --fix index.js", | |
"prettier": "prettier index.js" | |
}, | |
"devDependencies": { | |
"eslint": "^4.14.0", | |
"eslint-config-prettier": "^2.9.0", | |
"eslint-plugin-prettier": "^2.4.0", | |
"prettier": "^1.9.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment