Skip to content

Commit

Permalink
Site: Lint ./ instead of just src/ and exclude more folders that are …
Browse files Browse the repository at this point in the history
…not meant to be linted (#390)

Demo implementation: vivid-planet/comet#2600
  • Loading branch information
nsams authored Oct 11, 2024
1 parent 3d48e56 commit 8378121
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "@comet/eslint-config/nextjs",
"ignorePatterns": ["**/**/*.generated.ts"],
"ignorePatterns": ["**/**/*.generated.ts", "dist/**", "lang/**", "lang-compiled/**", "lang-extracted/**", ".next/**", "public/**"],
"rules": {
"no-restricted-imports": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"gql:watch": "graphql-codegen --watch",
"prelint": "npm run intl:compile && run-p gql:types generate-block-types",
"lint": "run-p lint:eslint lint:tsc lint:style intl:extract",
"lint:eslint": "eslint --max-warnings 0 --config ./.eslintrc.cli.js --ext .ts,.tsx,.js,.jsx,.json,.md src/ package.json",
"lint:eslint": "eslint --max-warnings 0 --config ./.eslintrc.cli.js --ext .ts,.tsx,.js,.jsx,.json,.md .",
"lint:prettier": "npx prettier --check './**/*.{js,json,md,yml,yaml}'",
"lint:tsc": "tsc --project .",
"lint:style": "npx stylelint '**/*.{ts,tsx,css}'",
Expand Down
1 change: 1 addition & 0 deletions site/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ app.prepare()
}
}).listen(port, (err) => {
if (err) throw err;
// eslint-disable-next-line no-console
console.log(`> Ready on http://${hostname}:${port}`);
});
})
Expand Down

0 comments on commit 8378121

Please sign in to comment.