Last active
September 29, 2017 20:43
-
-
Save fczuardi/c605e680e51e5bf53f72fd2edf8a3d16 to your computer and use it in GitHub Desktop.
what rules are turned would be turned off if using the eslint-config-prettier on a eslint-config-standard-react config
This file contains hidden or 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": [ | |
"standard", | |
"standard-react" | |
] | |
} |
This file contains hidden or 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": [ | |
"standard", | |
"standard-react", | |
"prettier" | |
] | |
} |
This file contains hidden or 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
diff --git a/standard-react.json b/standard-react-with-prettier.json | |
index 5dfdfa1..b437d52 100644 | |
--- a/standard-react.json | |
+++ b/standard-react-with-prettier.json | |
@@ -88,18 +88,18 @@ | |
"rules": { | |
"accessor-pairs": "error", | |
"arrow-spacing": [ | |
- "error", | |
+ "off", | |
{ | |
"before": true, | |
"after": true | |
} | |
], | |
"block-spacing": [ | |
- "error", | |
+ "off", | |
"always" | |
], | |
"brace-style": [ | |
- "error", | |
+ "off", | |
"1tbs", | |
{ | |
"allowSingleLine": true | |
@@ -112,7 +112,7 @@ | |
} | |
], | |
"comma-dangle": [ | |
- "error", | |
+ "off", | |
{ | |
"arrays": "never", | |
"objects": "never", | |
@@ -122,26 +122,26 @@ | |
} | |
], | |
"comma-spacing": [ | |
- "error", | |
+ "off", | |
{ | |
"before": false, | |
"after": true | |
} | |
], | |
"comma-style": [ | |
- "error", | |
+ "off", | |
"last" | |
], | |
"constructor-super": "error", | |
"curly": [ | |
- "error", | |
+ 0, | |
"multi-line" | |
], | |
"dot-location": [ | |
- "error", | |
+ "off", | |
"property" | |
], | |
- "eol-last": "error", | |
+ "eol-last": "off", | |
"eqeqeq": [ | |
"error", | |
"always", | |
@@ -150,11 +150,11 @@ | |
} | |
], | |
"func-call-spacing": [ | |
- "error", | |
+ "off", | |
"never" | |
], | |
"generator-star-spacing": [ | |
- "error", | |
+ "off", | |
{ | |
"before": true, | |
"after": true | |
@@ -165,21 +165,21 @@ | |
"^(err|error)$" | |
], | |
"indent": [ | |
- "error", | |
+ "off", | |
2, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"key-spacing": [ | |
- "error", | |
+ "off", | |
{ | |
"beforeColon": false, | |
"afterColon": true | |
} | |
], | |
"keyword-spacing": [ | |
- "error", | |
+ "off", | |
{ | |
"before": true, | |
"after": true | |
@@ -192,7 +192,7 @@ | |
"capIsNew": false | |
} | |
], | |
- "new-parens": "error", | |
+ "new-parens": "off", | |
"no-array-constructor": "error", | |
"no-caller": "error", | |
"no-class-assign": "error", | |
@@ -220,11 +220,11 @@ | |
"no-extra-bind": "error", | |
"no-extra-boolean-cast": "error", | |
"no-extra-parens": [ | |
- "error", | |
+ "off", | |
"functions" | |
], | |
"no-fallthrough": "error", | |
- "no-floating-decimal": "error", | |
+ "no-floating-decimal": "off", | |
"no-func-assign": "error", | |
"no-global-assign": "error", | |
"no-implied-eval": "error", | |
@@ -245,7 +245,7 @@ | |
], | |
"no-lone-blocks": "error", | |
"no-mixed-operators": [ | |
- "error", | |
+ 0, | |
{ | |
"groups": [ | |
[ | |
@@ -270,11 +270,11 @@ | |
"allowSamePrecedence": true | |
} | |
], | |
- "no-mixed-spaces-and-tabs": "error", | |
- "no-multi-spaces": "error", | |
+ "no-mixed-spaces-and-tabs": "off", | |
+ "no-multi-spaces": "off", | |
"no-multi-str": "error", | |
"no-multiple-empty-lines": [ | |
- "error", | |
+ "off", | |
{ | |
"max": 1, | |
"maxEOF": 0 | |
@@ -304,11 +304,11 @@ | |
"no-sequences": "error", | |
"no-shadow-restricted-names": "error", | |
"no-sparse-arrays": "error", | |
- "no-tabs": "error", | |
+ "no-tabs": 0, | |
"no-template-curly-in-string": "error", | |
"no-this-before-super": "error", | |
"no-throw-literal": "error", | |
- "no-trailing-spaces": "error", | |
+ "no-trailing-spaces": "off", | |
"no-undef": "error", | |
"no-undef-init": "error", | |
"no-unexpected-multiline": "error", | |
@@ -352,10 +352,10 @@ | |
"no-useless-escape": "error", | |
"no-useless-rename": "error", | |
"no-useless-return": "error", | |
- "no-whitespace-before-property": "error", | |
+ "no-whitespace-before-property": "off", | |
"no-with": "error", | |
"object-property-newline": [ | |
- "error", | |
+ "off", | |
{ | |
"allowMultiplePropertiesPerLine": true | |
} | |
@@ -367,7 +367,7 @@ | |
} | |
], | |
"operator-linebreak": [ | |
- "error", | |
+ "off", | |
"after", | |
{ | |
"overrides": { | |
@@ -377,7 +377,7 @@ | |
} | |
], | |
"padded-blocks": [ | |
- "error", | |
+ "off", | |
{ | |
"blocks": "never", | |
"switches": "never", | |
@@ -386,7 +386,7 @@ | |
], | |
"prefer-promise-reject-errors": "error", | |
"quotes": [ | |
- "error", | |
+ 0, | |
"single", | |
{ | |
"avoidEscape": true, | |
@@ -394,35 +394,35 @@ | |
} | |
], | |
"rest-spread-spacing": [ | |
- "error", | |
+ "off", | |
"never" | |
], | |
"semi": [ | |
- "error", | |
+ "off", | |
"never" | |
], | |
"semi-spacing": [ | |
- "error", | |
+ "off", | |
{ | |
"before": false, | |
"after": true | |
} | |
], | |
"space-before-blocks": [ | |
- "error", | |
+ "off", | |
"always" | |
], | |
"space-before-function-paren": [ | |
- "error", | |
+ "off", | |
"always" | |
], | |
"space-in-parens": [ | |
- "error", | |
+ "off", | |
"never" | |
], | |
- "space-infix-ops": "error", | |
+ "space-infix-ops": "off", | |
"space-unary-ops": [ | |
- "error", | |
+ "off", | |
{ | |
"words": true, | |
"nonwords": false | |
@@ -458,15 +458,15 @@ | |
], | |
"symbol-description": "error", | |
"template-curly-spacing": [ | |
- "error", | |
+ "off", | |
"never" | |
], | |
"template-tag-spacing": [ | |
- "error", | |
+ "off", | |
"never" | |
], | |
"unicode-bom": [ | |
- "error", | |
+ "off", | |
"never" | |
], | |
"use-isnan": "error", | |
@@ -477,14 +477,14 @@ | |
} | |
], | |
"wrap-iife": [ | |
- "error", | |
+ "off", | |
"any", | |
{ | |
"functionPrototypeMethods": true | |
} | |
], | |
"yield-star-spacing": [ | |
- "error", | |
+ "off", | |
"both" | |
], | |
"yoda": [ | |
@@ -512,7 +512,7 @@ | |
"either" | |
], | |
"jsx-quotes": [ | |
- "error", | |
+ "off", | |
"prefer-single" | |
], | |
"react/jsx-boolean-value": "error", | |
@@ -555,7 +555,41 @@ | |
"react/no-unknown-property": "error", | |
"react/no-unused-prop-types": "error", | |
"react/prop-types": "error", | |
- "react/react-in-jsx-scope": "error" | |
+ "react/react-in-jsx-scope": "error", | |
+ "max-len": 0, | |
+ "no-confusing-arrow": 0, | |
+ "array-bracket-newline": "off", | |
+ "array-bracket-spacing": "off", | |
+ "array-element-newline": "off", | |
+ "arrow-parens": "off", | |
+ "computed-property-spacing": "off", | |
+ "function-paren-newline": "off", | |
+ "generator-star": "off", | |
+ "indent-legacy": "off", | |
+ "multiline-ternary": "off", | |
+ "newline-per-chained-call": "off", | |
+ "no-arrow-condition": "off", | |
+ "no-comma-dangle": "off", | |
+ "no-extra-semi": "off", | |
+ "no-reserved-keys": "off", | |
+ "no-space-before-semi": "off", | |
+ "no-spaced-func": "off", | |
+ "no-wrap-func": "off", | |
+ "nonblock-statement-body-position": "off", | |
+ "object-curly-newline": "off", | |
+ "object-curly-spacing": "off", | |
+ "one-var-declaration-per-line": "off", | |
+ "quote-props": "off", | |
+ "semi-style": "off", | |
+ "space-after-function-name": "off", | |
+ "space-after-keywords": "off", | |
+ "space-before-function-parentheses": "off", | |
+ "space-before-keywords": "off", | |
+ "space-in-brackets": "off", | |
+ "space-return-throw-case": "off", | |
+ "space-unary-word-ops": "off", | |
+ "switch-colon-spacing": "off", | |
+ "wrap-regex": "off" | |
}, | |
"parserOptions": { | |
"ecmaVersion": 8, | |
@@ -576,6 +610,7 @@ | |
"extends": [ | |
"/Users/fabricio/mnmo/friday/eslint-tests/node_modules/eslint-config-standard-jsx/index.js", | |
"standard", | |
- "standard-react" | |
+ "standard-react", | |
+ "prettier" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment