mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
purge eslint/prettier remnants
This commit is contained in:
parent
a70cf30eb2
commit
5ae03b10eb
6 changed files with 7 additions and 89 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -63,7 +63,4 @@ node_modules
|
|||
/phasher
|
||||
dist
|
||||
.DS_Store
|
||||
/.local*
|
||||
|
||||
.eslintcache
|
||||
.stylelintcache
|
||||
/.local*
|
||||
|
|
@ -1,2 +1 @@
|
|||
BROWSER=none
|
||||
ESLINT_NO_DEV_ERRORS=true
|
||||
|
|
|
|||
|
|
@ -1,79 +0,0 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"plugins": ["@typescript-eslint", "jsx-a11y"],
|
||||
"extends": [
|
||||
"airbnb-typescript",
|
||||
"plugin:import/recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:react/jsx-runtime",
|
||||
"airbnb/hooks",
|
||||
"prettier"
|
||||
],
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "detect"
|
||||
}
|
||||
},
|
||||
"ignorePatterns": [
|
||||
"node_modules/",
|
||||
"src/core/generated-graphql.ts",
|
||||
"src/pluginApi.d.ts"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/lines-between-class-members": "off",
|
||||
"@typescript-eslint/naming-convention": [
|
||||
"error",
|
||||
{
|
||||
"selector": "interface",
|
||||
"format": ["PascalCase"],
|
||||
"custom": {
|
||||
"regex": "^I[A-Z]",
|
||||
"match": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-explicit-any": 2,
|
||||
"@typescript-eslint/no-use-before-define": [
|
||||
"error",
|
||||
{ "functions": false, "classes": false }
|
||||
],
|
||||
"import/extensions": [
|
||||
"error",
|
||||
"ignorePackages",
|
||||
{
|
||||
"js": "never",
|
||||
"jsx": "never",
|
||||
"ts": "never",
|
||||
"tsx": "never"
|
||||
}
|
||||
],
|
||||
"import/named": "off",
|
||||
"import/namespace": "off",
|
||||
"import/no-unresolved": "off",
|
||||
"lines-between-class-members": "off",
|
||||
"no-nested-ternary": "off",
|
||||
"prefer-destructuring": [
|
||||
"error",
|
||||
{
|
||||
"VariableDeclarator": {
|
||||
"array": false,
|
||||
"object": true
|
||||
},
|
||||
"AssignmentExpression": {
|
||||
"array": false,
|
||||
"object": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"react/display-name": "off",
|
||||
"react/prop-types": "off",
|
||||
"react/style-prop-object": ["error", { "allow": ["FormattedNumber"] }],
|
||||
"spaced-comment": ["error", "always", { "markers": ["/"] }]
|
||||
}
|
||||
}
|
||||
5
ui/v2.5/.gitignore
vendored
5
ui/v2.5/.gitignore
vendored
|
|
@ -16,4 +16,7 @@ src/core/generated-graphql.ts
|
|||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.production.local
|
||||
|
||||
.eslintcache
|
||||
.stylelintcache
|
||||
|
|
@ -29,7 +29,7 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d
|
|||
|
||||
### `npm run format`
|
||||
|
||||
Formats the whitespace of all typescript and scss code with prettier, to ease editing and ensure a common code style.
|
||||
Formats the whitespace of all typescript and scss code with biome, to ease editing and ensure a common code style.
|
||||
|
||||
Should ideally be run before all frontend PRs.
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ Should ideally be run before all frontend PRs.
|
|||
|
||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
||||
|
||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@
|
|||
"lint:css": "stylelint --cache \"src/**/*.scss\"",
|
||||
"lint:js": "biome check src/",
|
||||
"check": "tsc --noEmit",
|
||||
"eslint": "eslint",
|
||||
"prettier": "prettier",
|
||||
"stylelint": "stylelint",
|
||||
"format": "biome format --write . ../../graphql",
|
||||
"format-check": "biome format --check . ../../graphql",
|
||||
|
|
|
|||
Loading…
Reference in a new issue