mirror of
https://github.com/acarl005/toerings.git
synced 2026-02-06 02:36:51 +00:00
54 lines
1.4 KiB
JavaScript
54 lines
1.4 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:import/recommended",
|
|
"prettier"
|
|
],
|
|
plugins: ["svelte3", "@typescript-eslint"],
|
|
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
|
|
settings: {
|
|
"svelte3/typescript": () => require("typescript")
|
|
},
|
|
parserOptions: {
|
|
sourceType: "module",
|
|
ecmaVersion: 2022
|
|
},
|
|
env: {
|
|
browser: true,
|
|
es2017: true,
|
|
node: true
|
|
},
|
|
globals: {
|
|
Data: true,
|
|
SummaryData: true,
|
|
CPUData: true,
|
|
MemData: true,
|
|
NetData: true,
|
|
DiskData: true,
|
|
TempData: true,
|
|
IOData: true,
|
|
BatteryData: true,
|
|
Process: true
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/ban-ts-comment": "off",
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
camelcase: ["error", { properties: "never", ignoreDestructuring: true }],
|
|
eqeqeq: "error",
|
|
"func-names": "error",
|
|
"import/order": "error",
|
|
"import/no-unresolved": "off",
|
|
"no-unused-vars": ["error", { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }],
|
|
"no-var": "error",
|
|
"prefer-arrow-callback": "error",
|
|
"prefer-const": "off",
|
|
"require-await": "error"
|
|
}
|
|
}
|