Skip to content

Commit

Permalink
Vite upgrade (#74)
Browse files Browse the repository at this point in the history
* initial

* fix material-ui imports

* remain fixes for imports for apollo

* quick change from material-tailwind -> mui

* coachme page -> mui

* fix material-tailwind backward compatibility

* temp fix for tests after vite upgrade
  • Loading branch information
mahmoudmoravej authored Apr 26, 2024
1 parent 331fdf9 commit 5daa95d
Show file tree
Hide file tree
Showing 62 changed files with 3,185 additions and 1,710 deletions.
File renamed without changes.
119 changes: 119 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
// NOTE!!!!
// THE FOLLOWING ARE FOR FLAT VERSION WHICH IS NOT WORKING.eslint.config.js
// WE IGNORE ESLINTING FOR NOW

// import * as graphqlESLint from "@graphql-eslint/eslint-plugin";
// import js from "@eslint/js";

// export default [
// {
// files: ["**/*.js"],
// rules: js.configs.recommended.rules,
// },
// {
// files: ["**/*.graphql"],
// plugins: {
// "@graphql-eslint": graphqlESLint,
// },
// languageOptions: {
// parser: graphqlESLint,
// },
// rules: {
// "@graphql-eslint/no-anonymous-operations": "error",
// "@graphql-eslint/no-duplicate-fields": "error",
// },
// },
// {
// ignores: ["build/*", "node_modules/*", "public/*"],
// },
// ];

/**
* This is intended to be a basic starting point for linting in your app.
* It relies on recommended configs out of the box for simplicity, but you can
* and should modify this configuration to best suit your team's needs.
*/

/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
commonjs: true,
es6: true,
},

// Base config
extends: ["eslint:recommended"],

overrides: [
// React
{
files: ["**/*.{js,jsx,ts,tsx}"],
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_" },
],
},
plugins: ["react", "jsx-a11y"],
extends: [
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
],
settings: {
react: {
version: "detect",
},
formComponents: ["Form"],
linkComponents: [
{ name: "Link", linkAttribute: "to" },
{ name: "NavLink", linkAttribute: "to" },
],
"import/resolver": {
typescript: {},
},
},
},

// Typescript
{
files: ["**/*.{ts,tsx}"],
plugins: ["@typescript-eslint", "import"],
parser: "@typescript-eslint/parser",
settings: {
"import/internal-regex": "^~/",
"import/resolver": {
node: {
extensions: [".ts", ".tsx"],
},
typescript: {
alwaysTryTypes: true,
},
},
},
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
],
},

// Node
{
files: [".eslintrc.cjs"],
env: {
node: true,
},
},
],
};
37 changes: 0 additions & 37 deletions .eslintrc.js

This file was deleted.

Loading

0 comments on commit 5daa95d

Please sign in to comment.