Skip to content

Commit

Permalink
feat: strict eslint (#148)
Browse files Browse the repository at this point in the history
* feat: strict eslint

* style: format

* chore: eslint ignore specific files

* chore: remove uneeded type

* fix: eslint errors in storybook stories

* style: format

* fix: oidc button

* test: node error message

* chore: update snapshots

* chore: restore express changes

* chore: update snapshots

* chore: relax snapshot comparison

* test: consent card

* test: translation template strings

* chore: cleanup

* test: update consent card snapshots

* chore: normalize browser css and increse playwright workers

* chore: remove flaky snapshot

* chore: reduce workers

* chore: patch translation test

Co-authored-by: Jonas Hungershausen <[email protected]>

* test: error message formatting

* fix: export portuguese

---------

Co-authored-by: Jonas Hungershausen <[email protected]>
  • Loading branch information
Benehiko and jonas-jonas authored Sep 29, 2023
1 parent 3b7ef61 commit 8ffb907
Show file tree
Hide file tree
Showing 90 changed files with 4,037 additions and 2,923 deletions.
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
dist
dist
src/markup-components/component-wrapper.tsx
src/markup-components/components.ts
src/markup-components/express.ts
15 changes: 13 additions & 2 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,34 @@ module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:react/jsx-runtime",
"plugin:storybook/recommended",
"plugin:playwright/recommended",
],
overrides: [],
parser: "@typescript-eslint/parser",
ignorePatterns: ["src/assets/*.js"],
parserOptions: {
tsconfigRootDir: "./",
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
ecmaVersion: 2021,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
settings: {
playwright: {
additionalAssertFunctionNames: [],
},
},
root: true,
plugins: ["react", "@typescript-eslint", "eslint-plugin-tsdoc", "formatjs"],
rules: {
"tsdoc/syntax": "warn",
"formatjs/no-offset": "error",
"@typescript-eslint/no-floating-promises": "error",
},
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dist
dist-ssr
*.local
.bin/
tests-dist/

# Editor directories and files
.vscode/*
Expand All @@ -37,4 +38,4 @@ pnpm-lock.yaml
/playwright/.cache/
/test-results/
/playwright-report/
/playwright/.cache/
/playwright/.cache/
Loading

0 comments on commit 8ffb907

Please sign in to comment.