From fbf02c26e1e05a53f383260d2ac5ec88204cb01d Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 26 Oct 2018 12:36:21 +1100 Subject: [PATCH] linter extensions --- client/.eslintrc.js | 19 +++++++++++++++++-- client/src/main.jsx | 8 ++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/client/.eslintrc.js b/client/.eslintrc.js index 28e99532..2970baf5 100755 --- a/client/.eslintrc.js +++ b/client/.eslintrc.js @@ -17,7 +17,22 @@ module.exports = { react: { pragma: "preact", version: "15.0", - } + }, + 'import/resolver': { + node: { + extensions: ['.mjs', '.js', '.jsx', '.json'] + } + }, + 'import/extensions': [ + '.js', + '.mjs', + '.jsx', + ], + 'import/core-modules': [], + 'import/ignore': [ + 'node_modules', + '\\.(coffee|scss|css|less|hbs|svg|json)$', + ], }, rules: { // prevents stupid complaints a la @@ -763,7 +778,7 @@ module.exports = { objects: 'always-multiline', imports: 'always-multiline', exports: 'always-multiline', - functions: 'always-multiline', + // functions: 'always-multiline', }], // enforce spacing before and after comma diff --git a/client/src/main.jsx b/client/src/main.jsx index 2c427b5b..1df4f0c3 100755 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -24,7 +24,7 @@ const store = createStore( cryps: reducers.crypsReducer, items: reducers.itemsReducer, ws: reducers.wsReducer, - }), + }) ); store.subscribe(() => console.log(store.getState())); @@ -34,11 +34,6 @@ const ws = createSocket(store); store.dispatch(actions.setWs(ws)); ws.connect(); -function blah() { - -} - - // tells jdenticon to look for new svgs and render them // so we don't have to setInnerHtml or manually call update jdenticon.config = { @@ -58,6 +53,7 @@ const Main = () => ( ); +// eslint-disable-next-line preact.render(
, document.body); // fizzyText('cryps.gg');