hexabot/widget/.eslintrc.json

71 lines
2.0 KiB
JSON
Raw Normal View History

2024-09-10 09:50:11 +00:00
{
2024-12-03 14:18:21 +00:00
"root": true,
2024-12-03 15:21:13 +00:00
"plugins": ["@typescript-eslint", "import", "license-header", "react"],
2024-09-10 09:50:11 +00:00
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
2024-12-03 14:18:21 +00:00
"plugin:react/recommended",
2024-09-10 09:50:11 +00:00
"plugin:react-hooks/recommended"
],
"rules": {
2024-12-05 09:57:13 +00:00
"react/jsx-no-target-blank": ["off"],
2024-12-03 14:18:21 +00:00
"react/react-in-jsx-scope": "off",
2024-09-10 09:50:11 +00:00
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"import/newline-after-import": "error",
"import/order": [
"error",
{
"groups": [
2024-12-03 14:18:21 +00:00
"builtin",
"external",
"unknown",
"index",
"internal",
"parent",
2024-10-18 10:42:32 +00:00
"sibling"
2024-09-10 09:50:11 +00:00
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"newline-after-var": "error",
"newline-before-return": "error",
"no-console": "error",
"no-duplicate-imports": "error",
"object-shorthand": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "never", "prev": ["const"], "next": "const" }
],
2024-12-03 14:18:21 +00:00
"react/jsx-curly-brace-presence": ["warn"],
"react/self-closing-comp": ["error"],
"license-header/header": [
"error",
[
"/*",
" * Copyright © 2024 Hexastack. All rights reserved.",
" *",
" * Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:",
" * 1. The name \"Hexabot\" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.",
" * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's \"About\" section, documentation, and README file).",
" */"
]
]
2024-09-10 09:50:11 +00:00
},
"settings": {
"react": {
"version": "detect"
}
}
}