Skip to content

Commit

Permalink
fix: configs
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilous committed Mar 21, 2024
1 parent 52d9df0 commit 060a728
Show file tree
Hide file tree
Showing 590 changed files with 43,165 additions and 30,355 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { defineConfig } = require("eslint-define-config");

module.exports = defineConfig({
extends: ["@repo/eslint-config/src/configs/base.cjs"],
ignorePatterns: ["apps/**", "packages/**"],
root: true,
});
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.history
.turbo
5 changes: 1 addition & 4 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# npx lint-staged && npm run build
npx lint-staged && npm run build
4 changes: 4 additions & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
"*": "prettier --write --list-different",
"*.{js,jsx,ts,tsx,json}": "eslint --fix --no-ignore --max-warnings 0",
};
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ pnpm-lock.json
pnpm-lock.yaml
public
tests.svg
thunder-tests
thunder-tests
global.d.ts
52 changes: 29 additions & 23 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
{
"$schema": "https://json.schemastore.org/prettierrc.json",
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"importOrder": ["<THIRD_PARTY_MODULES>", "^~/(.*)$", "^@/(.*)$", "^#/(.*)$", "^[./]"],
"importOrderParserPlugins": ["jsx", "typescript", "decorators"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"insertPragma": false,
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": true,
"vueIndentScriptAndStyle": false
"$schema": "https://json.schemastore.org/prettierrc.json",
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"importOrder": [
"<THIRD_PARTY_MODULES>",
"^~/(.*)$",
"^@/(.*)$",
"^#/(.*)$",
"^[./]"
],
"importOrderParserPlugins": ["jsx", "typescript", "decorators"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"insertPragma": false,
"plugins": ["@trivago/prettier-plugin-sort-imports"],
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": true,
"vueIndentScriptAndStyle": false
}
10 changes: 7 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"aliasLoader.sh": true,
"build": true,
"config-overrides.js": true,
"configs": true,
"cspell.json": true,
"Dockerfile": true,
"globals.d.ts": true,
Expand Down Expand Up @@ -89,12 +88,17 @@
"**/notes": true,
"**/modules": true,
"**/environments": true,
"**/configs": true,
"**/.trashcan": true,
"**/public": true,
"apps/web/loader.js": true,
"**/next-env.d.ts": true,
"**/next.config.mjs": true
"**/next.config.mjs": true,
"**/.eslintrc.js": true,
"**/tsconfig.tsbuildinfo": true,
"**/node_modules": true,
"**/.turbo": true,
"**/.next": true,
"**/.prettierignore": true
},
"jest.autoRun": "off",
"jest.coverageFormatter": "GutterFormatter",
Expand Down
20 changes: 10 additions & 10 deletions apps/server/.babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
1 change: 1 addition & 0 deletions apps/server/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { defineConfig } = require("eslint-define-config");

module.exports = defineConfig({
Expand Down
20 changes: 20 additions & 0 deletions apps/server/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://json.schemastore.org/mocharc",
"extension": ["ts"],
"node-option": [
"experimental-specifier-resolution=node",
"loader=./loader.js",
"no-warnings"
],
"package": "./package.json",
"reporter": "spec",
"spec": [
"./configs/mocha/mocha.setup.ts",
"./testSrc/__tests__/**/*.spec.ts"
],
"timeout": 60000,
"ui": "bdd",
"watch-ignore": "",
"exit": true,
"recursive": true
}
20 changes: 0 additions & 20 deletions apps/server/.mocharc.jsonc

This file was deleted.

20 changes: 10 additions & 10 deletions apps/server/.nycrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"all": true,
"check-coverage": true,
"include": ["src"],
"exclude": ["src/classes/SmsClient.js", "src/types"],
"output": "reports",
"reporter": ["text", "clover", "lcov"],
"branches": 50,
"lines": 50,
"functions": 50,
"statements": 50
"all": true,
"check-coverage": true,
"include": ["src"],
"exclude": ["src/classes/SmsClient.js", "src/types"],
"output": "reports",
"reporter": ["text", "clover", "lcov"],
"branches": 50,
"lines": 50,
"functions": 50,
"statements": 50
}
15 changes: 15 additions & 0 deletions apps/server/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.nyc_output
.trashcan
*-lock.json
*.d.ts
*.yaml
*.yml
build
built
coverage
dist
lib
node_modules
public
tests.svg
thunder-tests
Loading

0 comments on commit 060a728

Please sign in to comment.