Config for Typescript projects at Labrys which incorporates AirBnb, Shopify, prettier, and React Hook configs.
If you have npm 5+ installed on your machine, use this shortcut
npx install-peerdeps --dev eslint-config-labrys -Y -x "-W"Otherwise, run npm info "eslint-config-labrys@latest" peerDependencies to list the peer dependencies and versions, then run yarn add --dev <dependency>@<version> for each listed peer dependency.
Create a file named .eslintrc.js and add the following for a React project:
module.exports = {
extends: "eslint-config-labrys",
parser: "@typescript-eslint/parser",
};and for a non-React project:
module.exports = {
extends: "eslint-config-labrys/base",
parser: "@typescript-eslint/parser",
};See CONTRIBUTING.md in the GitLab repo for a guide on how to contribute to this config.