1
0
Fork 0
forked from svrjs/svrjs

Fix eslint script to also lint index.js file.

This commit is contained in:
Dorian Niemiec 2024-08-25 11:38:11 +02:00
parent 726d161a64
commit e9e3bf5377
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ export default [
}
},
{
files: ["tests/**/*.test.js"],
files: ["tests/*.test.js", "tests/**/*.test.js"],
...jest.configs['flat/recommended'],
rules: {
...jest.configs['flat/recommended'].rules,

View file

@ -5,7 +5,7 @@
"scripts": {
"build": "node esbuild.config.js",
"dev": "npm run build && npm run start",
"lint": "eslint src/**/*.js tests/**/*.test.js",
"lint": "eslint --no-error-on-unmatched-pattern src/**/*.js src/*.js tests/**/*.test.js tests/**/*.js",
"lint:fix": "npm run lint -- --fix",
"start": "node dist/svr.js",
"test": "jest"