|
58 | 58 | "npm-run-all2": "^8.0.1", |
59 | 59 | "tsd": "^0.32.0", |
60 | 60 | "typescript": "~5.8.3", |
61 | | - "xo": "^1.0.0" |
| 61 | + "xo": "^1.0.5" |
62 | 62 | }, |
63 | | - "xo": [ |
64 | | - { |
65 | | - "rules": { |
66 | | - "@typescript-eslint/no-extraneous-class": "off", |
67 | | - "@typescript-eslint/ban-ts-comment": "off", |
68 | | - "@typescript-eslint/ban-types": "off", |
69 | | - "@typescript-eslint/naming-convention": "off", |
70 | | - "@typescript-eslint/no-redeclare": "off", |
71 | | - "@typescript-eslint/no-confusing-void-expression": "off", |
72 | | - "@typescript-eslint/no-unsafe-argument": "off", |
73 | | - "@typescript-eslint/no-restricted-types": "off", |
74 | | - "@typescript-eslint/no-empty-object-type": "off", |
75 | | - "@typescript-eslint/no-unsafe-function-type": "off", |
76 | | - "@typescript-eslint/no-deprecated": "off", |
77 | | - "@typescript-eslint/no-wrapper-object-types": "off", |
78 | | - "@typescript-eslint/consistent-indexed-object-style": "off", |
79 | | - "@stylistic/quote-props": "off", |
80 | | - "@stylistic/function-paren-newline": "off", |
81 | | - "@stylistic/object-curly-newline": "off", |
82 | | - "n/file-extension-in-import": "off", |
83 | | - "object-curly-newline": [ |
84 | | - "error", |
85 | | - { |
86 | | - "multiline": true, |
87 | | - "consistent": true |
88 | | - } |
89 | | - ], |
90 | | - "import-x/consistent-type-specifier-style": [ |
91 | | - "error", |
92 | | - "prefer-top-level" |
93 | | - ] |
94 | | - } |
95 | | - }, |
96 | | - { |
97 | | - "files": "source/**/*.d.ts", |
98 | | - "rules": { |
99 | | - "no-restricted-imports": [ |
100 | | - "error", |
101 | | - { |
102 | | - "paths": ["tsd", "expect-type"], |
103 | | - "patterns": [ |
104 | | - { |
105 | | - "group": ["*.js", "*.ts", "!*.d.ts"], |
106 | | - "message": "Use `.d.ts` extension." |
107 | | - } |
108 | | - ] |
109 | | - } |
110 | | - ] |
111 | | - } |
112 | | - }, |
113 | | - { |
114 | | - "files": "test-d/**/*.ts", |
115 | | - "rules": { |
116 | | - "no-restricted-imports": [ |
117 | | - "error", |
118 | | - { |
119 | | - "patterns": [ |
120 | | - { |
121 | | - "group": ["*.js", "*.ts", "!*.d.ts"], |
122 | | - "message": "Use `.d.ts` extension." |
123 | | - } |
124 | | - ] |
125 | | - } |
126 | | - ] |
127 | | - } |
128 | | - } |
129 | | - ], |
130 | 63 | "tsd": { |
131 | 64 | "compilerOptions": { |
132 | 65 | "noUnusedLocals": false |
|
0 commit comments