Skip to content

Commit

Permalink
feat: ✨ Added ESLint and Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adevinwild committed Feb 14, 2023
1 parent 00a20cb commit 27c71ff
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 120,
"tabWidth": 4,
"useTabs": false
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@
"scripts": {
"build": "npm run clean && microbundle",
"dev": "microbundle watch",
"lint": "eslint ./src --ext .ts",
"clean": "rimraf dist"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"eslint": "^8.34.0",
"microbundle": "^0.15.1",
"prettier": "^2.8.4",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
Expand Down

0 comments on commit 27c71ff

Please sign in to comment.