Skip to content

Commit

Permalink
feat: api base app
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael.Taylor committed Nov 29, 2021
1 parent 95f1fc2 commit 4336a9f
Show file tree
Hide file tree
Showing 157 changed files with 18,651 additions and 45,081 deletions.
14 changes: 14 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const path = require('path');
const jsConfig = require('./jsconfig.json');

module.exports = {
presets: ['@babel/preset-env'],
plugins: [
[
'module-resolver',
{
root: [path.resolve(jsConfig.compilerOptions.baseUrl)],
},
],
],
};
25 changes: 7 additions & 18 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
{
"env": {
"browser": true,
"amd": true,
"commonjs": true,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
"ecmaVersion": 2017,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:react/recommended"
],
"plugins": ["mocha"],
"extends": ["eslint:recommended", "plugin:mocha/recommended"],
"rules": {
"react/prop-types": "off"
},
"plugins": ["react"],
"settings": {
"react": {
"version": "detect"
}
"mocha/no-mocha-arrows": false
}
}
2 changes: 1 addition & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

branch=`git branch | grep \\* | cut -d ' ' -f2`;branchesToCheck=(\"master\"); [[ \" ${branchesToCheck[@]} \" =~ \" ${branch} \" ]] && yarn run release || exit 0
branch=`git branch | grep \\* | cut -d ' ' -f2`;branchesToCheck=(\"master\"); [[ \" ${branchesToCheck[@]} \" =~ \" ${branch} \" ]] && npm run release || exit 0
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node-option": [
"experimental-specifier-resolution=node"
]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.0.1
16.0.0
2 changes: 0 additions & 2 deletions .prettierrc.js → .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = {
bracketSpacing: true,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
endOfLine: 'auto',
};
2 changes: 0 additions & 2 deletions Procfile

This file was deleted.

8 changes: 5 additions & 3 deletions check_node_version.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const semver = require('semver');
const { engines } = require('./package');
import semver from 'semver';
import config from './package.json';
const { engines } = config;

const version = engines.node;
if (!semver.satisfies(process.version, version)) {
throw new Error(
`The current node version${process.version} does not satisfy the required version ${version} .`,
`WRONG NODE VERSION DETECTED: The current node version ${process.version} does not satisfy the required version ${version} .`,
);
}
Loading

0 comments on commit 4336a9f

Please sign in to comment.