Commit graph

2 commits

Author SHA1 Message Date
Thomas Lavocat
a91ca3f9d0 eslint: configure eslint for react app
Add additional linting information and help on react components and
hooks. See https://www.npmjs.com/package/eslint-config-react-app
https://react.dev/learn/editor-setup#linting

Also, cleans duplicated between eslintrc and eslintrc-typescript.
2023-08-17 17:18:55 +02:00
lucasgarfield
13b02eca7e eslint: Add support for Typescript
This commit adds eslint support for .ts and .tsx files.

The recommended Typescript rules are applied only to .ts and .tsx files
and not to existing .js or .jsx files. This is accomplished by creating
a separate .eslintrc-typescript.yml file and pointing to it in the
.eslintrc.yml overrides parameter.

A .eslintignore file was added. This file has syntax similiar to
.gitignore and is used to ignore the programatically generated API
slices so that we do not have to deal with a massive diff whenever we
update one of them.
2023-08-02 13:46:08 +02:00