Enable prettier-internal-rules/prefer-fs-promises-submodule for all files (#13722)
* Enable `prefer-fs-promises-submodule` for all files * Fix problems
This commit is contained in:
1 parent
f8773fcd6a
commit
d09bc86c9f
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -115,6 +115,7 @@ module.exports = {
|
||||
// Internal rules
|
||||
"prettier-internal-rules/jsx-identifier-case": "error",
|
||||
"prettier-internal-rules/no-identifier-n": "error",
|
||||
"prettier-internal-rules/prefer-fs-promises-submodule": "error",
|
||||
|
||||
// @typescript-eslint/eslint-plugin
|
||||
"@typescript-eslint/prefer-ts-expect-error": "error",
|
||||
@@ -343,7 +344,6 @@ module.exports = {
|
||||
"prettier-internal-rules/prefer-ast-path-each": "error",
|
||||
"prettier-internal-rules/prefer-indent-if-break": "error",
|
||||
"prettier-internal-rules/prefer-is-non-empty-array": "error",
|
||||
"prettier-internal-rules/prefer-fs-promises-submodule": "error",
|
||||
"prettier-internal-rules/prefer-ast-path-getters": "error",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import { promises as fs } from "node:fs";
|
||||
import fs from "node:fs/promises";
|
||||
import { outdent } from "outdent";
|
||||
import { DIST_DIR, PROJECT_ROOT } from "../utils/index.mjs";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import path from "node:path";
|
||||
import { promises as fs } from "node:fs";
|
||||
import fs from "node:fs/promises";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
function resolveDir(dir) {
|
||||
|
||||
Reference in new issue
Block a user