Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
212 changes: 106 additions & 106 deletions Frontend/.eslintrc.json → Frontend/Front Echipa Bogdan/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,107 +1,107 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["**/icons/*.tsx", "**/icons/*.ts"],
"rules": {
"react/require-default-props": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"import/no-duplicates": "off",
"import/no-unresolved": "off",
"import/extensions": ["error", "ignorePackages", {
"js": "never",
"ts": "never",
"jsx": "never",
"tsx": "never",
"react": "never"
}],
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize": {
"caseInsensitive": true
},
"pathGroups": [
{
"pattern": "@/**",
"group": "external",
"position": "after"
},
{
"pattern": "./*.css",
"group": "index",
"position": "after"
}
]
}
],
"import/named": "error",
"prettier/prettier": "off",
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"react/state-in-constructor": "off",
"react/function-component-definition": "off",
"react/prop-types": "off",
"react/no-access-state-in-setstate": "error",
"react/no-danger": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-will-update-set-state": "error",
"react/no-redundant-should-component-update": "error",
"react/no-this-in-sfc": "error",
"react/no-typos": "error",
"react/no-unused-state": "error",
"react/jsx-no-bind": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"react/jsx-props-no-spreading": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-console": ["error", { "allow": ["error"] }],
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-underscore-dangle": ["error"],
"func-names": "off",
"object-shorthand": "off",
"no-var": "error",
"max-len": ["warn", {"code": 150}],
"jsx-a11y/label-has-associated-control": ["error", {
"required": {
"some": ["nesting", "id"]
}
}]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["."],
"extensions": [".ts", ".tsx"]
}
}
},
"globals": {
"React": true,
"JSX": true
}
}
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["**/icons/*.tsx", "**/icons/*.ts"],
"rules": {
"react/require-default-props": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"import/no-duplicates": "off",
"import/no-unresolved": "off",
"import/extensions": ["error", "ignorePackages", {
"js": "never",
"ts": "never",
"jsx": "never",
"tsx": "never",
"react": "never"
}],
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize": {
"caseInsensitive": true
},
"pathGroups": [
{
"pattern": "@/**",
"group": "external",
"position": "after"
},
{
"pattern": "./*.css",
"group": "index",
"position": "after"
}
]
}
],
"import/named": "error",
"prettier/prettier": "off",
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"react/state-in-constructor": "off",
"react/function-component-definition": "off",
"react/prop-types": "off",
"react/no-access-state-in-setstate": "error",
"react/no-danger": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-will-update-set-state": "error",
"react/no-redundant-should-component-update": "error",
"react/no-this-in-sfc": "error",
"react/no-typos": "error",
"react/no-unused-state": "error",
"react/jsx-no-bind": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"react/jsx-props-no-spreading": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-console": ["error", { "allow": ["error"] }],
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-underscore-dangle": ["error"],
"func-names": "off",
"object-shorthand": "off",
"no-var": "error",
"max-len": ["warn", {"code": 150}],
"jsx-a11y/label-has-associated-control": ["error", {
"required": {
"some": ["nesting", "id"]
}
}]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["."],
"extensions": [".ts", ".tsx"]
}
}
},
"globals": {
"React": true,
"JSX": true
}
}

Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Preflight Checks
on: [pull_request] # we want the workflow to trigger on commits to PRs only
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '17.7.2'
- name: Cache NPM # leverage npm cache on repeated workflow runs if package.json didn't change
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: yarn install
- name: Run linter
name: Preflight Checks

on: [pull_request] # we want the workflow to trigger on commits to PRs only

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '17.7.2'

- name: Cache NPM # leverage npm cache on repeated workflow runs if package.json didn't change
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install Dependencies
run: yarn install

- name: Run linter
run: npm run lint
46 changes: 23 additions & 23 deletions Frontend/.gitignore → Frontend/Front Echipa Bogdan/.gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading