Skip to content

Commit

Permalink
feat: strict eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Sep 21, 2023
1 parent 0e7e0db commit c50d439
Show file tree
Hide file tree
Showing 58 changed files with 1,078 additions and 402 deletions.
43 changes: 43 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0

module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/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: {
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",
},
}
6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

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 c50d439

Please sign in to comment.