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 +1 -1
- package/base-import.js +6 -2
- package/package.json +1 -1
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": "
|
|
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
|
-
//
|
|
195
|
-
//
|
|
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: {
|