Skip to content

Commit

Permalink
chore(eslint-plugin): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wwbsluxs11 committed Jul 29, 2022
1 parent fe01a6b commit b71d1a7
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/eslint-plugin/tests/rules/no-use-before-define.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ enum Foo {
let baz: Enum;
enum Enum {}
`,
options: [{ ignoreTypeReferences: true, allowNamedExports: true }],
options: [{ allowNamedExports: true }],
parserOptions,
},
// https://github.com/typescript-eslint/typescript-eslint/issues/2502
Expand Down Expand Up @@ -1180,14 +1180,13 @@ enum Foo {
},
],
},
// "allowNamedExports"
// "allowNamedExports" option
{
code: `
export { a };
const a = 1;
`,
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1202,7 +1201,6 @@ const a = 1;
`,
options: [{}],
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1217,7 +1215,6 @@ const a = 1;
`,
options: [{ allowNamedExports: false }],
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1232,7 +1229,6 @@ const a = 1;
`,
options: ['nofunc'],
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1246,7 +1242,6 @@ export { a as b };
const a = 1;
`,
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1260,7 +1255,6 @@ export { a, b };
let a, b;
`,
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1278,7 +1272,6 @@ export { a };
var a;
`,
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1292,7 +1285,6 @@ export { f };
function f() {}
`,
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1306,7 +1298,6 @@ export { C };
class C {}
`,
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand All @@ -1321,7 +1312,6 @@ const a = 1;
`,
options: [{ allowNamedExports: true }],
parserOptions,

errors: [
{
messageId: 'noUseBeforeDefine',
Expand Down

0 comments on commit b71d1a7

Please sign in to comment.