Skip to content

Commit

Permalink
Lint for tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jul 16, 2024
1 parent 4acb6fb commit 5dd6733
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
'import',
'flowtype',
'jsx-a11y',
'@stylistic',
// 'jest',
// 'testing-library',

Expand Down Expand Up @@ -116,6 +117,9 @@ module.exports = {
// ], // default "error"
'no-useless-constructor': 'off',
// '@typescript-eslint/no-useless-constructor': 'warn', // default "error"

'@stylistic/no-tabs': 'error',


/*
// migrated from:
Expand Down
154 changes: 154 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.3.0",
"@stylistic/eslint-plugin-ts": "^2.3.0",
"@types/proj4": "^2.5.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
Expand Down
28 changes: 14 additions & 14 deletions src/Map.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
}

#map-tooltip {
position: absolute;
display: inline-block;
height: auto;
width: auto;
z-index: 100;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 4px;
padding: 5px;
left: 50%;
transform: translateX(3%);
visibility: hidden;
pointer-events: none;
position: absolute;
display: inline-block;
height: auto;
width: auto;
z-index: 100;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 4px;
padding: 5px;
left: 50%;
transform: translateX(3%);
visibility: hidden;
pointer-events: none;
}
2 changes: 1 addition & 1 deletion src/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useMap } from '@src/map';


export const Map = () => {
useMap();
useMap();

return (
<div id="map" style={{ width: '100vw', height: '100vh' }}>
Expand Down

0 comments on commit 5dd6733

Please sign in to comment.