Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / typescript-estree / dist / ast-converter.js
index 3475eee15164f3a64a8d6ddd17890b83cfb9055d..6af960ee3368c76b9e7dc95eff8d378a242f1805 100644 (file)
@@ -32,9 +32,13 @@ function astConverter(ast, extra, shouldPreserveNodeMaps) {
         simple_traverse_1.simpleTraverse(estree, {
             enter: node => {
                 if (!extra.range) {
+                    // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional
+                    // @ts-expect-error
                     delete node.range;
                 }
                 if (!extra.loc) {
+                    // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional
+                    // @ts-expect-error
                     delete node.loc;
                 }
             },