diff --git a/.eslintrc.js b/.eslintrc.js index 2e115fb..b8681cb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -23,12 +23,12 @@ module.exports = { version: "detect", }, }, - ignorePatterns: ["node_modules/"], + ignorePatterns: ["node_modules/", "cypress/"], // Cherry of the Cake rules: { "prettier/prettier": 0, "nonblock-statement-body-position": "off", - "no-console": "error", + // "no-console": "error", "react/no-unknown-property": ["error", { ignore: ["jsx", "global"] }], }, }; diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..4edac20 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,21 @@ +name: "CI - Continuous Integration" + +on: + pull_request: + types: [opened, synchronize] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + ## [Common_CI_Steps] + - uses: actions/checkout@v3 + ## =========================== + - name: "Debug" + run: | + ls -la + echo "Second command line!" + - name: "Install Dependencies" + run: "npm install " + - name: "Lint" + run: "npm run lint" diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 8142f30..ea9a615 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,7 @@ { "recommendations": [ "EditorConfig.EditorConfig", - "dbaeumer.vscode-eslint" + "dbaeumer.vscode-eslint", + "github.vscode-github-actions" ] } diff --git a/cypress.config.ts b/cypress.config.ts index 17161e3..e1c5581 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from "cypress"; export default defineConfig({ e2e: { - setupNodeEvents(on, config) { + setupNodeEvents() { // implement node event listeners here }, },