@rotki/eslint-config 2.0.0 → 2.2.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/dist/index.cjs CHANGED
@@ -580,7 +580,7 @@ function imports(options = {}) {
580
580
  }
581
581
  },
582
582
  {
583
- files: [`**/*.config.${GLOB_SRC_EXT}`, `**/*.config.*.${GLOB_SRC_EXT}`],
583
+ files: [`**/*.config.${GLOB_SRC_EXT}`, `**/*.config.*.${GLOB_SRC_EXT}`, `**/.vitepress/config.${GLOB_SRC}`],
584
584
  rules: {
585
585
  "import/no-default-export": "off",
586
586
  "no-console": "off"
@@ -1021,8 +1021,8 @@ function node() {
1021
1021
  "node/no-exports-assign": "error",
1022
1022
  "node/no-new-require": "error",
1023
1023
  "node/no-path-concat": "error",
1024
- "node/prefer-global/buffer": ["warn", "never"],
1025
- "node/prefer-global/process": ["warn", "never"],
1024
+ "node/prefer-global/buffer": ["error", "never"],
1025
+ "node/prefer-global/process": ["error", "never"],
1026
1026
  "node/process-exit-as-throw": "error"
1027
1027
  }
1028
1028
  }
@@ -1322,7 +1322,7 @@ async function test(options = {}) {
1322
1322
  files,
1323
1323
  rules: {
1324
1324
  "node/prefer-global/process": "off",
1325
- "test/consistent-test-it": ["error", { fn: "test", withinDescribe: "test" }],
1325
+ "test/consistent-test-it": ["error", { fn: "it", withinDescribe: "it" }],
1326
1326
  "test/no-identical-title": "error",
1327
1327
  "test/no-import-node-test": "error",
1328
1328
  "test/no-only-tests": isInEditor ? "off" : "error",
@@ -1589,6 +1589,12 @@ function unicorn() {
1589
1589
  "unicorn/prefer-type-error": "error",
1590
1590
  "unicorn/throw-new-error": "error"
1591
1591
  }
1592
+ },
1593
+ {
1594
+ files: [".github/**/*.md"],
1595
+ rules: {
1596
+ "unicorn/filename-case": "off"
1597
+ }
1592
1598
  }
1593
1599
  ];
1594
1600
  }
@@ -1621,6 +1627,10 @@ async function vue(options = {}) {
1621
1627
  // migration
1622
1628
  "vue/component-api-style": ["error", ["script-setup"]],
1623
1629
  "vue/define-props-declaration": ["error", "type-based"],
1630
+ "vue/first-attribute-linebreak": ["error", {
1631
+ multiline: "below",
1632
+ singleline: "ignore"
1633
+ }],
1624
1634
  "vue/html-self-closing": [
1625
1635
  "error",
1626
1636
  {
package/dist/index.js CHANGED
@@ -487,7 +487,7 @@ function imports(options = {}) {
487
487
  }
488
488
  },
489
489
  {
490
- files: [`**/*.config.${GLOB_SRC_EXT}`, `**/*.config.*.${GLOB_SRC_EXT}`],
490
+ files: [`**/*.config.${GLOB_SRC_EXT}`, `**/*.config.*.${GLOB_SRC_EXT}`, `**/.vitepress/config.${GLOB_SRC}`],
491
491
  rules: {
492
492
  "import/no-default-export": "off",
493
493
  "no-console": "off"
@@ -928,8 +928,8 @@ function node() {
928
928
  "node/no-exports-assign": "error",
929
929
  "node/no-new-require": "error",
930
930
  "node/no-path-concat": "error",
931
- "node/prefer-global/buffer": ["warn", "never"],
932
- "node/prefer-global/process": ["warn", "never"],
931
+ "node/prefer-global/buffer": ["error", "never"],
932
+ "node/prefer-global/process": ["error", "never"],
933
933
  "node/process-exit-as-throw": "error"
934
934
  }
935
935
  }
@@ -1229,7 +1229,7 @@ async function test(options = {}) {
1229
1229
  files,
1230
1230
  rules: {
1231
1231
  "node/prefer-global/process": "off",
1232
- "test/consistent-test-it": ["error", { fn: "test", withinDescribe: "test" }],
1232
+ "test/consistent-test-it": ["error", { fn: "it", withinDescribe: "it" }],
1233
1233
  "test/no-identical-title": "error",
1234
1234
  "test/no-import-node-test": "error",
1235
1235
  "test/no-only-tests": isInEditor ? "off" : "error",
@@ -1496,6 +1496,12 @@ function unicorn() {
1496
1496
  "unicorn/prefer-type-error": "error",
1497
1497
  "unicorn/throw-new-error": "error"
1498
1498
  }
1499
+ },
1500
+ {
1501
+ files: [".github/**/*.md"],
1502
+ rules: {
1503
+ "unicorn/filename-case": "off"
1504
+ }
1499
1505
  }
1500
1506
  ];
1501
1507
  }
@@ -1528,6 +1534,10 @@ async function vue(options = {}) {
1528
1534
  // migration
1529
1535
  "vue/component-api-style": ["error", ["script-setup"]],
1530
1536
  "vue/define-props-declaration": ["error", "type-based"],
1537
+ "vue/first-attribute-linebreak": ["error", {
1538
+ multiline: "below",
1539
+ singleline: "ignore"
1540
+ }],
1531
1541
  "vue/html-self-closing": [
1532
1542
  "error",
1533
1543
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rotki/eslint-config",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "packageManager": "pnpm@8.14.1",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",