-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ introduced some basic feature ocnfigs and tailwind, addded so…
…me things related to session and tenants to saas apps
- Loading branch information
1 parent
9dbb1b9
commit 2d11bf5
Showing
212 changed files
with
21,378 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
import globals from "globals"; | ||
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat"; | ||
import react from "eslint-plugin-react"; | ||
import reactHooks from "eslint-plugin-react-hooks"; | ||
import jsxA11Y from "eslint-plugin-jsx-a11y"; | ||
import _import from "eslint-plugin-import"; | ||
import testingLibrary from "eslint-plugin-testing-library"; | ||
import jestDom from "eslint-plugin-jest-dom"; | ||
import noRelativeImportPaths from "eslint-plugin-no-relative-import-paths"; | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [{ | ||
ignores: ["node_modules/*"], | ||
}, ...compat.extends("eslint:recommended"), { | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
process: true, | ||
}, | ||
|
||
ecmaVersion: 8, | ||
sourceType: "module", | ||
}, | ||
}, ...fixupConfigRules(compat.extends( | ||
"eslint:recommended", | ||
"plugin:import/warnings", | ||
"plugin:import/errors", | ||
"plugin:import/typescript", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:react/recommended", | ||
"plugin:testing-library/react", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:jest-dom/recommended", | ||
)).map(config => ({ | ||
...config, | ||
files: ["**/*.ts", "**/*.cjs", "**/*.tsx"], | ||
})), { | ||
files: ["**/*.ts", "**/*.cjs", "**/*.tsx"], | ||
|
||
plugins: { | ||
react: fixupPluginRules(react), | ||
"react-hooks": fixupPluginRules(reactHooks), | ||
"jsx-a11y": fixupPluginRules(jsxA11Y), | ||
import: fixupPluginRules(_import), | ||
"testing-library": fixupPluginRules(testingLibrary), | ||
"jest-dom": fixupPluginRules(jestDom), | ||
"no-relative-import-paths": noRelativeImportPaths, | ||
"@typescript-eslint": fixupPluginRules(typescriptEslint), | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
|
||
parser: tsParser, | ||
}, | ||
|
||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
|
||
"import/resolver": { | ||
typescript: {}, | ||
}, | ||
}, | ||
|
||
rules: { | ||
"eol-last": ["error", "always"], | ||
|
||
"no-relative-import-paths/no-relative-import-paths": ["error", { | ||
allowSameFolder: true, | ||
rootDir: "src", | ||
}], | ||
|
||
"jsx-a11y/label-has-associated-control": "off", | ||
|
||
"quote-props": ["error", "as-needed", { | ||
keywords: false, | ||
unnecessary: true, | ||
}], | ||
|
||
quotes: ["error", "single", { | ||
avoidEscape: true, | ||
}], | ||
|
||
"react/jsx-equals-spacing": ["error", "never"], | ||
|
||
"react/jsx-tag-spacing": ["error", { | ||
closingSlash: "never", | ||
beforeSelfClosing: "never", | ||
afterOpening: "never", | ||
beforeClosing: "never", | ||
}], | ||
|
||
"space-before-function-paren": ["error", "never"], | ||
|
||
"react/jsx-curly-spacing": ["error", { | ||
when: "never", | ||
children: true, | ||
}], | ||
"array-bracket-spacing": ["error", "always"], | ||
"no-multi-spaces": "error", | ||
"react/jsx-closing-bracket-location": ["error", "tag-aligned"], | ||
"react/jsx-first-prop-new-line": ["error", "multiline"], | ||
"react/jsx-indent": ["error", 2], | ||
"object-curly-spacing": ["error", "always"], | ||
"space-before-blocks": "error", | ||
"no-trailing-spaces": "error", | ||
indent: ["error", 2], | ||
"id-length": "off", | ||
|
||
"no-multiple-empty-lines": ["error", { | ||
max: 1, | ||
}], | ||
|
||
"@typescript-eslint/no-explicit-any": "error", | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"jsx-a11y/no-noninteractive-element-interactions": "off", | ||
semi: ["error", "always"], | ||
"jsx-quotes": ["error", "prefer-double"], | ||
"comma-dangle": ["error", "always-multiline"], | ||
"testing-library/no-node-access": "off", | ||
"testing-library/no-container": "off", | ||
"testing-library/prefer-screen-queries": "off", | ||
"no-empty-pattern": "off", | ||
|
||
"no-restricted-imports": ["error", { | ||
patterns: ["@/features/*/*"], | ||
}], | ||
|
||
"linebreak-style": "off", | ||
"react/prop-types": "off", | ||
|
||
"import/order": ["error", { | ||
groups: [], | ||
"newlines-between": "always", | ||
|
||
alphabetize: { | ||
order: "asc", | ||
caseInsensitive: true, | ||
}, | ||
}], | ||
|
||
"import/default": "off", | ||
"import/no-named-as-default-member": "off", | ||
"import/no-named-as-default": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"jsx-a11y/anchor-is-valid": "off", | ||
"@typescript-eslint/no-unused-vars": ["error"], | ||
"@typescript-eslint/explicit-function-return-type": ["off"], | ||
"@typescript-eslint/explicit-module-boundary-types": ["off"], | ||
"@typescript-eslint/no-empty-function": ["off"], | ||
"@typescript-eslint/no-var-requires": "off", | ||
}, | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_API_URL=http://127.0.0.1:8000/api/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.