Skip to content

Commit

Permalink
Apply ESLint rules from top-level to static-site
Browse files Browse the repository at this point in the history
These were intentionally not applied in "static-site: Configure and use
ESLint" (1104d14) by myself, but I don't see a good reason why. It
makes more sense to apply the same baseline rules to all JS/TS code in
this repository, with added React-specific rules for static-site.
  • Loading branch information
victorlin committed Nov 14, 2024
1 parent 1ebb0a9 commit b4724ba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ ignorePatterns:
- auspice-client/
- docs/
- node_modules/
- static-site/

rules:
# Code quality rules
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"scripts": {
"build": "./build.sh",
"build:feeds": "node scripts/generate-blog-feeds.js",
"lint": "npm run lint:server && npm run lint:static-site",
"lint:server": "DEBUG=eslint:cli-engine npx eslint --max-warnings=0 --ext .js,.jsx .",
"lint": "DEBUG=eslint:cli-engine npx eslint --max-warnings=0 --ext .js,.jsx,.ts,.tsx .",
"lint:server": "DEBUG=eslint:cli-engine npx eslint --max-warnings=0 --ext .js,.jsx --ignore-pattern static-site .",
"lint:static-site": "cd static-site && DEBUG=eslint:cli-engine npx eslint --max-warnings=0 --ext .js,.jsx,.ts,.tsx .",
"server": "node server.js",
"groups": "node server.js --app ./src/groupsApp.js",
Expand Down
3 changes: 0 additions & 3 deletions static-site/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Prevent parent configuration from being applied.
root: true

plugins:
- "@typescript-eslint"

Expand Down

0 comments on commit b4724ba

Please sign in to comment.