Skip to content

Commit

Permalink
enhancement/vite-config (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJJackson authored Jul 14, 2023
1 parent 2be59d0 commit 72e71b9
Show file tree
Hide file tree
Showing 204 changed files with 10,495 additions and 25,693 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
public/
build/
src/serviceWorker.js
src/app-components/panel-group
64 changes: 64 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
requireConfigFile: false,
ecmaVersion: 12,
sourceType: 'module',
babelOptions: {
presets: ['@babel/preset-react'],
},
},
extends: [
'eslint:recommended',
'prettier',
'plugin:react/recommended',
'plugin:import/recommended',
'eslint-config-prettier',
],
plugins: ['react', 'prettier', 'import'],
settings: {
react: {
version: 'detect',
},
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx'],
moduleDirectory: ['node_modules'],
},
},
},
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/prop-types': 'off',
'react-hooks/exhaustive-deps': 'off', // @TODO turn on this rule to avoid stale closures
'linebreak-style': [
'error',
process.platform === 'win32' ? 'windows' : 'unix',
],
'no-console': 'warn',
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
},
],
'react/no-unescaped-entities': 'off',
'react/require-default-props': 'off',
'react/display-name': 'off',
'import/no-unresolved': ['error', { commonjs: true, amd: true }],
'import/named': 'error',
'import/namespace': 'error',
'import/default': 'error',
'import/export': 'error',
},
};
23 changes: 0 additions & 23 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# testing
/coverage
.eslintcache
rollup-analyze.json

# production
/build
Expand Down
51 changes: 51 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/gage_small.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Monitoring Instrumentation Data Acquisition System" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>Instrumentation</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<!-- <div id="if-ie" class="is-overlay overlay is-hidden">
<div class="overlay-card">
<article class="message is-warning">
<div class="message-body">
<h3 class="title is-3 has-text-warning">Warning</h3>
<h4 class="subtitle is-4">Out of date browser detected</h4>
<p class="mt-3">
It looks like you're using Internet Explorer. Modern web
applications use browser features not supported by Internet
Explorer. As Microsoft says in their
<a
target="_blank"
rel="noopener noreferrer"
href="https://techcommunity.microsoft.com/t5/Windows-IT-Pro-Blog/The-perils-of-using-Internet-Explorer-as-your-default-browser/ba-p/331732"
>blog post</a
>, Internet Explorer should only be used in cases where it is
needed to support legacy applications using deprecated technology.
</p>
<p class="mt-3">
Please use the Chrome browser to navigate to this application. If
you do not already have Chrome installed it is available from the
<a href="https://app-portal.usace.army.mil/esd"
>ACE-IT self-service page.</a
>
</p>
<p class="mt-3">
Sorry for any inconvenience, and thank you for making the web
safer!
</p>
</div>
</article>
</div>
</div> -->
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
Loading

0 comments on commit 72e71b9

Please sign in to comment.