js-style-kit 0.8.1 → 0.8.2

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/dist/index.js CHANGED
@@ -499,7 +499,7 @@ var convexRules = {
499
499
  // src/eslint/convex/config.ts
500
500
  var require2 = createRequire(import.meta.url);
501
501
  var convexPlugin = require2("@convex-dev/eslint-plugin");
502
- var convexConfig = (customRules) => ({
502
+ var convexConfig = (customRules, unicorn2) => ({
503
503
  files: ["**/convex/**/*.{ts,js}"],
504
504
  name: configNames.convex,
505
505
  plugins: {
@@ -507,7 +507,16 @@ var convexConfig = (customRules) => ({
507
507
  },
508
508
  rules: {
509
509
  ...convexRules,
510
- ...customRules ?? {}
510
+ ...customRules ?? {},
511
+ // Convex files must be camelCase
512
+ ...unicorn2 ? {
513
+ "unicorn/filename-case": [
514
+ "warn",
515
+ {
516
+ case: "camelCase"
517
+ }
518
+ ]
519
+ } : {}
511
520
  }
512
521
  });
513
522
 
@@ -1702,7 +1711,9 @@ var eslintConfig = ({
1702
1711
  configs.push(queryConfig(categorizedRules[configNames.query]));
1703
1712
  }
1704
1713
  if (convex) {
1705
- configs.push(convexConfig(categorizedRules[configNames.convex]));
1714
+ configs.push(
1715
+ convexConfig(categorizedRules[configNames.convex], Boolean(unicorn2))
1716
+ );
1706
1717
  }
1707
1718
  if (testing !== false) {
1708
1719
  const defaultTestingConfig = {