Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEVVIT_ALLOW_SOURCE_UPLOAD=1
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ You can also choose to lock comments and posts removed from the queue, and in th

## Change History

### v1.2.1

* More robust checking of users - temporary errors will no longer cause active users to be removed from the queue.

### v1.2.0

* Add ability to remove modqueued items from recently banned users
Expand Down
11 changes: 11 additions & 0 deletions devvit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://developers.reddit.com/schema/config-file.v1.json",
"name": "queue-pruner",
"blocks": {
"entry": "src/main.ts",
"triggers": [
"onAppInstall",
"onAppUpgrade"
]
}
}
1 change: 0 additions & 1 deletion devvit.yaml

This file was deleted.

89 changes: 2 additions & 87 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,88 +1,3 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import stylistic from '@stylistic/eslint-plugin'
import vitest from "@vitest/eslint-plugin"
import fsvconfig from "@fsvreddit/eslint-config";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
stylistic.configs.customize({
indent: 4,
quotes: "double",
semi: true,
quoteProps: "consistent-as-needed",
braceStyle: "1tbs",
}),
{
files: ["**/*.test.ts"],
plugins: {
vitest
},
rules: {
...vitest.configs.recommended.rules,
'vitest/valid-title': 'warn',
'vitest/no-commented-out-tests': 'warn'
}
},
{
files: ["**/*.ts", "**/*.tsx"],

languageOptions: {
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: import.meta.dirname,
},
},

rules: {
// Extra rules
"eqeqeq": ["error", "always", {
null: "ignore",
}],
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"no-useless-assignment": "error",
"no-nested-ternary": "error",
"no-return-assign": "error",
"no-sequences": "error",
"no-var": "error",
"arrow-body-style": ["error", "as-needed"],
"func-style": ["error", "declaration", {
allowArrowFunctions: true,
}],
"curly": ["error", "all"],
"object-shorthand": ["error", "always"],
"operator-assignment": ["error", "always"],
"camelcase": ["error", {
properties: "always",
}],

// Rules I don't want
"@typescript-eslint/restrict-template-expressions": "off",

// Extra code styling rules
"@stylistic/array-bracket-newline": ["error", "consistent"],
"@stylistic/array-element-newline": ["error", "consistent"],
"@/func-call-spacing": ["error", "never"],
"@stylistic/function-paren-newline": ["error", "multiline"],
"@stylistic/implicit-arrow-linebreak": ["error", "beside"],

"@stylistic/object-curly-newline": ["error", {
multiline: true,
consistent: true,
}],

"@stylistic/object-property-newline": ["error", {
allowAllPropertiesOnSameLine: true,
}],

"@stylistic/operator-linebreak": ["off"],
"@stylistic/semi-style": ["error", "last"],
"@stylistic/space-before-function-paren": ["error", "always"],
},
},
{
ignores: ["**/node_modules", "**/dist", "eslint.config.mjs", "**/difflib"],
},
);
export default fsvconfig;
Loading
Loading