Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Indentation standard -> Issue#85 #158

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rtnAyush
Copy link

Added Indentation standard using eslint config with extended airbnb and prettier plugins.

Added pre-commit hook using husky. (Demp video below)

Below is prettier config

  {
    "tabWidth": 2,
    "useTabs": false,
    "semi": true,
    "singleQuote": false,
    "trailingComma": "all",
    "printWidth": 80
 }

While applying eslint, got these many error/ warnings that i ignores during linting

    "jsx-a11y/alt-text": ["off"],
    "jsx-a11y/img-redundant-alt": ["off"],

    "react/jsx-users-react": ["off"],
    "react/react-in-jsx-scope": ["off"],
    "react/jsx-props-no-spreading": ["off"],
    "react/jsx-filename-extension":["off"],
    "no-unused-vars": ["off"],
    "no-console": ["off"],
    "no-shadow": ["off"],
    "global-require": ["off"],
    "react/prop-types": ["off"],
    "react/destructuring-assignment": ["off"],
    "import/prefer-default-export": ["off"],
    "import/extensions": ["off"],
    "import/no-dynamic-require": ["off"],
    "import/no-dynamic-requires": ["off"],
    "react/no-unescaped-entities": ["off"],
    "react/no-unknown-property": ["off"],
    "no-plusplus": ["off"],
    "camelcase": ["off"],
    "react/jsx-no-useless-fragment": ["off"],
    "no-restricted-syntax": ["off"],
    "react/jsx-no-duplicate-props": ["off"],
    "react/forbid-prop-types": ["off"],
    "import/no-extraneous-dependencies": ["off"],
    "jsx-a11y/mouse-events-have-key-events": ["off"],
    "jsx-a11y/label-has-associated-control": ["off"],
    "import/no-named-as-default-member": ["off"],
    "react/no-unstable-nested-components": ["off"],
    "jsx-a11y/anchor-is-valid": ["off"],
    "jsx-a11y/no-static-element-interactions": ["off"],
    "jsx-a11y/click-events-have-key-events": ["off"],
    "class-methods-use-this": ["off"],
    "guard-for-in": ["off"],
    "no-dupe-keys": ["off"],
    "react/style-prop-object": ["off"],
    "react/prefer-stateless-function": ["off"],
    "jsx-a11y/iframe-has-title": ["off"],
    "react/no-unused-state": ["off"],
    "jsx-a11y/no-distracting-elements": ["off"],
    "no-use-before-defined": ["off"],
    "no-use-before-define": ["off"],
    "import/no-named-as-default": ["off"],
    "react/state-in-constructor": ["off"],
    "react/no-access-state-in-setstate": ["off"],
    "react/require-default-props": ["off"],
    "react/sort-comp": ["off"],
    "import/order": ["off"],
    "react/jsx-no-bind": ["off"],
    "react/button-has-type": ["off"],
    "no-param-reassign": ["off"],
    "no-nested-ternary": ["off"]
demo.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant