Skip to content

Commit

Permalink
Add support for TypeScript + TSX (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
pferreir authored Aug 9, 2024
1 parent f913f23 commit a61334a
Show file tree
Hide file tree
Showing 5 changed files with 1,372 additions and 327 deletions.
7 changes: 2 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true

[{*.js,*.jsx}]
[{*.js,*.jsx,*.ts,*.tsx}]
indent_size=2

[{*.css,*.scss}]
indent_size=2

[{*.yml,*.yaml}]
indent_size=2

[package.json]
[{*.yml,*.yaml,*.json}]
indent_size=2

[Makefile]
Expand Down
13 changes: 7 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/* eslint-disable import/no-commonjs, import/unambiguous */
/* global module:false, __dirname:false */

const path = require('path');
const fs = require('fs');
const {execSync} = require('child_process');
const fs = require('fs');
const path = require('path');

const yaml = require('js-yaml');
const _ = require('lodash');
const resolve = require('resolve');
const yaml = require('js-yaml');

// Returns the path to the Indico source package/repo
const PATH_COMMAND = `python -c 'from flask.helpers import get_root_path; print(get_root_path("indico"))'`;
Expand Down Expand Up @@ -63,7 +64,7 @@ module.exports = _.merge(defaultConfig, {
},
parserOptions: {
babelOptions: {
configFile: babelConfigFile
}
}
configFile: babelConfigFile,
},
},
});
Loading

0 comments on commit a61334a

Please sign in to comment.