Skip to content

Commit

Permalink
[#1] add: eslintrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbin9775 committed Jul 11, 2021
1 parent 0f8cce8 commit 13cff67
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"extends": [
"prettier",
"airbnb",
"airbnb/hooks",
"prettier/react",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"plugins": ["@typescript-eslint"],
"rules": {
"indent": ["error", 2],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"json": "never"
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-use-before-define": "off",
"import/no-unresolved": "off",
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts"] }]
}
}
6 changes: 3 additions & 3 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import GreetingPage from 'pages/GreetingPage';
import { Route, Switch } from 'react-router-dom';
import GlobalStyle from 'styles/GlobalStyle';
import GreetingPage from "pages/GreetingPage";
import { Route, Switch } from "react-router-dom";
import GlobalStyle from "styles/GlobalStyle";

const App = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react"
},
"include": ["src"]
}

0 comments on commit 13cff67

Please sign in to comment.