@kununu/eslint-config 7.6.0-beta.1 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/eslint.config.mjs +0 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,9 +114,6 @@ ecosystem, with kununu's own conventions layered on top.
|
|
|
114
114
|
relative imports.
|
|
115
115
|
- **Granular Redux selectors** are enforced for `use*Selector*` and `use*Store*`
|
|
116
116
|
hooks.
|
|
117
|
-
- **No direct `/kunubi/event` requests.** Use `sendKunubiEvent` from
|
|
118
|
-
`@kununu/kununu-common` instead of posting to the endpoint by hand; it types
|
|
119
|
-
the payload and fills in the event metadata.
|
|
120
117
|
- **Formatting** comes from `@stylistic`: 120-character lines (ignoring
|
|
121
118
|
comments, strings and URLs), semicolons and single quotes, among others.
|
|
122
119
|
- **React Compiler rules** such as `react-hooks/refs` and
|
package/eslint.config.mjs
CHANGED
|
@@ -207,15 +207,6 @@ export default defineConfig([
|
|
|
207
207
|
],
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
|
-
'no-restricted-syntax': [
|
|
211
|
-
'error',
|
|
212
|
-
{
|
|
213
|
-
message: '\n Do not POST to /kunubi/event directly. Use sendKunubiEvent from @kununu/kununu-common (tracking/kunubi/sendKunubiEvent) - it types the payload against @kununu/kunubi-event-types and fills in name/payload/source for you.',
|
|
214
|
-
// Matches the bare literal anywhere, not only as a call argument: some
|
|
215
|
-
// call sites assign the path to a variable before passing it on.
|
|
216
|
-
selector: 'Literal[value="/kunubi/event"]',
|
|
217
|
-
},
|
|
218
|
-
],
|
|
219
210
|
'no-use-before-define': 'off',
|
|
220
211
|
'perfectionist/sort-imports': [
|
|
221
212
|
'error',
|
|
@@ -326,14 +317,4 @@ export default defineConfig([
|
|
|
326
317
|
'sonarjs/todo-tag': ['warn'],
|
|
327
318
|
},
|
|
328
319
|
},
|
|
329
|
-
|
|
330
|
-
// Must stay after the general rules block above: that block has no `files`
|
|
331
|
-
// key, so it applies to spec files too and would otherwise re-enable these.
|
|
332
|
-
{
|
|
333
|
-
files: ['**/*.spec.*'],
|
|
334
|
-
rules: {
|
|
335
|
-
// Specs legitimately assert on the request URL.
|
|
336
|
-
'no-restricted-syntax': 'off',
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
320
|
]);
|