Skip to content

Commit

Permalink
ci(frontend): Update ESLint configuration and add new dependencies
Browse files Browse the repository at this point in the history
This commit includes updates to several package dependencies in the
package.json file, specifically related to TypeScript ESLint,
Prettier, and React plugins. Additionally, ESLint configuration in
.eslintrc.json file was extended with new best practices, rules,
parser options and environments.

Refs: #1
  • Loading branch information
maikbasel committed Dec 21, 2023
1 parent 3f9baa6 commit d74372a
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 27 deletions.
35 changes: 33 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
{
"extends": ["next/core-web-vitals", "prettier"],
"extends": [
"next/core-web-vitals",
// best practices and additional rules for ESLint
"eslint:recommended",

// rules which require type-checking
"plugin:@typescript-eslint/recommended",

// Especially rules for React usage
"plugin:react/recommended",

// Especially rules for React Hooks
"plugin:react-hooks/recommended",

// adding some extra rules and compatibility with Prettier
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"node": true,
"es2021": true,
"jest/globals": true
},
"plugins": ["jest"]
"plugins": ["jest"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": ".",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
// include additional rules you want to manually set
}
}
Loading

0 comments on commit d74372a

Please sign in to comment.