2022-04-22 19:02:54 -04:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"env": {
|
|
|
|
"es2021": true,
|
|
|
|
"node": true,
|
|
|
|
"browser": false
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
2022-06-03 14:30:55 -04:00
|
|
|
"plugin:prettier/recommended",
|
|
|
|
"plugin:import/recommended",
|
|
|
|
"plugin:import/typescript"
|
2022-04-22 19:02:54 -04:00
|
|
|
],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
2022-06-03 14:30:55 -04:00
|
|
|
"plugins": ["@typescript-eslint", "import"],
|
2022-04-22 19:02:54 -04:00
|
|
|
"ignorePatterns": ["node_modules/**", "**/dist/**"],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
|
|
"@typescript-eslint/consistent-type-imports": "error",
|
2022-06-03 14:30:55 -04:00
|
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
|
|
"import/no-named-as-default": "off",
|
|
|
|
"prettier/prettier": "error",
|
|
|
|
"import/newline-after-import": ["error", { "count": 1 }],
|
|
|
|
"import/order": "error"
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"node": {
|
|
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
|
|
},
|
|
|
|
"typescript": {
|
|
|
|
"project": [
|
|
|
|
"packages/main/tsconfig.json",
|
|
|
|
"packages/preload/tsconfig.json"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2022-04-22 19:02:54 -04:00
|
|
|
}
|
|
|
|
}
|