Skip to content

Commit

Permalink
Enable absolute JS imports
Browse files Browse the repository at this point in the history
  • Loading branch information
controversial committed May 23, 2020
1 parent de5b87a commit 69906c5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 78 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"react/jsx-props-no-spreading": "off"
},
"settings": {
"import/resolver": "webpack"
"import/resolver": {
"node": {
"paths": ["src"]
}
}
}
}
5 changes: 5 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"baseUrl": "./src"
}
}
76 changes: 0 additions & 76 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"babel-plugin-inline-react-svg": "^1.1.1",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-import-resolver-webpack": "^0.12.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
Expand Down

0 comments on commit 69906c5

Please sign in to comment.