forked from ory/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
42 lines (41 loc) · 1007 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 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: {
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",
},
}