Skip to content

Commit

Permalink
docs: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kark committed Jun 21, 2022
1 parent 98135ac commit 07b0be7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions website/src/content/development/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ To compile TypeScript files to JavaScript files [Babel](https://babeljs.io/) (si

Custom Applications are preconfigured to use Babel compilation to TypeScript.

To make sure that Babel configuration is set properly check if `babel.config.js` contains `@commercetools-frontend/babel-preset-mc-app` as a preset, and that the package is listed as the application dependency in `package.json`.

`tsc` CLI is only used as a type checking tool, for example, run as `yarn typecheck` script:

```json title="package.json"
Expand Down Expand Up @@ -126,9 +124,9 @@ To run prettier as a script add the following contents to your `package.json`:

Custom Applications are preconfigured to lint TypeScript files with ESLint.

To make sure that ESLint configuration is set properly check if `.eslintrc.js` extends `@commercetools-frontend/eslint-config-mc-app`, and that the package is listed as an application dependency in `package.json`.
To make sure that ESLint configuration is set properly check if `.eslintrc.js` extends `@commercetools-frontend/eslint-config-mc-app`, and that the package is listed as the application dependency in `package.json`.

To run ESLint as a script edit the contents of the `jest.eslint.config.js` configuration file in the root folder of the application:
To run ESLint as a script, edit the contents of the `jest.eslint.config.js` configuration file in the root folder of the application:

```js title="jest.eslint.config.js"
module.exports = {
Expand Down

0 comments on commit 07b0be7

Please sign in to comment.