-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.cjs
48 lines (48 loc) · 1019 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
43
44
45
46
47
48
module.exports = {
env: {
browser: true,
es2021: true,
},
settings: {
jsdoc: {
tagNamePreference: {
return: 'returns',
internal: 'internal',
},
},
react: {
version: 'detect',
}
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
root: true,
ignorePatterns: [
"src/php-wasm/__tests__/*.ts",
"src/wasm/build-assets/*.js",
"src/wasm-assets/*.js"
],
plugins: ['react', '@typescript-eslint'],
rules: {
'no-inner-declarations': 0,
'no-use-before-define': 'off',
'react/prop-types': 0,
'no-console': 0,
'no-empty': 0,
'no-async-promise-executor': 0,
'no-constant-condition': 0,
'no-nested-ternary': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-non-null-assertion': 0,
},
};