Team-Isaac-Polito / isaac-website

Team Isaac website
0 stars 0 forks source link

New stricter eslint configuration #15

Closed marc0777 closed 1 year ago

marc0777 commented 1 year ago

The current ESlint configuration doesn't cover many aspects of the code, and is based on rules meant for create-react-app.

This PR upgrades the setup with rules for React, React Hooks, React Fast Refresh and a better integration with prettier. All warning that were detected by this change in configuration have also been fixed, to avoid adding errors in the dev branch.

As usual, let me know what you think!

github-actions[bot] commented 1 year ago

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Manifest Files

package-lock.json
  • eslint-plugin-prettier@4.2.1
  • eslint-plugin-react-refresh@0.4.1
  • fast-diff@1.3.0
  • prettier-linter-helpers@1.0.0
  • @babel/eslint-parser@7.22.5
  • @babel/helper-annotate-as-pure@7.22.5
  • @babel/helper-builder-binary-assignment-operator-visitor@7.22.5
  • @babel/helper-create-class-features-plugin@7.22.5
  • @babel/helper-create-regexp-features-plugin@7.22.5
  • @babel/helper-define-polyfill-provider@0.4.0
  • @babel/helper-member-expression-to-functions@7.22.5
  • @babel/helper-optimise-call-expression@7.22.5
  • @babel/helper-remap-async-to-generator@7.22.5
  • @babel/helper-replace-supers@7.22.5
  • @babel/helper-skip-transparent-expression-wrappers@7.22.5
  • @babel/helper-wrap-function@7.22.5
  • @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.22.5
  • @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.22.5
  • @babel/plugin-proposal-class-properties@7.18.6
  • @babel/plugin-proposal-decorators@7.22.5
  • @babel/plugin-proposal-nullish-coalescing-operator@7.18.6
  • @babel/plugin-proposal-numeric-separator@7.18.6
  • @babel/plugin-proposal-optional-chaining@7.21.0
  • @babel/plugin-proposal-private-methods@7.18.6
  • @babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2
  • @babel/plugin-proposal-unicode-property-regex@7.18.6
  • @babel/plugin-syntax-async-generators@7.8.4
  • @babel/plugin-syntax-class-properties@7.12.13
  • @babel/plugin-syntax-class-static-block@7.14.5
  • @babel/plugin-syntax-decorators@7.22.5
  • @babel/plugin-syntax-dynamic-import@7.8.3
  • @babel/plugin-syntax-export-namespace-from@7.8.3
  • @babel/plugin-syntax-flow@7.22.5
  • @babel/plugin-syntax-import-assertions@7.22.5
  • @babel/plugin-syntax-import-attributes@7.22.5
  • @babel/plugin-syntax-import-meta@7.10.4
  • @babel/plugin-syntax-json-strings@7.8.3
  • @babel/plugin-syntax-jsx@7.22.5
  • @babel/plugin-syntax-logical-assignment-operators@7.10.4
  • @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
  • @babel/plugin-syntax-numeric-separator@7.10.4
  • @babel/plugin-syntax-object-rest-spread@7.8.3
  • @babel/plugin-syntax-optional-catch-binding@7.8.3
  • @babel/plugin-syntax-optional-chaining@7.8.3
  • @babel/plugin-syntax-private-property-in-object@7.14.5
  • @babel/plugin-syntax-top-level-await@7.14.5
  • @babel/plugin-syntax-typescript@7.22.5
  • @babel/plugin-syntax-unicode-sets-regex@7.18.6
  • @babel/plugin-transform-arrow-functions@7.22.5
  • @babel/plugin-transform-async-generator-functions@7.22.5
  • @babel/plugin-transform-async-to-generator@7.22.5
  • @babel/plugin-transform-block-scoped-functions@7.22.5
  • @babel/plugin-transform-block-scoping@7.22.5
  • @babel/plugin-transform-class-properties@7.22.5
  • @babel/plugin-transform-class-static-block@7.22.5
  • @babel/plugin-transform-classes@7.22.5
  • @babel/plugin-transform-computed-properties@7.22.5
  • @babel/plugin-transform-destructuring@7.22.5
  • @babel/plugin-transform-dotall-regex@7.22.5
  • @babel/plugin-transform-duplicate-keys@7.22.5
  • @babel/plugin-transform-dynamic-import@7.22.5
  • @babel/plugin-transform-exponentiation-operator@7.22.5
  • @babel/plugin-transform-export-namespace-from@7.22.5
  • @babel/plugin-transform-flow-strip-types@7.22.5
  • @babel/plugin-transform-for-of@7.22.5
  • @babel/plugin-transform-function-name@7.22.5
  • @babel/plugin-transform-json-strings@7.22.5
  • @babel/plugin-transform-literals@7.22.5
  • @babel/plugin-transform-logical-assignment-operators@7.22.5
  • @babel/plugin-transform-member-expression-literals@7.22.5
  • @babel/plugin-transform-modules-amd@7.22.5
  • @babel/plugin-transform-modules-commonjs@7.22.5
  • @babel/plugin-transform-modules-systemjs@7.22.5
  • @babel/plugin-transform-modules-umd@7.22.5
  • @babel/plugin-transform-named-capturing-groups-regex@7.22.5
  • @babel/plugin-transform-new-target@7.22.5
  • @babel/plugin-transform-nullish-coalescing-operator@7.22.5
  • @babel/plugin-transform-numeric-separator@7.22.5
  • @babel/plugin-transform-object-rest-spread@7.22.5
  • @babel/plugin-transform-object-super@7.22.5
  • @babel/plugin-transform-optional-catch-binding@7.22.5
  • @babel/plugin-transform-optional-chaining@7.22.5
  • @babel/plugin-transform-parameters@7.22.5
  • @babel/plugin-transform-private-methods@7.22.5
  • @babel/plugin-transform-private-property-in-object@7.22.5
  • @babel/plugin-transform-property-literals@7.22.5
  • @babel/plugin-transform-react-display-name@7.22.5
  • @babel/plugin-transform-react-jsx@7.22.5
  • @babel/plugin-transform-react-jsx-development@7.22.5
  • @babel/plugin-transform-react-pure-annotations@7.22.5
  • @babel/plugin-transform-regenerator@7.22.5
  • @babel/plugin-transform-reserved-words@7.22.5
  • @babel/plugin-transform-runtime@7.22.5
  • @babel/plugin-transform-shorthand-properties@7.22.5
  • @babel/plugin-transform-spread@7.22.5
  • @babel/plugin-transform-sticky-regex@7.22.5
  • @babel/plugin-transform-template-literals@7.22.5
  • @babel/plugin-transform-typeof-symbol@7.22.5
  • @babel/plugin-transform-typescript@7.22.5
  • @babel/plugin-transform-unicode-escapes@7.22.5
  • @babel/plugin-transform-unicode-property-regex@7.22.5
  • @babel/plugin-transform-unicode-regex@7.22.5
  • @babel/plugin-transform-unicode-sets-regex@7.22.5
  • @babel/preset-env@7.22.5
  • @babel/preset-modules@0.1.5
  • @babel/preset-react@7.22.5
  • @babel/preset-typescript@7.22.5
  • @babel/regjsgen@0.8.0
  • @nicolo-ribaudo/eslint-scope-5-internals@5.1.1-1
  • @rushstack/eslint-patch@1.3.1
  • @types/json5@0.0.29
  • @typescript-eslint/experimental-utils@5.59.11
  • aria-query@5.2.1
  • array.prototype.flat@1.3.1
  • ast-types-flow@0.0.7
  • axe-core@4.7.2
  • axobject-query@3.2.1
  • babel-plugin-polyfill-corejs2@0.4.3
  • babel-plugin-polyfill-corejs3@0.8.1
  • babel-plugin-polyfill-regenerator@0.5.0
  • babel-plugin-transform-react-remove-prop-types@0.4.24
  • babel-preset-react-app@10.0.1
  • confusing-browser-globals@1.0.11
  • core-js-compat@3.31.0
  • damerau-levenshtein@1.0.8
  • debug@3.2.7
  • dequal@2.0.3
  • emoji-regex@9.2.2
  • eslint-config-react-app@7.0.1
  • eslint-import-resolver-node@0.3.7
  • eslint-module-utils@2.8.0
  • eslint-plugin-flowtype@8.0.3
  • eslint-plugin-import@2.27.5
  • eslint-plugin-jest@25.7.0
  • eslint-plugin-jsx-a11y@6.7.1
  • eslint-plugin-testing-library@5.11.0
  • eslint-visitor-keys@2.1.0
  • jsesc@0.5.0
  • json5@1.0.2
  • language-subtag-registry@0.3.22
  • language-tags@1.0.5
  • lodash@4.17.21
  • lodash.debounce@4.0.8
  • minimist@1.2.8
  • regenerate@1.4.2
  • regenerate-unicode-properties@10.1.0
  • regenerator-transform@0.15.1
  • regexpu-core@5.3.2
  • regjsparser@0.9.1
  • string-natural-compare@3.0.1
  • strip-bom@3.0.0
  • tsconfig-paths@3.14.2
  • unicode-canonical-property-names-ecmascript@2.0.0
  • unicode-match-property-ecmascript@2.0.0
  • unicode-match-property-value-ecmascript@2.1.0
  • unicode-property-aliases-ecmascript@2.1.0
package.json
  • @typescript-eslint/eslint-plugin@^5.59.11
  • @typescript-eslint/parser@^5.59.11
  • eslint-plugin-prettier@^4.2.1
  • eslint-plugin-react@^7.0.1
  • eslint-plugin-react-hooks@^4.6.0
  • eslint-plugin-react-refresh@^0.4.1
  • eslint-config-react-app@^7.0.1