forked from svrjs/svrjs
Fix eslint script to also lint index.js file.
This commit is contained in:
parent
726d161a64
commit
e9e3bf5377
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ export default [
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ["tests/**/*.test.js"],
|
files: ["tests/*.test.js", "tests/**/*.test.js"],
|
||||||
...jest.configs['flat/recommended'],
|
...jest.configs['flat/recommended'],
|
||||||
rules: {
|
rules: {
|
||||||
...jest.configs['flat/recommended'].rules,
|
...jest.configs['flat/recommended'].rules,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node esbuild.config.js",
|
"build": "node esbuild.config.js",
|
||||||
"dev": "npm run build && npm run start",
|
"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",
|
"lint:fix": "npm run lint -- --fix",
|
||||||
"start": "node dist/svr.js",
|
"start": "node dist/svr.js",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
|
|
Reference in a new issue