Coder Social home page Coder Social logo

gts-react-template's Introduction

gts-react-template

A template repo for writing a React app in Google Typescript Style with ESLint.

This is roughly equivalent to running create-react-app and adding gts. When in conflict, I've preferred gts-recommended settings to create-react-app's defaults.

Why?

Provide an opinionated React template, with the dev tool niceties that come with opinionation. Make Typescript feel like Go.

Usage

  1. Hit Use this template to create a new project repository.
  2. Rename the app; use ag gts-react-template.
  3. Check on the typescript, gts, eslint versions pinned in package.json; update them as appropriate.

To bulk-update all dependencies to their latest versions:

$ npx npm-check-updates -u
$ npm install

Notes

This template is based on another unpublished project, in which I initialized a React app with gts (loosely tracking these instructions):

$ npx create-react-app --template=typescript YOUR-APP-NAME
$ cd YOUR-APP-NAME
$ npx gts init
$ npm install eslint-plugin-react --save-dev
$ npm install eslint-plugin-node@latest --save-dev
$ npm install eslint-plugin-prettier@latest --save-dev
$ npx gts check
$ npx gts fix

gts-react-template's People

Contributors

lukasschwab avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

gts-react-template's Issues

Extending node settings

I honestly love this, gts is awesome. But in the case of Javascript files, gts has a node config and because of it, it breaks if the JS files use es6 imports and exports, eslint starts throwing errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.