Coder Social home page Coder Social logo

dev-config's Introduction

Moved to https://github.com/knicola/node-toolkit/tree/master/tools/dev-config

@knicola/dev-config

Install

npm i -D @knicola/dev-config typescript eslint

Setup

.eslintrc.js

require('@knicola/dev-config/eslint.patch')

module.exports = {
    extends: ['./node_modules/@knicola/dev-config/eslint.base'],
    parserOptions: { tsconfigRootDir: __dirname }
}

tsconfig.json

{
  "extends": "@knicola/dev-config/tsconfig.base",
  "compilerOptions": {
    "types": [ "node", "jest" ],
  },
  "include": [ "**/*.ts", "**/*.js" ]
}

tsconfig.build.json

{
  "extends": "@knicola/dev-config/tsconfig.base",
  "compilerOptions": {
    "removeComments": true,
    "noUnusedLocals": true,
    "outDir": "lib/",
  },
  "include": [ "src/**/*.ts" ]
}

package.json

{
  // ...
  "scripts": {
    "lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
    "build": "tsc -p ./tsconfig.build.json",
  }
}

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.