mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* test: verify pre-commit hook * fix: clean up code formatting and improve readability across multiple components * chore: update subproject commit reference in frontend/ee * chore: update eslint to version 9.26.0 and remove unused dependencies from package.json fix: update submodule reference in server/ee * chore: refactor ESLint configuration and add quiet linting script; update components to disable specific ESLint rules * chore: add GitHub Copilot review instructions for App Builder team Covers backward compatibility rules, styling conventions, state management, resolution system, widget definitions, and common review flags. * chore: add review instructions for App Builder, Data Migrations, Server Widget Config, Widget Components, and Widget Config * Enhance TypeScript support in frontend configuration - Added TypeScript parser and linting rules to ESLint configuration. - Updated Babel configuration to include TypeScript preset. - Modified package.json and package-lock.json to include TypeScript and related dependencies. - Introduced tsconfig.json for TypeScript compiler options. - Updated Webpack configuration to support .ts and .tsx file extensions. - Adjusted linting and formatting scripts to include TypeScript files. * chore: update TypeScript ESLint packages and subproject commits --------- Co-authored-by: kavinvenkatachalam <[email protected]> Co-authored-by: Johnson Cherian <[email protected]>
24 lines
639 B
JavaScript
24 lines
639 B
JavaScript
const plugins = [
|
|
[
|
|
'console-source',
|
|
{
|
|
segments: 1, // NOT REQUIRED
|
|
// 0 = full file path (Default)
|
|
// 1 = file name ONLY
|
|
// 2 = file name and last segment
|
|
splitSegment: '/', // How to split the path - NOT REQUIRED
|
|
// Default is / for Linux and OSX
|
|
// Windows users can use "\\" here if needed
|
|
},
|
|
],
|
|
['@babel/transform-runtime'],
|
|
];
|
|
|
|
if (process.env.NODE_ENV === 'developement') {
|
|
plugins.push(['istanbul', { include: ['src/**/*.js', 'src/**/*.jsx'] }]);
|
|
}
|
|
|
|
module.exports = {
|
|
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
|
|
plugins,
|
|
};
|