Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft: product visibility-#187419124 #8

Merged
merged 6 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 29 additions & 12 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,26 @@ module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.eslint.json",
tsconfigRootDir: __dirname
tsconfigRootDir: __dirname,
},
plugins: ["react-refresh"],
rules: {
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-shadow": "off",
"no-unsafe-optional-chaining": "off",
"react/no-unused-prop-types": "off",
"@typescript-eslint/no-use-before-define": "off",
"react-hooks/rules-of-hooks": "off",
"@typescript-eslint/no-explicit-any": "off",
"sx-a11y/control-has-associated-label": "off",
"no-nested-ternary": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"arrow-spacing": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/button-has-type": "off",
Expand All @@ -42,7 +55,18 @@ module.exports = {
],
"no-console": "off",
"no-undef": "off",
"@typescript-eslint/no-unused-vars": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"react/button-has-type": "off",
"react/no-array-index-key": "off",
"no-promise-executor-return": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/no-static-element-interactions":"off",
"max-len": "off",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/semi": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-unsafe-optional-chaining": "off",
"react/no-unescaped-entities": "off",
'@typescript-eslint/no-explicit-any': 0,
"react-refresh/only-export-components": [
Expand All @@ -66,16 +90,9 @@ module.exports = {
},
],
"@typescript-eslint/comma-dangle": ["warn", "always-multiline"],
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: [
"vite.config.ts",
"postcss.config.js",
"tailwind.config.js",
],
},
],
"jsx-a11y/label-has-associated-control": "off",
"@typescript-eslint/no-unused-expressions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"import/extensions": ["off"],
},
settings: {
Expand All @@ -85,4 +102,4 @@ module.exports = {
},
},
},
};
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ dist-ssr
# Environment variables
.env
coverage

package-lock.json
7 changes: 4 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default {
"^.+\\.tsx?$": "ts-jest",
},
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)$': '<rootDir>/src/__test__/__mock__/fileMock.ts',
'\\.(css|less)$': 'identity-obj-proxy',
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)$":
"<rootDir>/src/__test__/__mock__/fileMock.ts",
"\\.(css|less)$": "identity-obj-proxy",
},
};
};
Loading
Loading