Skip to content

Commit

Permalink
fix: remove jest mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Sep 12, 2024
1 parent a827449 commit e90653b
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 3 deletions.
109 changes: 109 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true,
},
},
"extends": [
"airbnb",
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
],
"plugins": [
"import",
"jsx-a11y",
"react",
"react-hooks",
"@typescript-eslint",
],
"ignorePatterns": ["dist"],
"env": {
"browser": true,
"node": true,
"mocha": true,
},
"globals": {
"cy": true,
"Cypress": true,
},
"settings": {
"react": {
"version": "17",
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
},
},
},
"rules": {
"import/export": "off",
"no-underscore-dangle": [
"error",
{
"allow": ["_id", "__REDUX_DEVTOOLS_EXTENSION__"],
},
],
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"],
},
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".tsx", ".ts"],
},
],
"import/no-named-as-default": 0,
"react/static-property-placement": [
"error",
"property assignment",
{
"childContextTypes": "static public field",
"contextTypes": "static public field",
"contextType": "static public field",
"defaultProps": "static public field",
"displayName": "static public field",
"propTypes": "static public field",
},
],
"react/state-in-constructor": ["error", "never"],
"no-console": [1, { "allow": ["error", "debug"] }],
"no-restricted-syntax": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
},
],
"import/no-extraneous-dependencies": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
},
],
"import/prefer-default-export": 0,
},
}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ yarn-error.log*

# cache
.eslintcache
.jest-cache

# testing and coverage
.jest-cache
Expand All @@ -47,5 +46,3 @@ example/src/react-app-env.d.ts
!.yarn/releases
!.yarn/sdks
!.yarn/versions

package-lock.json

0 comments on commit e90653b

Please sign in to comment.