Skip to content

Commit

Permalink
Add: Eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng authored and bjoernricks committed Jun 10, 2024
1 parent 3c1d85e commit 827340e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'plugin:react-hooks/recommended',
'plugin:vitest-globals/recommended',
],
plugins: ['react', 'react-hooks'],
plugins: ['react', 'react-hooks', 'header'],
settings: {
react: {
version: 'detect',
Expand Down Expand Up @@ -41,5 +41,16 @@ module.exports = {
],
'no-class-assign': 'off',
'no-prototype-builtins': 'off',
'header/header': [
2,
'block',
[
' SPDX-FileCopyrightText: 2024 Greenbone AG',
' *',
' * SPDX-License-Identifier: AGPL-3.0-or-later',
' ',
],
2,
],
},
};
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"babel-plugin-i18next-extract": "^0.10.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
Expand Down

0 comments on commit 827340e

Please sign in to comment.