Skip to content

Commit

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

This adds linting for a few more files in root.
  • Loading branch information
nsams authored Oct 8, 2024
1 parent 9f82296 commit fb24b79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/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", "dist/**"],
"ignorePatterns": ["**/**/*.generated.ts", "dist/**", "lang/**", "lang-compiled/**", "lang-extracted/**", ".next/**", "public/**"],
"rules": {
"@calm/react-intl/missing-formatted-message": "off",
"react/react-in-jsx-scope": "off",
Expand Down
2 changes: 1 addition & 1 deletion demo/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"intl:extract": "formatjs extract \"src/**/*.ts*\" --ignore **/*.d.ts --out-file lang-extracted/en.json --format simple",
"intl:compile": "formatjs compile-folder --format simple --ast lang/comet-demo-lang/site lang-compiled/",
"lint": "run-s intl:compile && run-p gql:types generate-block-types && run-p lint:prettier lint:eslint lint:tsc",
"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 .",
"serve": "NODE_ENV=production node dist/server.js"
Expand Down

0 comments on commit fb24b79

Please sign in to comment.