linter extensions

This commit is contained in:
ntr 2018-10-26 12:36:21 +11:00
parent c5e07a26b5
commit fbf02c26e1
2 changed files with 19 additions and 8 deletions

View File

@ -17,8 +17,23 @@ module.exports = {
react: { react: {
pragma: "preact", pragma: "preact",
version: "15.0", 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: { rules: {
// prevents stupid complaints a la // prevents stupid complaints a la
// (req) { // (req) {
@ -763,7 +778,7 @@ module.exports = {
objects: 'always-multiline', objects: 'always-multiline',
imports: 'always-multiline', imports: 'always-multiline',
exports: 'always-multiline', exports: 'always-multiline',
functions: 'always-multiline', // functions: 'always-multiline',
}], }],
// enforce spacing before and after comma // enforce spacing before and after comma

View File

@ -24,7 +24,7 @@ const store = createStore(
cryps: reducers.crypsReducer, cryps: reducers.crypsReducer,
items: reducers.itemsReducer, items: reducers.itemsReducer,
ws: reducers.wsReducer, ws: reducers.wsReducer,
}), })
); );
store.subscribe(() => console.log(store.getState())); store.subscribe(() => console.log(store.getState()));
@ -34,11 +34,6 @@ const ws = createSocket(store);
store.dispatch(actions.setWs(ws)); store.dispatch(actions.setWs(ws));
ws.connect(); ws.connect();
function blah() {
}
// tells jdenticon to look for new svgs and render them // tells jdenticon to look for new svgs and render them
// so we don't have to setInnerHtml or manually call update // so we don't have to setInnerHtml or manually call update
jdenticon.config = { jdenticon.config = {
@ -58,6 +53,7 @@ const Main = () => (
</Provider> </Provider>
); );
// eslint-disable-next-line
preact.render(<Main />, document.body); preact.render(<Main />, document.body);
// fizzyText('cryps.gg'); // fizzyText('cryps.gg');