Skip to content

Commit cf4fc84

Browse files
committed
rename rule
1 parent 19ca5a9 commit cf4fc84

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default [
105105
| [no-identical-tests](docs/rules/no-identical-tests.md) | disallow identical tests || 🔧 | | |
106106
| [no-only-tests](docs/rules/no-only-tests.md) | disallow the test case property `only` || | 💡 | |
107107
| [prefer-output-null](docs/rules/prefer-output-null.md) | disallow invalid RuleTester test cases where the `output` matches the `code` || 🔧 | | |
108-
| [test-case-name-property](docs/rules/test-case-name-property.md) | require test cases to have a `name` property under certain conditions | | | | |
108+
| [require-test-case-name](docs/rules/require-test-case-name.md) | require test cases to have a `name` property under certain conditions | | | | |
109109
| [test-case-property-ordering](docs/rules/test-case-property-ordering.md) | require the properties of a test case to be placed in a consistent order | | 🔧 | | |
110110
| [test-case-shorthand-strings](docs/rules/test-case-shorthand-strings.md) | enforce consistent usage of shorthand strings for test cases with no options | | 🔧 | | |
111111

docs/rules/test-case-name-property.md renamed to docs/rules/require-test-case-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Require test cases to have a `name` property under certain conditions (`eslint-plugin/test-case-name-property`)
1+
# Require test cases to have a `name` property under certain conditions (`eslint-plugin/require-test-case-name`)
22

33
<!-- end auto-generated rule header -->
44

lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import requireMetaHasSuggestions from './rules/require-meta-has-suggestions.ts';
3636
import requireMetaSchemaDescription from './rules/require-meta-schema-description.ts';
3737
import requireMetaSchema from './rules/require-meta-schema.ts';
3838
import requireMetaType from './rules/require-meta-type.ts';
39-
import testCaseNameProperty from './rules/test-case-name-property.ts';
39+
import requireTestCaseName from './rules/require-test-case-name.ts';
4040
import testCasePropertyOrdering from './rules/test-case-property-ordering.ts';
4141
import testCaseShorthandStrings from './rules/test-case-shorthand-strings.ts';
4242

@@ -116,7 +116,7 @@ const allRules = {
116116
'require-meta-schema-description': requireMetaSchemaDescription,
117117
'require-meta-schema': requireMetaSchema,
118118
'require-meta-type': requireMetaType,
119-
'test-case-name-property': testCaseNameProperty,
119+
'require-test-case-name': requireTestCaseName,
120120
'test-case-property-ordering': testCasePropertyOrdering,
121121
'test-case-shorthand-strings': testCaseShorthandStrings,
122122
} satisfies Record<string, Rule.RuleModule>;
File renamed without changes.

tests/lib/rules/test-case-name-property.ts renamed to tests/lib/rules/require-test-case-name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { RuleTester } from 'eslint';
22

3-
import rule from '../../../lib/rules/test-case-name-property.ts';
3+
import rule from '../../../lib/rules/require-test-case-name.ts';
44

55
/**
66
* Returns the code for some valid test cases

0 commit comments

Comments
 (0)