Skip to content

Commit f90784f

Browse files
committed
chore: add .depcheckrc configuration file and update package.json to include depcheck script
1 parent 5adb6f9 commit f90784f

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

‎.depcheckrc‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# depcheck — https://github.com/depcheck/depcheck
2+
#
3+
# Ignore-only setup: depcheck's webpack special does not scan webpack.dev.js / loaders.js naming,
4+
# and there is no Stylelint special for .stylelintrc. Listed packages are used via Webpack,
5+
# Stylelint config, or SCSS paths—not plain JS imports.
6+
7+
ignores:
8+
- "@wordpress/stylelint-config"
9+
- stylelint-config-recess-order
10+
- stylelint-scss
11+
- postcss-scss
12+
- css-loader
13+
- cssnano
14+
- esbuild-loader
15+
- imagemin
16+
- imagemin-gifsicle
17+
- imagemin-jpegtran
18+
- imagemin-optipng
19+
- imagemin-svgo
20+
- postcss
21+
- postcss-import
22+
- postcss-loader
23+
- postcss-preset-env
24+
- postcss-pxtorem
25+
- postcss-sort-media-queries
26+
- sass-loader
27+
- svgo
28+
- svgo-loader
29+
- webpack-cli

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"lint:css": "node_modules/.bin/stylelint \"src/scss/**/*.scss\"",
1313
"lint:js": "node_modules/.bin/eslint \"src/js/**/*.js\"",
1414
"lint": "node_modules/.bin/concurrently \"npx yarn lint:css\" \"npx yarn lint:js\"",
15-
"bundle-report": "yarn build && yarn webpack-bundle-analyzer dist/stats.json"
15+
"bundle-report": "yarn build && yarn webpack-bundle-analyzer dist/stats.json",
16+
"depcheck": "npx depcheck"
1617
},
1718
"license": "GPL-2.0",
1819
"dependencies": {

0 commit comments

Comments
 (0)