Skip to content

Commit

Permalink
Merge pull request #6 from Inist-CNRS/refactor/front-eslint
Browse files Browse the repository at this point in the history
Correctly setup eslint and apply it
  • Loading branch information
parmentf authored Feb 14, 2024
2 parents ac6f0f5 + 839d32b commit 12ebd15
Show file tree
Hide file tree
Showing 17 changed files with 1,062 additions and 467 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ tab_width = 4
[*.yml]
indent_size = 2
tab_width = 2

[*.md]
indent_size = 2
tab_width = 2

14 changes: 13 additions & 1 deletion tdm-fe/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"extends": "next/core-web-vitals"
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"env": {
"node": false,
"browser": true
},
"extends": [
"@draconides/eslint-config-ts",
"@draconides/eslint-config-react",
"next/core-web-vitals"
]
}
2 changes: 1 addition & 1 deletion tdm-fe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ In the project directory, you can run the following scripts:

- `npm run dev`: Runs the app in development mode.
- `npm run generate-api`: To generate front end api calls from `..\tdm-be\swagger.json` file.
- `npm run build`: Builds the app for production to the `.next` folder.
- `npm run build`: Builds the app for production to the `.next` folder.
10 changes: 5 additions & 5 deletions tdm-fe/openapitools.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.1.0"
}
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.1.0"
}
}
Loading

0 comments on commit 12ebd15

Please sign in to comment.