diff --git a/.eslintrc b/.eslintrc index 93a93fb..a1a4f0c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -27,7 +27,7 @@ "properties": "never" }], "comma-dangle": ["error", "always-multiline"], - "import/extensions": "off", + "import/extensions": "on", "import/no-extraneous-dependencies": "off", "import/no-unresolved": [2, { "ignore": ["electron"] }], "jsx-quotes": ["error", "prefer-double"], @@ -82,5 +82,10 @@ "require-await": "error", "sort-keys": ["error", "asc", {"caseSensitive": true, "natural": true}], "yoda": ["error", "never"] + }, + "settings": { + "import/resolver": { + "babel-module": {} + } } } diff --git a/Makefile b/Makefile index acc4f47..f920ece 100644 --- a/Makefile +++ b/Makefile @@ -11,19 +11,22 @@ clean: clean-all: clean rm -rf ./node_modules -node_modules: - yarn --ignore-engines - electron-start: node_modules yarn electron-start -inferno-start: node_modules - yarn inferno-start - -react-start: node_modules - yarn inferno-start - fix: node_modules yarn fix -.PHONY: all clean fix electron-start react-start +inferno-start: node_modules + yarn inferno-start + +lint: node_modules + yarn lint + +node_modules: + yarn --ignore-engines + +react-start: node_modules + yarn inferno-start + +.PHONY: all clean electron-start fix lint react-start diff --git a/package.json b/package.json index 26b5e8c..6866866 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "eslint": "^4.19.1", "eslint-config-happiness": "^10.2.1", "eslint-config-inferno-app": "^6.2.0", + "eslint-import-resolver-babel-module": "^4.0.0", "eslint-loader": "2.0.0", "eslint-plugin-flowtype": "^2.46.3", "eslint-plugin-import": "^2.10.0", diff --git a/src/index.js b/src/index.js index 6513b94..94afb66 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,8 @@ import { render } from 'inferno'; import { Provider } from 'inferno-redux'; -import configureStore from '//configureStore'; -import { App } from '//App'; +import configureStore from './configureStore'; +import { App } from './App'; const store = configureStore(); diff --git a/src/views/HomeView.js b/src/views/HomeView.js index 68381cf..c914ccb 100644 --- a/src/views/HomeView.js +++ b/src/views/HomeView.js @@ -37,7 +37,7 @@ export class HomeView extends Component { draggedFiles.push(f.path); } - let newTransfer = { ...e.dataTransfer }; + const newTransfer = { ...e.dataTransfer }; console.info(newTransfer); window.clientWS.send(JSONMessage('dropped-files', draggedFiles)); diff --git a/yarn.lock b/yarn.lock index 77c6731..7adda50 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2494,6 +2494,13 @@ eslint-config-inferno-app@^6.2.0: eslint-plugin-inferno "^7.7.0" eslint-plugin-jsx-a11y "^6.0.3" +eslint-import-resolver-babel-module@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/eslint-import-resolver-babel-module/-/eslint-import-resolver-babel-module-4.0.0.tgz#1c596f7fb9815050292c8750d523b27a5444b4bf" + dependencies: + pkg-up "^2.0.0" + resolve "^1.4.0" + eslint-import-resolver-node@^0.3.1: version "0.3.2" resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a"