@pumpn/eslint-config 11.0.2 → 11.1.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/addons/deno.js ADDED
@@ -0,0 +1,17 @@
1
+ import { fileURLToPath } from "url";
2
+
3
+ export default {
4
+ languageOptions: {
5
+ globals: {
6
+ Deno: "readonly"
7
+ }
8
+ },
9
+ settings: {
10
+ "import/resolver": {
11
+ "@jsenv/importmap-eslint-resolver": {
12
+ projectDirectoryUrl: fileURLToPath(new URL(".", import.meta.url)),
13
+ importMapFileRelativeUrl: "./import-map.json"
14
+ }
15
+ }
16
+ }
17
+ };
package/addons.js ADDED
@@ -0,0 +1 @@
1
+ export { default as deno } from "./addons/deno.js";
package/config.js CHANGED
@@ -17,6 +17,8 @@ const convertedGlobals = Object.fromEntries(
17
17
  .map(([global, isWritable]) => [global, isWritable ? "writable" : "readonly"])
18
18
  );
19
19
 
20
+ export * from "./addons.js";
21
+
20
22
  export default [
21
23
  js.configs.recommended,
22
24
  {
@@ -43,8 +45,16 @@ export default [
43
45
  babelOptions: {
44
46
  babelrc: false,
45
47
  configFile: false,
46
- presets: ["@babel/preset-react"],
47
- plugins: ["@babel/plugin-syntax-import-assertions", "@babel/plugin-proposal-export-default-from"]
48
+ presets: [
49
+ [
50
+ "@babel/preset-react",
51
+ {
52
+ bugfixes: true,
53
+ shippedProposals: true
54
+ }
55
+ ]
56
+ ],
57
+ plugins: ["@babel/plugin-proposal-export-default-from"]
48
58
  }
49
59
  }
50
60
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpn/eslint-config",
3
- "version": "11.0.2",
3
+ "version": "11.1.0",
4
4
  "description": "standard eslint config for pumpn code projects",
5
5
  "main": "config.js",
6
6
  "author": "Nano Miratus <nanomiratus@gmail.com>",
@@ -23,9 +23,9 @@
23
23
  "dependencies": {
24
24
  "@babel/eslint-parser": "^7.19.1",
25
25
  "@babel/plugin-proposal-export-default-from": "^7.18.10",
26
- "@babel/plugin-syntax-import-assertions": "^7.20.0",
27
26
  "@babel/preset-react": "^7.18.6",
28
27
  "@eslint/js": "^8.35.0",
28
+ "@jsenv/importmap-eslint-resolver": "^5.2.5",
29
29
  "globals": "^13.20.0"
30
30
  },
31
31
  "peerDependencies": {