Skip to content

Commit

Permalink
Convert from CommonJS to ES6 Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Mar 29, 2020
1 parent 31bada3 commit 3a46f39
Show file tree
Hide file tree
Showing 19 changed files with 1,511 additions and 349 deletions.
27 changes: 15 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@
//
"editor.formatOnSave": true,
//
// Go
//
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.inferGopath": true,
//
// ESlint
//
//"editor.formatOnSave": false,
//"vetur.validation.template": false,
"eslint.alwaysShowStatus": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[javascript]": {
"editor.formatOnSave": false,
},
"[vue]": {
"editor.formatOnSave": false,
},
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
//
// Go
//
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.inferGopath": true,
// File specific settings
"[javascriptreact]": {
"editor.formatOnSave": false,
},
"[javascript]": {
"editor.formatOnSave": false,
},
"[vue]": {
"editor.formatOnSave": false,
}
}
22 changes: 11 additions & 11 deletions src/app/api/static/app/.babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "m",
"pragmaFrag": "'['"
}
]
"presets": [
"@babel/preset-env"
],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "m",
"pragmaFrag": "'['"
}
]
]
}
20 changes: 20 additions & 0 deletions src/app/api/static/app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true
},
parserOptions: {
parser: 'babel-eslint',
sourceType: "module",
allowImportExportEverywhere: true
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:mithril/recommended'
],
plugins: ['prettier'],
rules: {}
}
Loading

0 comments on commit 3a46f39

Please sign in to comment.