@singlepixellab/eslint-config 1.1.0 → 1.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singlepixellab/eslint-config",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "The ESLint rules and configs used by Single Pixel Lab",
5
5
  "author": "Single Pixel Lab",
6
6
  "keywords": [
package/rules/ignores.js CHANGED
@@ -12,6 +12,12 @@ export default [
12
12
  "**/public/build/**",
13
13
  "**/dist/**",
14
14
  "**/coverage/**",
15
+
16
+ // Prismic auto-generated files
17
+ "customtypes",
18
+ "src/slices/**/*/mocks.json",
19
+ "src/slices/**/*/model.json",
20
+ "prismicio-types.d.ts",
15
21
  ],
16
22
  },
17
23
  ];
package/rules/styles.js CHANGED
@@ -386,8 +386,14 @@ export default [
386
386
  // Enforce consistent linebreak style for operators
387
387
  "@stylistic/operator-linebreak": [
388
388
  "warn",
389
- "before",
390
- { overrides: { "=": "ignore" } },
389
+ "after",
390
+ {
391
+ overrides: {
392
+ "=": "ignore",
393
+ "?": "before",
394
+ ":": "before",
395
+ },
396
+ },
391
397
  ],
392
398
 
393
399
  // Require or disallow padding within blocks