mirror of
https://github.com/getredash/redash.git
synced 2026-03-23 04:00:09 -04:00
* TASK Add typescript dependencies to package.json * TASK Add typescript to build process and npm scripts and TASK Move example components to typescript and add an example definition file. * TASK Move back to ts-loader instead of babel typescript preset * FIX Remove unnecessary changes * FIX Explicitly mention tsconfig file in webpack.config.js to avoid `error while parsing tsconfig.json, The 'files' list in config file 'tsconfig.json' is empty` See (https://github.com/TypeStrong/ts-loader/issues/405#issuecomment-330108362) * FIX Move tsconfig to client subdirectory to make it accessible in docker container (only webpack.config.js is copied over from root folder in Dockerfile) * TASK Move from ts-loader to babel to reduce compatibility issues between ES6/7 and typescript compilation. * TASK Add types for classnames, hoist-non-react-statics and lodash. Fix default export of DashboardList and run prettier on eslintrc * Run npm install * Trigger tests * Run npm install 2 * Trigger tests
36 lines
836 B
JSON
36 lines
836 B
JSON
{
|
|
"compilerOptions": {
|
|
// Target latest version of ECMAScript.
|
|
"target": "esnext",
|
|
// Search under node_modules for non-relative imports.
|
|
"moduleResolution": "node",
|
|
// Process & infer types from .js files.
|
|
"allowJs": true,
|
|
// Don't emit; allow Babel to transform files.
|
|
"noEmit": true,
|
|
// Enable strictest settings like strictNullChecks & noImplicitAny.
|
|
"strict": true,
|
|
// Import non-ES modules as default imports.
|
|
"esModuleInterop": true,
|
|
"jsx": "react",
|
|
"allowSyntheticDefaultImports": true,
|
|
"noUnusedLocals": true,
|
|
"lib": [
|
|
"dom",
|
|
"dom.iterable",
|
|
"esnext"
|
|
],
|
|
"forceConsistentCasingInFileNames": true,
|
|
"baseUrl": "./",
|
|
"paths": {
|
|
"@/*": ["./app/*"]
|
|
}
|
|
},
|
|
"include": [
|
|
"app/**/*"
|
|
],
|
|
"exclude": [
|
|
"dist"
|
|
]
|
|
}
|