connctd / eslint-config-typescript

:lipstick: Typescript code style for projects
0 stars 0 forks source link

Preffered code style #1

Open PandelisZ opened 5 years ago

PandelisZ commented 5 years ago

I think shopify might be a better choice as they use typescript natively whereas airbnb, although overall have a nice es-list setup, they don't use typescript so some of the rules overlap.

Maybe we want something like:

{
  "extends": ["plugin:shopify/react", "plugin:jsx-a11y/recommended", "prettier"],
  "plugins": ["jsx-a11y"],
  "rules": {
    "jsx-a11y/no-onchange": "off",
    "sort-class-members/sort-class-members": "off",
    "react/prop-types": "off",
    "array-callback-return": "off",
    "no-process-env": "off",
    "space-before-function-paren": ["error", {
      "anonymous": "never",
      "named": "never",
      "asyncArrow": "always"
    }],
    "function-paren-newline": "off",
    "react/no-typos": "off",
    "react/no-unused-state": "off"
  }
}

Some goals and aims that I have in mind:

PandelisZ commented 5 years ago

Ha, relevant meme Via: Check out @markdalgleish’s Tweet: https://twitter.com/markdalgleish/status/1153595512248926208?s=09 IMG_20190724_050211

PandelisZ commented 5 years ago

https://twitter.com/briebunge/status/1155163233860366336?s=19

Airbn have adopted typescript so I'll be reading through their approach