From f64ee4ca960162feeb8f93b27a992a761e649472 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Mon, 27 Jan 2020 19:38:03 +0530 Subject: [PATCH] chore: add typescript basic configuration --- tsconfig.json | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..744a2f6 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,41 @@ +{ + "compilerOptions": { + /* Basic Options */ + "outDir": "dist", + /* for manifest/index.js */ + "allowJs": true, + "target": "ES2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "module": "es6", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "jsx": "react", + "lib": ["dom", "es6"], /* Specify library files to be included in the compilation. */ + "removeComments": true, /* Do not emit comments to output. */ + "noEmit": true, /* Do not emit outputs. */ + "noEmitOnError": true, + + /* Strict Type-Checking Options */ + "strict": true, + "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + + /* Additional Checks */ + "noUnusedParameters": true, /* Report errors on unused parameters. */ + "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + "useDefineForClassFields": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + + /* Module Resolution Options */ + "moduleResolution": "node", + "resolveJsonModule": true, + "declaration": true, + "pretty": true, + "newLine": "lf", + "stripInternal": true, + "noUnusedLocals": true, + }, + "include": [ + "src/**/*.ts", "src/manifest/index.js" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file