mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Linting config
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,8 +1,41 @@
|
|||||||
{
|
{
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"project": "./tsconfig.json"
|
||||||
|
},
|
||||||
|
"plugins": ["@typescript-eslint"],
|
||||||
"extends": [
|
"extends": [
|
||||||
"react-app"
|
"airbnb-typescript",
|
||||||
|
"prettier",
|
||||||
|
"prettier/react",
|
||||||
|
"prettier/@typescript-eslint"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"jsx-a11y/anchor-is-valid": "off"
|
"@typescript-eslint/explicit-function-return-type": "off",
|
||||||
|
"lines-between-class-members": "off",
|
||||||
|
"@typescript-eslint/interface-name-prefix": [
|
||||||
|
"warn",
|
||||||
|
{ "prefixWithI": "always" }
|
||||||
|
],
|
||||||
|
"import/named": "off",
|
||||||
|
"import/namespace": "off",
|
||||||
|
"import/default": "off",
|
||||||
|
"import/no-named-as-default-member": "off",
|
||||||
|
"import/no-named-as-default": "off",
|
||||||
|
"import/no-cycle": "off",
|
||||||
|
"import/no-unused-modules": "off",
|
||||||
|
"import/no-deprecated": "off",
|
||||||
|
"import/no-unresolved": "off",
|
||||||
|
"import/prefer-default-export": "off",
|
||||||
|
"import/no-extraneous-dependencies": "off",
|
||||||
|
"indent": "off",
|
||||||
|
"@typescript-eslint/indent": "off",
|
||||||
|
"react/prop-types": "off",
|
||||||
|
"react/destructuring-assignment": "off",
|
||||||
|
"react/jsx-props-no-spreading": "off",
|
||||||
|
"spaced-comment": ["error", "always", {
|
||||||
|
"markers": ["/"]
|
||||||
|
}],
|
||||||
|
"max-classes-per-file": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
ui/v2.5/.gitignore
vendored
2
ui/v2.5/.gitignore
vendored
@@ -21,3 +21,5 @@
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
.eslintcache
|
||||||
|
|||||||
@@ -43,9 +43,6 @@
|
|||||||
"lint:fix": "eslint --fix src/**/*.{ts,tsx}",
|
"lint:fix": "eslint --fix src/**/*.{ts,tsx}",
|
||||||
"gqlgen": "gql-gen --config codegen.yml"
|
"gqlgen": "gql-gen --config codegen.yml"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
|
||||||
"extends": "react-app"
|
|
||||||
},
|
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
">0.2%",
|
">0.2%",
|
||||||
"not dead",
|
"not dead",
|
||||||
@@ -65,13 +62,20 @@
|
|||||||
"@types/react-router-dom": "5.1.3",
|
"@types/react-router-dom": "5.1.3",
|
||||||
"@types/react-select": "^3.0.8",
|
"@types/react-select": "^3.0.8",
|
||||||
"@types/video.js": "^7.2.11",
|
"@types/video.js": "^7.2.11",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^2.16.0",
|
||||||
|
"@typescript-eslint/parser": "^2.16.0",
|
||||||
"eslint": "^6.7.2",
|
"eslint": "^6.7.2",
|
||||||
|
"eslint-config-airbnb-typescript": "^6.3.1",
|
||||||
|
"eslint-config-prettier": "^6.9.0",
|
||||||
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
||||||
|
"eslint-plugin-prettier": "^3.1.2",
|
||||||
"graphql-code-generator": "0.18.2",
|
"graphql-code-generator": "0.18.2",
|
||||||
"graphql-codegen-add": "0.18.2",
|
"graphql-codegen-add": "0.18.2",
|
||||||
"graphql-codegen-time": "0.18.2",
|
"graphql-codegen-time": "0.18.2",
|
||||||
"graphql-codegen-typescript-client": "0.18.2",
|
"graphql-codegen-typescript-client": "0.18.2",
|
||||||
"graphql-codegen-typescript-common": "0.18.2",
|
"graphql-codegen-typescript-common": "0.18.2",
|
||||||
"graphql-codegen-typescript-react-apollo": "0.18.2",
|
"graphql-codegen-typescript-react-apollo": "0.18.2",
|
||||||
|
"prettier": "^1.19.1",
|
||||||
"typescript": "~3.7.4"
|
"typescript": "~3.7.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ interface ISceneDetailProps {
|
|||||||
scene: GQL.SceneDataFragment;
|
scene: GQL.SceneDataFragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SceneDetailPanel: React.FC<ISceneDetailProps> = (props: ISceneDetailProps) => {
|
export default SceneDetailPanel: React.FC<ISceneDetailProps> = (props: ISceneDetailProps) => {
|
||||||
function renderDetails() {
|
function renderDetails() {
|
||||||
if (!props.scene.details || props.scene.details === "") { return; }
|
if (!props.scene.details || props.scene.details === "") { return; }
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -18,10 +18,11 @@ export const SceneFileInfoPanel: React.FC<ISceneFileInfoPanelProps> = (props: IS
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderPath() {
|
function renderPath() {
|
||||||
|
const { scene: { path } } = props;
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td>Path</td>
|
<td>Path</td>
|
||||||
<td><a href={"file://"+props.scene.path}>{"file://"+props.scene.path}</a> </td>
|
<td><a href={`file://${path}`}>{"file://"+props.scene.path}</a> </td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1655,6 +1655,17 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.0.tgz#8b63ab7f1aa5321248aad5ac890a485656dcea4d"
|
resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.0.tgz#8b63ab7f1aa5321248aad5ac890a485656dcea4d"
|
||||||
integrity sha512-te5lMAWii1uEJ4FwLjzdlbw3+n0FZNOvFXHxQDKeT0dilh7HOzdMzV2TrJVUzq8ep7J4Na8OUYPRLSQkJHAlrg==
|
integrity sha512-te5lMAWii1uEJ4FwLjzdlbw3+n0FZNOvFXHxQDKeT0dilh7HOzdMzV2TrJVUzq8ep7J4Na8OUYPRLSQkJHAlrg==
|
||||||
|
|
||||||
|
"@typescript-eslint/eslint-plugin@^2.16.0":
|
||||||
|
version "2.16.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.16.0.tgz#bf339b7db824c7cc3fd1ebedbc88dd17016471af"
|
||||||
|
integrity sha512-TKWbeFAKRPrvKiR9GNxErQ8sELKqg1ZvXi6uho07mcKShBnCnqNpDQWP01FEvWKf0bxM2g7uQEI5MNjSNqvUpQ==
|
||||||
|
dependencies:
|
||||||
|
"@typescript-eslint/experimental-utils" "2.16.0"
|
||||||
|
eslint-utils "^1.4.3"
|
||||||
|
functional-red-black-tree "^1.0.1"
|
||||||
|
regexpp "^3.0.0"
|
||||||
|
tsutils "^3.17.1"
|
||||||
|
|
||||||
"@typescript-eslint/eslint-plugin@^2.8.0":
|
"@typescript-eslint/eslint-plugin@^2.8.0":
|
||||||
version "2.14.0"
|
version "2.14.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.14.0.tgz#c74447400537d4eb7aae1e31879ab43e6c662a8a"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.14.0.tgz#c74447400537d4eb7aae1e31879ab43e6c662a8a"
|
||||||
@@ -1675,6 +1686,25 @@
|
|||||||
"@typescript-eslint/typescript-estree" "2.14.0"
|
"@typescript-eslint/typescript-estree" "2.14.0"
|
||||||
eslint-scope "^5.0.0"
|
eslint-scope "^5.0.0"
|
||||||
|
|
||||||
|
"@typescript-eslint/experimental-utils@2.16.0":
|
||||||
|
version "2.16.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.16.0.tgz#bba65685728c532e0ddc811a0376e8d38e671f77"
|
||||||
|
integrity sha512-bXTmAztXpqxliDKZgvWkl+5dHeRN+jqXVZ16peKKFzSXVzT6mz8kgBpHiVzEKO2NZ8OCU7dG61K9sRS/SkUUFQ==
|
||||||
|
dependencies:
|
||||||
|
"@types/json-schema" "^7.0.3"
|
||||||
|
"@typescript-eslint/typescript-estree" "2.16.0"
|
||||||
|
eslint-scope "^5.0.0"
|
||||||
|
|
||||||
|
"@typescript-eslint/parser@^2.16.0", "@typescript-eslint/parser@^2.3.0":
|
||||||
|
version "2.16.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.16.0.tgz#d0c0135a8fdb915f670802ddd7c1ba457c1b4f9d"
|
||||||
|
integrity sha512-+w8dMaYETM9v6il1yYYkApMSiwgnqXWJbXrA94LAWN603vXHACsZTirJduyeBOJjA9wT6xuXe5zZ1iCUzoxCfw==
|
||||||
|
dependencies:
|
||||||
|
"@types/eslint-visitor-keys" "^1.0.0"
|
||||||
|
"@typescript-eslint/experimental-utils" "2.16.0"
|
||||||
|
"@typescript-eslint/typescript-estree" "2.16.0"
|
||||||
|
eslint-visitor-keys "^1.1.0"
|
||||||
|
|
||||||
"@typescript-eslint/parser@^2.8.0":
|
"@typescript-eslint/parser@^2.8.0":
|
||||||
version "2.14.0"
|
version "2.14.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.14.0.tgz#30fa0523d86d74172a5e32274558404ba4262cd6"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.14.0.tgz#30fa0523d86d74172a5e32274558404ba4262cd6"
|
||||||
@@ -1698,6 +1728,19 @@
|
|||||||
semver "^6.3.0"
|
semver "^6.3.0"
|
||||||
tsutils "^3.17.1"
|
tsutils "^3.17.1"
|
||||||
|
|
||||||
|
"@typescript-eslint/typescript-estree@2.16.0":
|
||||||
|
version "2.16.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.16.0.tgz#b444943a76c716ed32abd08cbe96172d2ca0ab75"
|
||||||
|
integrity sha512-hyrCYjFHISos68Bk5KjUAXw0pP/455qq9nxqB1KkT67Pxjcfw+r6Yhcmqnp8etFL45UexCHUMrADHH7dI/m2WQ==
|
||||||
|
dependencies:
|
||||||
|
debug "^4.1.1"
|
||||||
|
eslint-visitor-keys "^1.1.0"
|
||||||
|
glob "^7.1.6"
|
||||||
|
is-glob "^4.0.1"
|
||||||
|
lodash "^4.17.15"
|
||||||
|
semver "^6.3.0"
|
||||||
|
tsutils "^3.17.1"
|
||||||
|
|
||||||
"@videojs/http-streaming@1.10.6":
|
"@videojs/http-streaming@1.10.6":
|
||||||
version "1.10.6"
|
version "1.10.6"
|
||||||
resolved "https://registry.yarnpkg.com/@videojs/http-streaming/-/http-streaming-1.10.6.tgz#a9119b1828b354c5cc17b42ea051cc7bcce2dca0"
|
resolved "https://registry.yarnpkg.com/@videojs/http-streaming/-/http-streaming-1.10.6.tgz#a9119b1828b354c5cc17b42ea051cc7bcce2dca0"
|
||||||
@@ -3421,7 +3464,7 @@ concat-stream@^1.5.0:
|
|||||||
readable-stream "^2.2.2"
|
readable-stream "^2.2.2"
|
||||||
typedarray "^0.0.6"
|
typedarray "^0.0.6"
|
||||||
|
|
||||||
confusing-browser-globals@^1.0.9:
|
confusing-browser-globals@^1.0.7, confusing-browser-globals@^1.0.9:
|
||||||
version "1.0.9"
|
version "1.0.9"
|
||||||
resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.9.tgz#72bc13b483c0276801681871d4898516f8f54fdd"
|
resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.9.tgz#72bc13b483c0276801681871d4898516f8f54fdd"
|
||||||
integrity sha512-KbS1Y0jMtyPgIxjO7ZzMAuUpAKMt1SzCL9fsrKsX6b0zJPTaT0SiSPmewwVZg9UAO83HVIlEhZF84LIjZ0lmAw==
|
integrity sha512-KbS1Y0jMtyPgIxjO7ZzMAuUpAKMt1SzCL9fsrKsX6b0zJPTaT0SiSPmewwVZg9UAO83HVIlEhZF84LIjZ0lmAw==
|
||||||
@@ -4463,6 +4506,33 @@ escodegen@^1.11.0, escodegen@^1.9.1:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
source-map "~0.6.1"
|
source-map "~0.6.1"
|
||||||
|
|
||||||
|
eslint-config-airbnb-base@^14.0.0:
|
||||||
|
version "14.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.0.0.tgz#8a7bcb9643d13c55df4dd7444f138bf4efa61e17"
|
||||||
|
integrity sha512-2IDHobw97upExLmsebhtfoD3NAKhV4H0CJWP3Uprd/uk+cHuWYOczPVxQ8PxLFUAw7o3Th1RAU8u1DoUpr+cMA==
|
||||||
|
dependencies:
|
||||||
|
confusing-browser-globals "^1.0.7"
|
||||||
|
object.assign "^4.1.0"
|
||||||
|
object.entries "^1.1.0"
|
||||||
|
|
||||||
|
eslint-config-airbnb-typescript@^6.3.1:
|
||||||
|
version "6.3.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-6.3.1.tgz#28bd09099355324353a074a71951dd879cce7df0"
|
||||||
|
integrity sha512-+tkkVysaN63zXz+oiPfkfYSRMIY5QfHI4qFeyb1ZhRGF2jR6JslqDv5GkrW/eciySNTVTigFvf9hkqHT9vklJw==
|
||||||
|
dependencies:
|
||||||
|
"@typescript-eslint/parser" "^2.3.0"
|
||||||
|
eslint-config-airbnb "^18.0.1"
|
||||||
|
eslint-config-airbnb-base "^14.0.0"
|
||||||
|
|
||||||
|
eslint-config-airbnb@^18.0.1:
|
||||||
|
version "18.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-18.0.1.tgz#a3a74cc29b46413b6096965025381df8fb908559"
|
||||||
|
integrity sha512-hLb/ccvW4grVhvd6CT83bECacc+s4Z3/AEyWQdIT2KeTsG9dR7nx1gs7Iw4tDmGKozCNHFn4yZmRm3Tgy+XxyQ==
|
||||||
|
dependencies:
|
||||||
|
eslint-config-airbnb-base "^14.0.0"
|
||||||
|
object.assign "^4.1.0"
|
||||||
|
object.entries "^1.1.0"
|
||||||
|
|
||||||
eslint-config-prettier@^6.9.0:
|
eslint-config-prettier@^6.9.0:
|
||||||
version "6.9.0"
|
version "6.9.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.9.0.tgz#430d24822e82f7deb1e22a435bfa3999fae4ad64"
|
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.9.0.tgz#430d24822e82f7deb1e22a435bfa3999fae4ad64"
|
||||||
@@ -4528,7 +4598,7 @@ eslint-plugin-import@2.18.2:
|
|||||||
read-pkg-up "^2.0.0"
|
read-pkg-up "^2.0.0"
|
||||||
resolve "^1.11.0"
|
resolve "^1.11.0"
|
||||||
|
|
||||||
eslint-plugin-jsx-a11y@6.2.3:
|
eslint-plugin-jsx-a11y@6.2.3, eslint-plugin-jsx-a11y@^6.2.3:
|
||||||
version "6.2.3"
|
version "6.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.2.3.tgz#b872a09d5de51af70a97db1eea7dc933043708aa"
|
resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.2.3.tgz#b872a09d5de51af70a97db1eea7dc933043708aa"
|
||||||
integrity sha512-CawzfGt9w83tyuVekn0GDPU9ytYtxyxyFZ3aSWROmnRRFQFT2BiPJd7jvRdzNDi6oLWaS2asMeYSNMjWTV4eNg==
|
integrity sha512-CawzfGt9w83tyuVekn0GDPU9ytYtxyxyFZ3aSWROmnRRFQFT2BiPJd7jvRdzNDi6oLWaS2asMeYSNMjWTV4eNg==
|
||||||
@@ -9676,6 +9746,11 @@ prettier@1.16.4:
|
|||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717"
|
||||||
integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==
|
integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g==
|
||||||
|
|
||||||
|
prettier@^1.19.1:
|
||||||
|
version "1.19.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
|
||||||
|
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
|
||||||
|
|
||||||
pretty-bytes@^5.1.0:
|
pretty-bytes@^5.1.0:
|
||||||
version "5.3.0"
|
version "5.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.3.0.tgz#f2849e27db79fb4d6cfe24764fc4134f165989f2"
|
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.3.0.tgz#f2849e27db79fb4d6cfe24764fc4134f165989f2"
|
||||||
|
|||||||
Reference in New Issue
Block a user