@pumpn/eslint-config 11.0.1 → 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/.np-config.cjs +1 -0
- package/addons/deno.js +17 -0
- package/addons.js +1 -0
- package/config.js +12 -2
- package/package.json +8 -4
- package/.ls-lint.yml +0 -6
- package/.tool-versions +0 -1
- package/.vscode/extensions.json +0 -6
- package/.vscode/settings.json +0 -20
- package/eslint.config.js +0 -3
package/.np-config.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("@pumpn/np-config");
|
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: [
|
|
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.0
|
|
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>",
|
|
@@ -11,17 +11,21 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"lint": "eslint .",
|
|
13
13
|
"prepublish": "npm run lint",
|
|
14
|
-
"release": "
|
|
14
|
+
"release": "np",
|
|
15
|
+
"test": "echo 'no tests yet'"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
18
|
+
"@pumpn/np-config": "^2.3.2",
|
|
17
19
|
"eslint": "^8.35.0",
|
|
18
|
-
"eslint-plugin-react": "*"
|
|
20
|
+
"eslint-plugin-react": "*",
|
|
21
|
+
"np": "^7.6.3"
|
|
19
22
|
},
|
|
20
23
|
"dependencies": {
|
|
21
24
|
"@babel/eslint-parser": "^7.19.1",
|
|
22
|
-
"@babel/plugin-
|
|
25
|
+
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
23
26
|
"@babel/preset-react": "^7.18.6",
|
|
24
27
|
"@eslint/js": "^8.35.0",
|
|
28
|
+
"@jsenv/importmap-eslint-resolver": "^5.2.5",
|
|
25
29
|
"globals": "^13.20.0"
|
|
26
30
|
},
|
|
27
31
|
"peerDependencies": {
|
package/.ls-lint.yml
DELETED
package/.tool-versions
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodejs 19.6.1
|
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
3
|
-
"editor.detectIndentation": false,
|
|
4
|
-
"editor.formatOnSave": true,
|
|
5
|
-
"editor.insertSpaces": false,
|
|
6
|
-
"editor.tabSize": 4,
|
|
7
|
-
"editor.useTabStops": false,
|
|
8
|
-
"eslint.codeActionsOnSave.mode": "all",
|
|
9
|
-
"eslint.enable": true,
|
|
10
|
-
"eslint.experimental.useFlatConfig": true,
|
|
11
|
-
"eslint.format.enable": true,
|
|
12
|
-
"eslint.validate": [
|
|
13
|
-
"javascript",
|
|
14
|
-
"javascriptreact",
|
|
15
|
-
"typescript",
|
|
16
|
-
"typescriptreact"
|
|
17
|
-
],
|
|
18
|
-
"files.insertFinalNewline": false,
|
|
19
|
-
"files.trimFinalNewlines": true
|
|
20
|
-
}
|
package/eslint.config.js
DELETED