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
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Run Comment Mop using the three-dot menu or mod shield menu (depending on platfo

From version 9.2, you can configure the default options for the Mop form in your app settings, which you can find via the [Developer Platform app portal](https://developers.reddit.com/my/communities).

Mopping extremely large chains can fail, if this happens please try again, ensuring that the option to skip already actioned comments is enabled.

## Credits

This app was originally written by /u/FlyingLaserTurtle, with contributions from /u/ni5arga.
Expand All @@ -12,10 +14,14 @@ For support for Comment Mop, please contact /u/fsv (the current maintainer) rath

## Source code and license

Comment Mop is open source and licensed under the BSD Three Clause license. The source code is available on GitHub [here](https://github.com/fsvreddit/comment-nuke).
Comment Mop is open source and licensed under the BSD Three Clause license. [The source code is available on GitHub here](https://github.com/fsvreddit/comment-nuke).

## Change History

### v9.2.3

* More reliable mopping of extremely large threads

### v9.2.0

* Fix an error that causes Comment Mop to fail consistently for certain users
Expand Down
10 changes: 10 additions & 0 deletions devvit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://developers.reddit.com/schema/config-file.v1.json",
"name": "comment-nuke",
"blocks": {
"entry": "src/main.ts",
"triggers": [
"onModAction"
]
}
}
1 change: 0 additions & 1 deletion devvit.yaml

This file was deleted.

77 changes: 2 additions & 75 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,76 +1,3 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import stylistic from '@stylistic/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: ["**/*.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