mirror of https://github.com/status-im/js-waku.git
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: [
|
||||
{
|
||||
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",
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
|
@ -186,7 +186,7 @@
|
|||
"*.ts": [
|
||||
"eslint --fix"
|
||||
],
|
||||
"*.{ts,json,conf.js}": [
|
||||
"*.{ts,json,conf*.*js}": [
|
||||
"prettier --write"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue