Skip to content

Commit

Permalink
chore: allow import/export syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Feb 15, 2022
1 parent 038719a commit 5ff9398
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,17 @@
}
]
],
"plugins": [
"@babel/plugin-proposal-export-default-from",
[
"@babel/plugin-transform-runtime",
{
"absoluteRuntime": false,
"corejs": 3,
"helpers": true,
"regenerator": true
}
]
],
"sourceMaps": true
}
8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
extends: [
'eslint:recommended',
'standard',
'plugin:node/recommended',
'plugin:promise/recommended',
'plugin:import/recommended'
],
parser: '@babel/eslint-parser',
parserOptions: { requireConfigFile: false },
env: {
browser: true,
node: true
},
settings: {
'import/ignore': ['node_modules', '.(scss|css)$', '.(jpe?g|png|gif|svg)']
},
rules: {
'node/no-unsupported-features/es-syntax': 'off'
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
"devDependencies": {
"@babel/cli": "^7.17.0",
"@babel/core": "^7.17.2",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-proposal-export-default-from": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/runtime-corejs3": "^7.17.2",
"babel-loader": "^8.2.2",
"buffer": "^6.0.3",
"chai": "^4.3.3",
Expand Down

0 comments on commit 5ff9398

Please sign in to comment.