-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.cjs
40 lines (40 loc) · 1.34 KB
/
.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
/**
* Copyright (c) 2025 Bytedance, Inc. and its affiliates.
* SPDX-License-Identifier: Apache-2.0
*/
module.exports = {
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'@electron-toolkit/eslint-config-ts/recommended',
'@electron-toolkit/eslint-config-prettier',
],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'react/display-name': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
camelcase: 'off',
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
'react/react-in-jsx-scope': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-filename-extension': 'off',
'import/extensions': 'off',
'react/require-default-props': 'off',
'import/no-unresolved': 'off',
'import/no-import-module-exports': 'off',
'no-shadow': 'off',
'react/function-component-definition': 'off',
'react/jsx-props-no-spreading': 'off',
'@typescript-eslint/no-shadow': 'off',
'class-methods-use-this': 'off',
'import/order': 'off',
'no-unused-vars': 'off',
'import/prefer-default-export': 'off',
'no-restricted-syntax': 'off',
'no-case-declarations': 'off',
'no-await-in-loop': 'off',
},
};