Skip to content

Commit

Permalink
Merge pull request #30 from Lab-Lab-Lab/main
Browse files Browse the repository at this point in the history
Use standard formatting to cleanup source code. use eslint
  • Loading branch information
hcientist authored Aug 8, 2024
2 parents d4d10e5 + 4ea0665 commit c95abea
Show file tree
Hide file tree
Showing 69 changed files with 2,298 additions and 4,785 deletions.
89 changes: 50 additions & 39 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,55 @@
{
"env": {
"browser": true,
"es2021": true
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"prettier"
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"eslint-plugin-prettier"
],
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
"no-console": "off",
"no-unused-vars": "off",
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"indent": [
"off",
0
],
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"no-console": "off",
"no-unused-vars": "off",
"react/react-in-jsx-scope": "off",
"indent": [
"warn",
2
],
"react/prop-types": "off",
"default-param-last": "off",
"default-case": "off",
"no-case-declarations": "off",
"jsx-a11y/anchor-is-valid": "off"
}
"react/prop-types": "off",
"default-param-last": "off",
"default-case": "off",
"no-case-declarations": "off",
"jsx-a11y/anchor-is-valid": "off",
"prettier/prettier": [
"error",
{
"singleQuote": true,
"tabWidth": 2,
"semi": true,
"endOfLine": "lf"
}
]
}
}
9 changes: 3 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,21 @@ on:

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
clean: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: pm2 reload next-js
env:
CI: true
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" },
"[javascriptreact]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" },
"[typescript]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" },
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true
Expand Down
Loading

0 comments on commit c95abea

Please sign in to comment.