From 3f2f7bd0acc1037f0ccff0a70863aca1e34e8d20 Mon Sep 17 00:00:00 2001 From: Richard Sexton Date: Wed, 10 Apr 2019 14:02:01 -0700 Subject: [PATCH] Remove confusing lint rules --- es5/mobify-es5.yml | 1 - es6/mobify-es6-react.yml | 4 ---- es6/mobify-es6.yml | 2 -- javascript/.eslintrc | 3 --- javascript/.eslintrc-reset | 1 - 5 files changed, 11 deletions(-) diff --git a/es5/mobify-es5.yml b/es5/mobify-es5.yml index ececcba..f7ed377 100644 --- a/es5/mobify-es5.yml +++ b/es5/mobify-es5.yml @@ -47,7 +47,6 @@ rules: space-infix-ops: error space-unary-ops: error no-undef: error - eol-last: warn quotes: - error - single diff --git a/es6/mobify-es6-react.yml b/es6/mobify-es6-react.yml index 1db83d3..7530f4a 100644 --- a/es6/mobify-es6-react.yml +++ b/es6/mobify-es6-react.yml @@ -25,10 +25,6 @@ rules: react/no-string-refs: error react/prefer-es6-class: error react/prefer-stateless-function: error - react/sort-prop-types: - - error - - callbacksLast: true - requiredFirst: true # JSX formatting preferences react/self-closing-comp: error diff --git a/es6/mobify-es6.yml b/es6/mobify-es6.yml index 0b87e83..571b7ea 100644 --- a/es6/mobify-es6.yml +++ b/es6/mobify-es6.yml @@ -139,7 +139,6 @@ rules: - error - property dot-notation: error - eol-last: error generator-star-spacing: error indent: - error @@ -168,7 +167,6 @@ rules: no-spaced-func: error no-trailing-spaces: error no-whitespace-before-property: error - object-curly-spacing: error operator-linebreak: - error - after diff --git a/javascript/.eslintrc b/javascript/.eslintrc index 0f3fea9..1063436 100644 --- a/javascript/.eslintrc +++ b/javascript/.eslintrc @@ -87,9 +87,6 @@ // Disallow undeclared variables (unless mentioned in /*global ...*/ comment) "no-undef": 2, - // Warn if single newline at end of file is missing - "eol-last": 1, - // Enforce single quotes for string literals "quotes": [2, "single"], diff --git a/javascript/.eslintrc-reset b/javascript/.eslintrc-reset index fd6ce2c..c6ee41a 100644 --- a/javascript/.eslintrc-reset +++ b/javascript/.eslintrc-reset @@ -149,7 +149,6 @@ "comma-spacing": 0, // enforce spacing before and after comma *** "comma-style": 0, // enforce one true comma style *** "consistent-this": 0, // enforces consistent naming when capturing the current execution context *** - "eol-last": 0, // enforce newline at the end of file, with no multiple empty lines "func-names": 0, // require function expressions to have a name "func-style": 0, // enforces use of function declarations or expressions *** "key-spacing": 0, // enforces spacing between keys and values in object literal properties ***