generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add msw alternative for mocking (#169)
fix: upgrade node to v18 fix: update yarn to v4 feat: add a GraaspDevTools component feat: transform Contexts from HOC to components for nesting
- Loading branch information
Showing
82 changed files
with
11,330 additions
and
16,862 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ | |
dist/* | ||
# data definition files | ||
**/*.d.ts | ||
# jest config | ||
jest.config.ts | ||
coverage/* | ||
commitlint.config.js |
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 |
---|---|---|
@@ -1,29 +1,127 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"airbnb", | ||
"airbnb-typescript", | ||
"plugin:import/typescript", // this is needed because airbnb uses eslint-plugin-import | ||
"prettier", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"plugins": ["@typescript-eslint", "prettier", "react-hooks"], | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"mocha": true, | ||
"jest": true | ||
}, | ||
"globals": { | ||
"cy": true, | ||
"Cypress": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"project": "./tsconfig.eslint.json", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"semi": [ | ||
"react/prop-types": "off", | ||
"react/no-array-index-key": "off", | ||
"react/jsx-props-no-spreading": "off", | ||
"react/destructuring-assignment": "off", | ||
"react/require-default-props": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"import/no-import-module-exports": "off", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
"always" | ||
{ | ||
"devDependencies": true | ||
} | ||
], | ||
"quotes": [ | ||
"no-console": ["warn", { "allow": ["warn", "error", "debug", "info"] }], | ||
"import/prefer-default-export": "off", | ||
"prettier/prettier": "error", | ||
"import/extensions": [ | ||
"error", | ||
"single" | ||
"ignorePackages", | ||
{ | ||
"ts": "never", | ||
"js": "never", | ||
"tsx": "never" | ||
} | ||
], | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"error", | ||
{ | ||
"allowExpressions": true, | ||
"allowHigherOrderFunctions": true, | ||
"allowTypedFunctionExpressions": true | ||
} | ||
], | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-explicit-any": 1, | ||
"@typescript-eslint/no-inferrable-types": [ | ||
"@typescript-eslint/no-var-requires": "off", | ||
"global-require": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"comma-dangle": "off", | ||
"@typescript-eslint/comma-dangle": "off", | ||
"react/jsx-one-expression-per-line": "off", | ||
"react/jsx-filename-extension": [ | ||
"warn", | ||
{ | ||
"ignoreParameters": true | ||
"extensions": [".tsx"] | ||
} | ||
], | ||
"react/function-component-definition": [ | ||
2, | ||
{ | ||
"namedComponents": "arrow-function" | ||
} | ||
], | ||
"@typescript-eslint/no-unused-vars": "warn" | ||
} | ||
// eslint rule reports false error | ||
"no-shadow": "off", | ||
"@typescript-eslint/no-shadow": ["error"], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_", | ||
"caughtErrorsIgnorePattern": "^_" | ||
} | ||
] | ||
}, | ||
"settings": { | ||
// "import/extensions": [".js", ".jsx", ".ts", ".tsx"], | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts", ".tsx"] | ||
}, | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true | ||
}, | ||
"node": { | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"] | ||
} | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
// enable the rule specifically for TypeScript files | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"off" | ||
// { | ||
// "allowExpressions": true, | ||
// "allowHigherOrderFunctions": true, | ||
// "allowTypedFunctionExpressions": true | ||
// } | ||
] | ||
} | ||
} | ||
] | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
checksumBehavior: update | ||
|
||
compressionLevel: mixed | ||
|
||
defaultSemverRangePrefix: "" | ||
|
||
nodeLinker: node-modules | ||
enableGlobalCache: false | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: "@yarnpkg/plugin-interactive-tools" | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.0.1.cjs |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.