Skip to content

Commit

Permalink
Merge pull request #8 from atlp-rwanda/ft-product-display-##187419124
Browse files Browse the repository at this point in the history
ft: product visibility-#187419124
  • Loading branch information
teerenzo authored and soleil00 committed Jul 4, 2024
2 parents 4a4d5f0 + b01e7f7 commit e6cf212
Show file tree
Hide file tree
Showing 54 changed files with 2,867 additions and 12,959 deletions.
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/prop-types": "off",
Expand All @@ -67,16 +91,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 @@ -86,4 +103,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

0 comments on commit e6cf212

Please sign in to comment.