Disable rules
This commit is contained in:
1 parent
4792bbc1c8
commit
31d9f9fcb6
2 files changed
+13
-28
No files matched your search
@@ -130,10 +130,9 @@ export default function esbuildPluginUmd(options) {
|
||||
fs.writeFileSync(
|
||||
outfile,
|
||||
intro +
|
||||
text.slice(
|
||||
expectedOutput.start.length,
|
||||
-expectedOutput.end.length
|
||||
).trimEnd() +
|
||||
text
|
||||
.slice(expectedOutput.start.length, -expectedOutput.end.length)
|
||||
.trimEnd() +
|
||||
outro
|
||||
);
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ module.exports = {
|
||||
},
|
||||
// TODO[@fisker]: Find a way to inline `require` parsers
|
||||
// {
|
||||
// files: ["index.js", "bin-prettier.js", "third-party.js"],
|
||||
// files: ["index.js", "bin-prettier.js", "cli.js", "third-party.js"],
|
||||
// rules: {
|
||||
// "no-restricted-syntax": [
|
||||
// "error",
|
||||
@@ -54,29 +54,15 @@ module.exports = {
|
||||
// ],
|
||||
// },
|
||||
// },
|
||||
{
|
||||
files: ["bin-prettier.js"],
|
||||
parserOptions: {
|
||||
ecmaVersion: 5,
|
||||
},
|
||||
rules: {
|
||||
"compat/compat": "error",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["index.js", "bin-prettier.js", "cli.js", "third-party.js"],
|
||||
rules: {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
// Forbid top level `require()` parsers
|
||||
{
|
||||
selector:
|
||||
'CallExpression:not(:function *)[callee.name="require"][arguments.0.value=/parser-/]',
|
||||
message: "Parsers should be inline `require()`d.",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
// {
|
||||
// files: ["bin-prettier.js"],
|
||||
// parserOptions: {
|
||||
// ecmaVersion: 5,
|
||||
// },
|
||||
// rules: {
|
||||
// "compat/compat": "error",
|
||||
// },
|
||||
// },
|
||||
{
|
||||
files: ["doc.js", "parser-*.js", "standalone.js"],
|
||||
rules: {
|
||||
|
||||
Reference in new issue
Block a user