linter extensions
This commit is contained in:
parent
c5e07a26b5
commit
fbf02c26e1
@ -17,8 +17,23 @@ 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
|
||||
// (req) {
|
||||
@ -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
|
||||
|
||||
@ -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 = () => (
|
||||
</Provider>
|
||||
);
|
||||
|
||||
// eslint-disable-next-line
|
||||
preact.render(<Main />, document.body);
|
||||
|
||||
// fizzyText('cryps.gg');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user