mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-06-06 11:59:27 +00:00
misc: enable lint-staged for config cjs files
This commit is contained in:
parent
f4da5a8266
commit
cfece62e2a
@ -23,10 +23,12 @@ module.exports = function (config) {
|
|||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.(js|tsx?)$/,
|
test: /\.(js|tsx?)$/,
|
||||||
use: [{
|
use: [
|
||||||
loader: 'ts-loader',
|
{
|
||||||
options: { configFile: 'tsconfig.karma.json' }
|
loader: "ts-loader",
|
||||||
}],
|
options: { configFile: "tsconfig.karma.json" },
|
||||||
|
},
|
||||||
|
],
|
||||||
exclude: /(node_modules)|(node\.spec\.ts)/,
|
exclude: /(node_modules)|(node\.spec\.ts)/,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -47,7 +49,7 @@ module.exports = function (config) {
|
|||||||
extensions: [".ts", ".js"],
|
extensions: [".ts", ".js"],
|
||||||
},
|
},
|
||||||
stats: { warnings: false },
|
stats: { warnings: false },
|
||||||
devtool: 'inline-source-map'
|
devtool: "inline-source-map",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -186,7 +186,7 @@
|
|||||||
"*.ts": [
|
"*.ts": [
|
||||||
"eslint --fix"
|
"eslint --fix"
|
||||||
],
|
],
|
||||||
"*.{ts,json,conf.js}": [
|
"*.{ts,json,conf*.*js}": [
|
||||||
"prettier --write"
|
"prettier --write"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export default {
|
|||||||
"lib/create_waku": "dist/lib/create_waku.js",
|
"lib/create_waku": "dist/lib/create_waku.js",
|
||||||
"lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js",
|
"lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js",
|
||||||
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
|
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
|
||||||
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js"
|
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
dir: "bundle",
|
dir: "bundle",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user