Skip to content

Commit

Permalink
Merge pull request #98 from TigerAppsOrg/tooling
Browse files Browse the repository at this point in the history
Add eslint and prettier to server code
  • Loading branch information
joshuamotoaki authored Aug 23, 2024
2 parents 78babcd + e70c1e8 commit 37bfef9
Show file tree
Hide file tree
Showing 16 changed files with 2,242 additions and 509 deletions.
9 changes: 9 additions & 0 deletions apps/server/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pnpm-lock.yaml
package-lock.json
package.json
yarn.lock
*.config.*
*.json
.prettierrc
*.yaml
*.yml
12 changes: 12 additions & 0 deletions apps/server/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"useTabs": false,
"tabWidth": 4,
"singleQuote": false,
"trailingComma": "none",
"printWidth": 80,
"semi": true,
"bracketSpacing": true,
"bracketSameLine": true,
"quoteProps": "consistent",
"arrowParens": "avoid"
}
22 changes: 22 additions & 0 deletions apps/server/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import js from "@eslint/js";
import ts from "typescript-eslint";
import prettier from "eslint-config-prettier";
import globals from "globals";

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
prettier,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
{
ignores: ["build/", "dist/", "node_modules/"]
}
];
1 change: 0 additions & 1 deletion apps/server/index.ts

This file was deleted.

Loading

0 comments on commit 37bfef9

Please sign in to comment.