@aiou/eslint-config 1.4.0 → 1.5.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
@@ -4308,6 +4308,9 @@ const typescript = () => {
4308
4308
  "@typescript-eslint/sort-type-constituents": "error",
4309
4309
  "@typescript-eslint/unbound-method": "off",
4310
4310
  "@typescript-eslint/prefer-for-of": "error",
4311
+ // When .ts files compiled to .mjs, will throw require is not found
4312
+ // use createRequire instead
4313
+ "@typescript-eslint/no-require-imports": "error",
4311
4314
  // https://www.npmjs.com/package/eslint-plugin-etc
4312
4315
  "etc/no-t": "error",
4313
4316
  /**
package/dist/index.mjs CHANGED
@@ -4306,6 +4306,9 @@ const typescript = () => {
4306
4306
  "@typescript-eslint/sort-type-constituents": "error",
4307
4307
  "@typescript-eslint/unbound-method": "off",
4308
4308
  "@typescript-eslint/prefer-for-of": "error",
4309
+ // When .ts files compiled to .mjs, will throw require is not found
4310
+ // use createRequire instead
4311
+ "@typescript-eslint/no-require-imports": "error",
4309
4312
  // https://www.npmjs.com/package/eslint-plugin-etc
4310
4313
  "etc/no-t": "error",
4311
4314
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiou/eslint-config",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "eslint config for aiou template",
5
5
  "keywords": [],
6
6
  "license": "MIT",