@pumpn/eslint-config 11.0.2 → 11.1.1
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/.np-config.cjs +1 -1
- package/addons/deno.js +15 -0
- package/addons.js +1 -0
- package/config.js +12 -2
- package/package.json +4 -4
- package/rules/imports.js +3 -2
package/.np-config.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require("@pumpn/np-config");
|
|
1
|
+
module.exports = require("@pumpn/np-config");
|
package/addons/deno.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
languageOptions: {
|
|
3
|
+
globals: {
|
|
4
|
+
Deno: "readonly"
|
|
5
|
+
}
|
|
6
|
+
},
|
|
7
|
+
settings: {
|
|
8
|
+
"import/resolver": {
|
|
9
|
+
"@jsenv/importmap-eslint-resolver": {
|
|
10
|
+
projectDirectoryUrl: process.cwd(),
|
|
11
|
+
importMapFileRelativeUrl: "./import-map.json"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
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: [
|
|
47
|
-
|
|
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.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "standard eslint config for pumpn code projects",
|
|
5
5
|
"main": "config.js",
|
|
6
6
|
"author": "Nano Miratus <nanomiratus@gmail.com>",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"repository": "https://github.com/pumpncode/eslint-config",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"lint": "eslint .",
|
|
13
|
-
"
|
|
13
|
+
"prepublishOnly": "npm run lint",
|
|
14
14
|
"release": "np",
|
|
15
15
|
"test": "echo 'no tests yet'"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@pumpn/np-config": "^
|
|
18
|
+
"@pumpn/np-config": "^3.0.0",
|
|
19
19
|
"eslint": "^8.35.0",
|
|
20
20
|
"eslint-plugin-react": "*",
|
|
21
21
|
"np": "^7.6.3"
|
|
@@ -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": {
|
package/rules/imports.js
CHANGED
|
@@ -72,7 +72,8 @@ export default {
|
|
|
72
72
|
"**/protractor.conf.js",
|
|
73
73
|
"**/protractor.conf.*.js",
|
|
74
74
|
"**/karma.conf.js",
|
|
75
|
-
"**/eslint.config.js"
|
|
75
|
+
"**/eslint.config.js",
|
|
76
|
+
"**/.np-config.cjs"
|
|
76
77
|
],
|
|
77
78
|
optionalDependencies: false
|
|
78
79
|
}
|
|
@@ -129,6 +130,6 @@ export default {
|
|
|
129
130
|
"newlines-between": "always"
|
|
130
131
|
}
|
|
131
132
|
],
|
|
132
|
-
"import/prefer-default-export": ["
|
|
133
|
+
"import/prefer-default-export": ["off"],
|
|
133
134
|
"import/unambiguous": "off"
|
|
134
135
|
};
|