Skip to content

Commit

Permalink
test(bool-prop-naming): use types feature (instead of ts)
Browse files Browse the repository at this point in the history
  • Loading branch information
mobily committed Mar 12, 2022
1 parent 5ecea6b commit 83031b3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/lib/rules/boolean-prop-naming.js
Expand Up @@ -425,7 +425,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew = (props: Props) => { return <div /> };
`,
options: [{ rule: '^is[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts'],
features: ['types'],
errors: [],
},
{
Expand All @@ -438,7 +438,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew = (props: Props) => { return <div /> };
`,
options: [{ rule: '(is|has)[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts'],
features: ['types'],
errors: [],
},
{
Expand All @@ -450,7 +450,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew: React.FC<Props> = (props) => { return <div /> };
`,
options: [{ rule: '^is[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts'],
features: ['types'],
errors: [],
},
{
Expand All @@ -464,7 +464,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew: React.FC<Props> = (props) => { return <div /> };
`,
options: [{ rule: '^(is|has)[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts'],
features: ['types'],
errors: [],
},
]),
Expand Down Expand Up @@ -1109,7 +1109,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew = (props: Props) => { return <div /> };
`,
options: [{ rule: '^is[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts', 'no-ts-old'],
features: ['types', 'no-ts-old'],
errors: [
{
message: 'Prop name (enabled) doesn\'t match rule (^is[A-Z]([A-Za-z0-9]?)+)',
Expand All @@ -1127,7 +1127,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew = (props: Props) => { return <div /> };
`,
options: [{ rule: '^(is|has)[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts', 'no-ts-old'],
features: ['types', 'no-ts-old'],
errors: [
{
message: 'Prop name (enabled) doesn\'t match rule (^(is|has)[A-Z]([A-Za-z0-9]?)+)',
Expand All @@ -1143,7 +1143,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew: React.FC<Props> = (props) => { return <div /> };
`,
options: [{ rule: '^is[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts', 'no-ts-old'],
features: ['types', 'no-ts-old'],
errors: [
{
message: 'Prop name (enabled) doesn\'t match rule (^is[A-Z]([A-Za-z0-9]?)+)',
Expand All @@ -1161,7 +1161,7 @@ ruleTester.run('boolean-prop-naming', rule, {
const HelloNew: React.FC<Props> = (props) => { return <div /> };
`,
options: [{ rule: '^(is|has)[A-Z]([A-Za-z0-9]?)+' }],
features: ['ts', 'no-ts-old'],
features: ['types', 'no-ts-old'],
errors: [
{
message: 'Prop name (enabled) doesn\'t match rule (^(is|has)[A-Z]([A-Za-z0-9]?)+)',
Expand Down

0 comments on commit 83031b3

Please sign in to comment.