misc: enable lint-staged for config cjs files

This commit is contained in:
fryorcraken.eth 2022-08-24 16:14:43 +10:00
parent f4da5a8266
commit cfece62e2a
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 9 additions and 7 deletions

View File

@ -23,10 +23,12 @@ module.exports = function (config) {
rules: [
{
test: /\.(js|tsx?)$/,
use: [{
loader: 'ts-loader',
options: { configFile: 'tsconfig.karma.json' }
}],
use: [
{
loader: "ts-loader",
options: { configFile: "tsconfig.karma.json" },
},
],
exclude: /(node_modules)|(node\.spec\.ts)/,
},
{
@ -47,7 +49,7 @@ module.exports = function (config) {
extensions: [".ts", ".js"],
},
stats: { warnings: false },
devtool: 'inline-source-map'
devtool: "inline-source-map",
},
});
};

View File

@ -186,7 +186,7 @@
"*.ts": [
"eslint --fix"
],
"*.{ts,json,conf.js}": [
"*.{ts,json,conf*.*js}": [
"prettier --write"
]
}

View File

@ -8,7 +8,7 @@ export default {
"lib/create_waku": "dist/lib/create_waku.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/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js"
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
},
output: {
dir: "bundle",