eslint-config-isaacscript 4.0.5 → 4.0.7

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/base-eslint.js CHANGED
@@ -714,7 +714,7 @@ const LAYOUT_AND_FORMATTING = {
714
714
  "switch-colon-spacing": "off", // eslint-config-prettier
715
715
  "template-curly-spacing": "off", // eslint-config-prettier
716
716
  "template-tag-spacing": "off", // eslint-config-prettier
717
- "unicode-bom": "off", // eslint-config-prettier
717
+ "unicode-bom": "error",
718
718
  "wrap-iife": "off", // eslint-config-prettier
719
719
  "wrap-regex": "off", // eslint-config-prettier
720
720
  "yield-star-spacing": "off", // eslint-config-prettier
package/base-import.js CHANGED
@@ -191,8 +191,12 @@ const STYLE_GUIDE = {
191
191
  * @type {import("eslint").Linter.Config}
192
192
  */
193
193
  const config = {
194
- // No additional configuration is necessary to make the plugin work properly with TypeScript.
195
- // (This was tested with the `import/no-default-export` rule.)
194
+ // Beyond just specifying the plugin, additional configuration is necessary to make the plugin
195
+ // work properly with TypeScript. We extend the upstream TypeScript config to accomplish this:
196
+ // https://github.com/import-js/eslint-plugin-import/blob/main/config/typescript.js
197
+ // (The necessity of this extra configuration was tested with the `import/no-cycle` rule.)
198
+ extends: ["plugin:import/typescript"],
199
+
196
200
  plugins: ["import"],
197
201
 
198
202
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "4.0.5",
3
+ "version": "4.0.7",
4
4
  "description": "A sharable ESLint config for TypeScript and IsaacScript projects.",
5
5
  "keywords": [
6
6
  "eslint",