Skip to content

Commit

Permalink
Formatting, linting initial setup
Browse files Browse the repository at this point in the history
Using the Standard Typescript ESLint but specifically _not_ using `ts-standard` because it does not play nice with e.g. `vim-test`. See standard/ts-standard#273

Editorconfig, ESLint, and Prettier _can_ all play nicely together and using them together helps focus the purpose of changes. For more, see https://blog.theodo.com/2019/08/empower-your-dev-environment-with-eslint-prettier-and-editorconfig-with-no-conflicts/
  • Loading branch information
jxpx777 committed Dec 15, 2023
1 parent 6263d6e commit 3c58e93
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
Empty file added .editorconfig
Empty file.
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": "standard-with-typescript",
"overrides": [
{
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"],
"extends": ["standard-with-typescript", "prettier"]
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"rules": {
}
}
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
"redis": "^4.6.11"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^42.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.4.0",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^3.1.1",
"prettier-standard": "^15.0.1",
"typescript": "^5.3.3"
}
}

0 comments on commit 3c58e93

Please sign in to comment.