dockerfile/examples/standardnotes/official-src/server-main/.eslintrc

56 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-03-15 14:52:38 +08:00
{
"root": true,
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false,
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-explicit-any": ["error", { "ignoreRestArgs": true }],
"@typescript-eslint/no-floating-promises": ["error"],
"block-scoped-var": "error",
"comma-dangle": ["error", "always-multiline"],
"curly": ["error", "all"],
"no-confusing-arrow": "error",
"no-inline-comments": "warn",
"no-invalid-this": "error",
"no-return-assign": "warn",
"no-constructor-return": "error",
"no-duplicate-imports": "error",
"no-self-compare": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-unmodified-loop-condition": "error",
"no-unused-private-class-members": "error",
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "never"],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"semi": false
},
{
"usePrettierrc": false
}
]
}
}