Preserve parens with keyof, enforce parens with arrows with type params (#2503)

* Force parens around argument of simple arrow function if type annotation is present

* Preserve parens inside keyof operator
This commit is contained in:
Lucas Azzola authored and Christopher Chedeau committed 2017-07-17 13:32:33 +02:00
1 parent b3a4785cec
commit d62d1c5c56
8 files changed
+34 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ module.exports = {
testRegex: "jsfmt\\.spec\\.js$|__tests__/.*\\.js$",
testPathIgnorePatterns: ["tests/new_react", "tests/more_react"],
collectCoverage: ENABLE_COVERAGE,
collectCoverageFrom: ["src/**/*.js", "index.js"],
collectCoverageFrom: ["src/**/*.js", "index.js", "!<rootDir>/node_modules/"],
coveragePathIgnorePatterns: [
"<rootDir>/src/doc-debug.js",
"<rootDir>/src/clean-ast.js",