Skip to content

Commit

Permalink
Merge pull request #6 from ableco/feature/change-errors-to-warns
Browse files Browse the repository at this point in the history
Change errors to warns
  • Loading branch information
juliogarciag authored Oct 14, 2019
2 parents ab4de31 + c8a39b0 commit 734c893
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,37 @@ module.exports = {
extends: "react-app",
plugins: ["import", "react-hooks", "prettier"],
rules: {
"no-dupe-keys": "error",
"no-undef": "error",
"no-unreachable": "error",
"no-dupe-keys": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": [
"error",
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true
}
],
"no-useless-constructor": "error",
"no-var": "error",
"no-duplicate-imports": "error",
"no-duplicate-case": "error",
"import/no-unresolved": "error",
"import/default": "error",
"react/jsx-no-undef": "error",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "error",
"react/react-in-jsx-scope": "error",
"react/no-string-refs": "error",
"react/prop-types": ["error", { skipUndeclared: true }],
"react/forbid-prop-types": "error",
"react/prefer-stateless-function": [
"error",
{ ignorePureComponents: true }
],
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"no-useless-constructor": "warn",
"no-var": "warn",
"no-duplicate-imports": "warn",
"no-duplicate-case": "warn",
"import/no-unresolved": "warn",
"import/default": "warn",
"react/jsx-no-undef": "warn",
"react/jsx-uses-vars": "warn",
"react/jsx-uses-react": "warn",
"react/react-in-jsx-scope": "warn",
"react/no-string-refs": "warn",
"react/prop-types": ["warn", { skipUndeclared: true }],
"react/forbid-prop-types": "warn",
"react/prefer-stateless-function": ["warn", { ignorePureComponents: true }],
"react-hooks/rules-of-hooks": "warn", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"prettier/prettier": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-debugger": "error"
"prettier/prettier": "warn",
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-debugger": "warn"
}
};

// Globals added dynamically or add them in .eslintignore
// Globals added dynamically or add them in .eslintignore

0 comments on commit 734c893

Please sign in to comment.