Cleanup Linting

This commit is contained in:
Sacha Weatherstone
2022-02-20 16:27:55 +11:00
parent 6e0aa0ea42
commit ff91e822b9
10 changed files with 152 additions and 519 deletions

View File

@@ -1,3 +0,0 @@
{
"extends": ["@verypossible/eslint-config/react"]
}

7
.eslintrc.cjs Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
extends: '@meshtastic/eslint-config',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
};

1
.prettierrc Normal file
View File

@@ -0,0 +1 @@
"@meshtastic/eslint-config/prettier"

View File

@@ -8,23 +8,32 @@
"build": "tsc && vite build",
"preview": "vite preview",
"package": "gzipper c -i html,js,css,png,ico,svg,webmanifest,txt dist dist/output && tar -cvf dist/build.tar -C ./dist/output/ $(ls ./dist/output/)",
"format": "prettier --write 'src/**/*.{ts,tsx}'",
"check": "unimported",
"lint": "eslint 'src/**/*.{ts,tsx}'"
"format": "prettier --write 'src/**/*.{ts,tsx}' && eslint src/*.{ts,tsx}",
"check": "unimported"
},
"repository": {
"type": "git",
"url": "git+https://github.com/meshtastic/meshtastic-web.git"
},
"bugs": {
"url": "https://github.com/meshtastic/meshtastic-web/issues"
},
"homepage": "https://meshtastic.org",
"dependencies": {
"@emeraldpay/hashicon-react": "^0.5.2",
"@meshtastic/meshtasticjs": "^0.6.46",
"@meshtastic/eslint-config": "^1.0.6",
"@meshtastic/meshtasticjs": "^0.6.47",
"@reduxjs/toolkit": "^1.7.2",
"@tippyjs/react": "^4.2.6",
"base64-js": "^1.5.1",
"framer-motion": "^6.2.6",
"mapbox-gl": "^2.7.0",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-error-boundary": "^3.1.4",
"react-flow-renderer": "^10.0.0-next.39",
"react-hook-form": "^7.27.0",
"react-hook-form": "^7.27.1",
"react-icons": "^4.3.1",
"react-json-pretty": "^2.2.0",
"react-multi-select-component": "^4.2.3",
@@ -44,24 +53,10 @@
"@types/react-dom": "^17.0.11",
"@types/w3c-web-serial": "^1.0.2",
"@types/web-bluetooth": "^0.0.12",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"@verypossible/eslint-config": "^1.6.1",
"@vitejs/plugin-react": "^1.2.0",
"autoprefixer": "^10.4.2",
"babel-plugin-module-resolver": "^4.1.0",
"eslint": "8.9.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-babel-module": "^5.3.1",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"gzipper": "^7.0.0",
"postcss": "^8.4.6",
"prettier": "^2.5.1",
"prettier-plugin-tailwindcss": "^0.1.7",
"rollup-plugin-visualizer": "^5.5.4",
"tailwindcss": "^3.0.23",
"tar": "^6.1.11",

604
pnpm-lock.yaml generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +0,0 @@
module.exports = {
plugins: [require('prettier-plugin-tailwindcss')],
singleQuote: true,
trailingComma: 'all',
tailwindConfig: './tailwind.config.cjs',
};

View File

@@ -1,4 +1,4 @@
import React from 'react';
import type React from 'react';
import { Map } from '@app/pages/Map';
import { Connection } from '@components/Connection';

View File

@@ -58,15 +58,6 @@
overflow: auto;
}
/* Mobile height fix */
/* .min-h-fill {
min-height: -webkit-fill-available;
}
.h-fill {
height: -webkit-fill-available;
} */
body {
min-height: 100vh;
/* mobile viewport bug fix */

View File

@@ -1,7 +1,7 @@
import '@app/index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { render } from 'react-dom';
import { domAnimation, LazyMotion } from 'framer-motion';
import { ErrorBoundary } from 'react-error-boundary';
@@ -13,7 +13,7 @@ import { ReloadPrompt } from '@components/pwa/ReloadPrompt';
import { RouteProvider } from '@core/router';
import { store } from '@core/store';
ReactDOM.render(
render(
<React.StrictMode>
<ErrorBoundary FallbackComponent={ErrorFallback}>
<RouteProvider>

View File

@@ -6,7 +6,7 @@
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,