-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael.Taylor
committed
Nov 29, 2021
1 parent
95f1fc2
commit 4336a9f
Showing
157 changed files
with
18,651 additions
and
45,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)], | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"node-option": [ | ||
"experimental-specifier-resolution=node" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
15.0.1 | ||
16.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} .`, | ||
); | ||
} |
Oops, something went wrong.