diff --git a/package.json b/package.json index 87ee57d..cdd2c17 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "webextension-polyfill-ts": "^0.14.0" }, "devDependencies": { + "@abhijithvijayan/tsconfig": "^1.1.2", "@babel/core": "^7.9.0", "@babel/plugin-proposal-class-properties": "^7.8.3", "@babel/plugin-proposal-object-rest-spread": "^7.9.0", @@ -78,4 +79,4 @@ "wext-manifest-webpack-plugin": "^1.0.3", "zip-webpack-plugin": "^3.0.0" } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 88a246c..008dead 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,48 +1,24 @@ { - "compilerOptions": { + "extends": "@abhijithvijayan/tsconfig", + "compilerOptions": { "outDir": "dist", - /* for manifest/index.js */ - "allowJs": true, - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ - "module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "target": "es5", // ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. + "module": "esnext", // Module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. "jsx": "react", "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "removeComments": true, /* Do not emit comments to output. */ - "noEmit": true, /* Do not emit outputs. */ - "noEmitOnError": true, - - "esModuleInterop": true, - "isolatedModules": true, - - /* Strict Type-Checking Options */ - "strict": true, - "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - + "dom", + "dom.iterable", + "esnext" + ], + "noEmit": true, // Do not emit outputs. + "esModuleInterop": true, + "isolatedModules": true, /* Additional Checks */ "allowSyntheticDefaultImports": true, - "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/**/*" - ], - "exclude": [ - "node_modules" + }, + "include": [ + "src" ] -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 1122643..942e756 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@abhijithvijayan/tsconfig@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@abhijithvijayan/tsconfig/-/tsconfig-1.1.2.tgz#37e3da206bcfb3bf782bbc2ba992f635c30b36ee" + integrity sha512-Dk1QXwuV2HKMIiaRQp0Gv+nZRKoNGw4YVLk4ap3HVIFd0lw8+Qrvl043XKWETk0XSgt+z9O5+pYdJVvuay2W5Q== + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e"