package.json: stop providing configured extensions

In eslintrc.json we already specify the type of files we are interested
in linting and `--ext` takes presence over the configuration file and as
no js or jsx files eslint will report an error.
This commit is contained in:
Jelle van der Waa 2024-07-17 13:45:17 +02:00 committed by Martin Pitt
parent baef584882
commit 66c6f21636

View file

@ -12,8 +12,8 @@
"scripts": { "scripts": {
"watch": "ESBUILD_WATCH='true' ./build.js", "watch": "ESBUILD_WATCH='true' ./build.js",
"build": "./build.js", "build": "./build.js",
"eslint": "eslint --ext .js --ext .jsx src/", "eslint": "eslint src/",
"eslint:fix": "eslint --fix --ext .js --ext .jsx src/", "eslint:fix": "eslint --fix src/",
"stylelint": "stylelint src/*{.css,scss}", "stylelint": "stylelint src/*{.css,scss}",
"stylelint:fix": "stylelint --fix src/*{.css,scss}" "stylelint:fix": "stylelint --fix src/*{.css,scss}"
}, },