Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
fix(client): Fixes and removes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eluciano11 committed Jan 15, 2024
1 parent 670dd82 commit 5892331
Show file tree
Hide file tree
Showing 7 changed files with 1,254 additions and 162 deletions.
57 changes: 0 additions & 57 deletions .eslintrc.js

This file was deleted.

54 changes: 54 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"node": true,
"browser": true,
"es6": true
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"import",
"jsx-a11y"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:jsx-a11y/strict",
"plugin:cypress/recommended",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features
"sourceType": "module" // Allows for the use of imports
},
"rules": {
"react/prop-types": "off", // Disable prop-types as we use TypeScript for type checking
"@typescript-eslint/explicit-function-return-type": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/react-in-jsx-scope": "off"
},
"overrides": [
// Override some TypeScript rules just for .js files
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off" //
}
}
]
}
12 changes: 0 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,3 @@ jobs:

- name: Tests
run: npm test

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main

- name: Install
run: npm ci

- name: Lint
run: npm run lint
15 changes: 0 additions & 15 deletions cypress/.eslintrc.js

This file was deleted.

14 changes: 14 additions & 0 deletions cypress/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"root": true,
"parser": "@typescript-eslint/parser", // Specifies the ESLint parser
"env": {
"cypress/globals": true
},
"plugins": ["@typescript-eslint", "cypress"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended",
"prettier"
]
}
Loading

0 comments on commit 5892331

Please sign in to comment.