Skip to content

Commit

Permalink
#38
Browse files Browse the repository at this point in the history
- examples/server: swc заменен на babel
- examples/server: правки tsconfig
- examples/server: добавлен typed-redux-saga
  • Loading branch information
krutoo committed Mar 20, 2023
1 parent 47d20bb commit 7b49bac
Show file tree
Hide file tree
Showing 6 changed files with 6,008 additions and 2,192 deletions.
9 changes: 9 additions & 0 deletions examples/server/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,14 @@ module.exports = {
'jsdoc/require-jsdoc': 'off',
},
},

// allow use only typed-redux-saga/macro
{
files: ['./**/*.{ts,tsx}'],
rules: {
'@jambit/typed-redux-saga/use-typed-effects': ['error', 'macro'],
'@jambit/typed-redux-saga/delegate-effects': 'error',
},
},
],
};
12 changes: 12 additions & 0 deletions examples/server/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [
// presets
'@babel/preset-env',
['@babel/preset-react', { runtime: 'automatic' }],
'@babel/preset-typescript',
],
plugins: [
// plugins
'babel-plugin-macros',
],
};
Loading

0 comments on commit 7b49bac

Please sign in to comment.