@ken0x0a/tsconfig

Set of configurations for typescript.

Usage no npm install needed!

<script type="module">
  import ken0x0aTsconfig from 'https://cdn.skypack.dev/@ken0x0a/tsconfig';
</script>

README

Example

{
  "extends": "@ken0x0a/tsconfig",
  // "extends": "@ken0x0a/tsconfig/base", // base configuration
  // "extends": "@ken0x0a/tsconfig/bob", // use with "bob"
  // "extends": "@ken0x0a/tsconfig/commonjs", // to compile to "commonjs"
  // "extends": "@ken0x0a/tsconfig/js", // use for eslint "overrides.parserOptions.project": "@ken0x0a/tsconfig/js"
  // "extends": "@ken0x0a/tsconfig/node", // to run by "node"
  // "extends": "@ken0x0a/tsconfig/react-native",
  "compilerOptions": {
    // override some configurations
    "target": "esnext",
    "module": "esnext",
    "lib": [ "es2015", "es2018", "esnext" ],
    "jsx": "react-native",
    "noEmit": true,
  },
  "include": ["**/*.ts"],
  "exclude": ["__test__/**"]
}
// .eslintrc.js
module.exports = {
  // ...
  overrides: {
    parserOptions: {
      project:: '@ken0x0a/tsconfig/js',
    }
  }
}