Skip to content

Commit

Permalink
feat(eslint-plugin): improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk committed Nov 21, 2019
1 parent 410b39a commit 127d9a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/eslint-plugin/tests/rules/camelcase.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,22 @@ type Foo<T extends object> = {}
code: 'const foo = foo_bar?.foo;',
options: [{ properties: 'never' }],
},
{
code: `
class Foo {
FOO_method() {}
}
`,
options: [{ allow: ['^FOO'] }],
},
{
code: `
class Foo {
method() {}
}
`,
options: [{ allow: [] }],
},
],

invalid: [
Expand Down

0 comments on commit 127d9a1

Please sign in to comment.