generated from RENCI/react-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/RENCI/APSViz-UI-V3 into fea…
…ture/drawer # Conflicts: # src/app.js # src/index.js
- Loading branch information
Showing
14 changed files
with
344 additions
and
175 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 |
---|---|---|
|
@@ -5,20 +5,21 @@ | |
|
||
name: ES Lint the repo | ||
|
||
# trigger event is on a pull request | ||
# trigger event is on a push or a pull request | ||
on: | ||
workflow_dispatch: | ||
#push | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: mrdivyansh/[email protected] | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
#repo-token: ${{secrets.GITHUB_TOKEN}} | ||
eslint-rc: .eslintrc.js | ||
execute-on-files: | ||
- ./packages | ||
node-version: 20 | ||
- run: npm ci | ||
- run: npm run lint |
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,38 @@ | ||
import globals from "globals"; | ||
import react from "eslint-plugin-react"; | ||
|
||
// this bit fixes the collision with the React definition of react | ||
react.configs.recommended.plugins = { react }; | ||
react.configs.recommended.languageOptions = { parserOptions: react.configs.recommended.parserOptions }; | ||
delete react.configs.recommended.parserOptions; | ||
|
||
// define the eslint configuration | ||
export default [ | ||
react.configs.recommended, | ||
{ | ||
plugins: { react }, | ||
files: ["src/**/*.js*"], | ||
ignores: ["**/*.config.js", "dist/**/*", "build/**/*"], | ||
settings: { react: {version: "18.2.0"} }, | ||
languageOptions: { | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}}, | ||
globals: { | ||
...globals.node, | ||
...globals.browser | ||
} | ||
}, | ||
rules: { | ||
"no-unused-vars": "warn", | ||
"no-undef": "warn", | ||
"semi": "warn", | ||
"prefer-const": "warn", | ||
"no-dupe-args": "warn", | ||
"no-dupe-keys": "warn", | ||
"react/display-name": "off" | ||
}, | ||
linterOptions: { reportUnusedDisableDirectives: "error" } | ||
} | ||
]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,12 +1,10 @@ | ||
import { Fragment } from 'react' | ||
import { Map } from '@components/map' | ||
import { Sidebar } from '@components/sidebar' | ||
import React, { Fragment } from 'react'; | ||
import { Map } from '@components/map'; | ||
|
||
export const App = () => { | ||
return ( | ||
<Fragment> | ||
<Map/> | ||
<Sidebar /> | ||
<Map /> | ||
</Fragment> | ||
) | ||
} | ||
); | ||
}; |
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
Oops, something went wrong.