mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 17:59:50 +02:00
59 lines
1.7 KiB
JavaScript
59 lines
1.7 KiB
JavaScript
require("@rushstack/eslint-patch/modern-module-resolution");
|
|
|
|
module.exports = {
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
],
|
|
plugins: ["@typescript-eslint", "@yume-chan/eslint-plugin-import"],
|
|
rules: {
|
|
"no-constant-condition": ["error", { checkLoops: false }],
|
|
"no-plusplus": "error",
|
|
"no-multiple-empty-lines": [
|
|
"error",
|
|
{
|
|
max: 1,
|
|
maxEOF: 1,
|
|
maxBOF: 0,
|
|
},
|
|
],
|
|
|
|
"@yume-chan/import/consistent-type-specifier-style": [
|
|
"error",
|
|
"prefer-inline",
|
|
],
|
|
"@yume-chan/import/no-cycle": "error",
|
|
"@yume-chan/import/no-duplicates": "error",
|
|
"@yume-chan/import/order": [
|
|
"error",
|
|
{
|
|
groups: [
|
|
"builtin",
|
|
"external",
|
|
"internal",
|
|
"parent",
|
|
"sibling",
|
|
"index",
|
|
],
|
|
"newlines-between": "always",
|
|
alphabetize: {
|
|
order: "asc",
|
|
},
|
|
},
|
|
],
|
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/array-type": "error",
|
|
"@typescript-eslint/consistent-type-definitions": "error",
|
|
"@typescript-eslint/no-this-alias": "error",
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"error",
|
|
{
|
|
prefer: "type-imports",
|
|
disallowTypeAnnotations: true,
|
|
fixStyle: "inline-type-imports",
|
|
},
|
|
],
|
|
},
|
|
};
|