Skip to content

Commit

Permalink
chore: Add eslint, prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungwoo-An committed Sep 29, 2020
1 parent 145ecb7 commit 6e9e0cb
Show file tree
Hide file tree
Showing 5 changed files with 1,464 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["airbnb", "prettier"],
"plugins": ["@typescript-eslint"],
"settings": {
"react": {
"pragma": "h"
}
},
"rules": {
"eol-last": "off",
"no-unused-vars": "off",
"class-methods-use-this": "off",
"global-require": "off",
"no-underscore-dangle": "off",

"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",

"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.log
dist
node_modules
.vscode
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"semi": true
}
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,14 @@
"license": "MIT",
"workspaces": [
"packages/*"
]
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"eslint": "^7.10.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-import": "^2.22.1",
"typescript": "^4.0.3"
}
}
Loading

0 comments on commit 6e9e0cb

Please sign in to comment.