返回 AiToEarn
.eslintrc.cjs
根目录 / project / aitoearn-electron / .eslintrc.cjs
1 module.exports = {
2 parser: '@typescript-eslint/parser',
3 parserOptions: {
4 project: 'tsconfig.json',
5 tsconfigRootDir: __dirname,
6 sourceType: 'module',
7 },
8 plugins: [
9 '@typescript-eslint/eslint-plugin',
10 'unused-imports',
11 "eslint-plugin-react"
12 ],
13 extends: [
14 'plugin:@typescript-eslint/recommended',
15 'plugin:prettier/recommended',
16 ],
17 root: true,
18 env: {
19 node: true,
20 jest: true,
21 },
22 ignorePatterns: ['.eslintrc.js'],
23 rules: {
24 '@typescript-eslint/interface-name-prefix': 'off',
25 '@typescript-eslint/explicit-function-return-type': 'off',
26 '@typescript-eslint/explicit-module-boundary-types': 'off',
27 '@typescript-eslint/no-explicit-any': 'off',
28 "unused-imports/no-unused-imports": "error",
29 "@typescript-eslint/no-empty-object-type": "off",
30 "@typescript-eslint/no-unused-vars": "warn",
31 "prettier/prettier": ["error", { "endOfLine": "auto" }],
32 "@typescript-eslint/ban-ts-comment": "off"
33 },
34 };
35
35 lines Plain Text