Skip to content

Commit b22ec46

Browse files
committed
chore: update dependencies and devDependencies in package.json
- Bump versions of @devvit/protos and @devvit/public-api to 0.12.22 - Add @fsvreddit/fsv-devvit-helpers and @fsvreddit/eslint-config from GitHub - Update vitest to version 4.0.0 - Remove unused devDependencies fix: improve cleanup logic in cleanup.ts - Remove unnecessary nullish coalescing operator when assigning firstMonth feat: enhance mod action handling in modActionHandling.ts - Implement hasModActionBeenHandled function to prevent duplicate handling of mod actions feat: add trigger handling in postAndCommentHandling.ts - Implement hasTriggerBeenHandled checks for post and comment creation and deletion events
1 parent a90d13b commit b22ec46

7 files changed

Lines changed: 1104 additions & 1883 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Subreddit Statistics is open source. The code is available on GitHub [here](http
2828

2929
## Version History
3030

31+
### v1.2.12
32+
33+
* Mitigate against duplicate actions if the Developer Platform is having issues
34+
3135
### v1.2.11
3236

3337
* Update Dev Platform version and README. No public facing changes in this release.

eslint.config.mjs

Lines changed: 2 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,3 @@
1-
import eslint from "@eslint/js";
2-
import tseslint from "typescript-eslint";
3-
import stylistic from '@stylistic/eslint-plugin'
4-
import vitest from "@vitest/eslint-plugin"
1+
import fsvconfig from "@fsvreddit/eslint-config";
52

6-
export default tseslint.config(
7-
eslint.configs.recommended,
8-
...tseslint.configs.strictTypeChecked,
9-
...tseslint.configs.stylisticTypeChecked,
10-
stylistic.configs.customize({
11-
indent: 4,
12-
quotes: "double",
13-
semi: true,
14-
quoteProps: "consistent-as-needed",
15-
braceStyle: "1tbs",
16-
}),
17-
{
18-
files: ["**/*.test.ts"],
19-
plugins: {
20-
vitest
21-
},
22-
rules: {
23-
...vitest.configs.recommended.rules,
24-
'vitest/valid-title': 'warn',
25-
'vitest/no-commented-out-tests': 'warn'
26-
}
27-
},
28-
{
29-
files: ["**/*.ts", "**/*.tsx"],
30-
31-
languageOptions: {
32-
parserOptions: {
33-
project: "./tsconfig.json",
34-
tsconfigRootDir: import.meta.dirname,
35-
},
36-
},
37-
38-
rules: {
39-
// Extra rules
40-
"eqeqeq": ["error", "always", {
41-
null: "ignore",
42-
}],
43-
"no-self-compare": "error",
44-
"no-template-curly-in-string": "error",
45-
"no-useless-assignment": "error",
46-
"no-nested-ternary": "error",
47-
"no-return-assign": "error",
48-
"no-sequences": "error",
49-
"no-var": "error",
50-
"arrow-body-style": ["error", "as-needed"],
51-
"func-style": ["error", "declaration", {
52-
allowArrowFunctions: true,
53-
}],
54-
"curly": ["error", "all"],
55-
"object-shorthand": ["error", "always"],
56-
"operator-assignment": ["error", "always"],
57-
"camelcase": ["error", {
58-
properties: "always",
59-
}],
60-
61-
// Rules I don't want
62-
"@typescript-eslint/restrict-template-expressions": "off",
63-
64-
// Extra code styling rules
65-
"@stylistic/array-bracket-newline": ["error", "consistent"],
66-
"@stylistic/array-element-newline": ["error", "consistent"],
67-
"@/func-call-spacing": ["error", "never"],
68-
"@stylistic/function-paren-newline": ["error", "multiline"],
69-
"@stylistic/implicit-arrow-linebreak": ["error", "beside"],
70-
71-
"@stylistic/object-curly-newline": ["error", {
72-
multiline: true,
73-
consistent: true,
74-
}],
75-
76-
"@stylistic/object-property-newline": ["error", {
77-
allowAllPropertiesOnSameLine: true,
78-
}],
79-
80-
"@stylistic/operator-linebreak": ["off"],
81-
"@stylistic/semi-style": ["error", "last"],
82-
"@stylistic/space-before-function-paren": ["error", "always"],
83-
},
84-
},
85-
{
86-
ignores: ["**/node_modules", "**/dist", "eslint.config.mjs"],
87-
},
88-
);
3+
export default fsvconfig;

0 commit comments

Comments
 (0)