Skip to content

Commit 876576a

Browse files
committed
Lint generated files in src only on generation and skip otherwise
1 parent b70105a commit 876576a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export default defineConfig([
66
ts,
77
jest,
88
{
9-
ignores: ['dist', 'node_modules', 'src'],
9+
ignores: ['dist', 'node_modules'],
1010
},
1111
])

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"scripts": {
3535
"build": "tsc",
3636
"clear": "rm -rf src/*",
37-
"generate": "node generator.js",
38-
"lint": "eslint --cache",
37+
"generate": "node generator.js && eslint --fix src",
38+
"lint": "eslint --cache --ignore-pattern src",
3939
"lint:fix": "npm run lint -- --fix",
4040
"typecheck": "tsc --noEmit",
4141
"test": "jest --config jestconfig.json --passWithNoTests",

0 commit comments

Comments
 (0)