Skip to content

docs(member-ordering): Rename no-non-null-assertion to member-ordering #4921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/eslint-plugin/docs/rules/member-ordering.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ It also ignores accessibility and scope.
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "default": ["signature", "method", "constructor", "field"] }
]
Expand Down Expand Up @@ -348,7 +348,7 @@ It doesn't apply to interfaces or type literals as accessibility and scope are n
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "default": ["public-instance-method", "public-static-field"] }
]
Expand Down Expand Up @@ -442,7 +442,7 @@ It doesn't apply to interfaces or type literals as accessibility and scope are n
```jsonc
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "default": ["public-static-field", "static-field", "instance-field"] }
]
Expand Down Expand Up @@ -531,7 +531,7 @@ Default settings will be used for class declarations and all other syntax constr
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "classes": ["method", "constructor", "field"] }
]
Expand Down Expand Up @@ -581,7 +581,7 @@ Default settings will be used for class declarations and all other syntax constr
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "classExpressions": ["method", "constructor", "field"] }
]
Expand Down Expand Up @@ -635,7 +635,7 @@ These member types are the only ones allowed for `interfaces`.
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "interfaces": ["signature", "method", "constructor", "field"] }
]
Expand Down Expand Up @@ -687,7 +687,7 @@ These member types are the only ones allowed for `typeLiterals`.
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "typeLiterals": ["signature", "method", "constructor", "field"] }
]
Expand Down Expand Up @@ -736,7 +736,7 @@ You can copy and paste the default order from [Default Configuration](#default-c
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{
"default": {
Expand Down Expand Up @@ -790,7 +790,7 @@ You can copy and paste the default order from [Default Configuration](#default-c
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{
"default": {
Expand Down Expand Up @@ -844,7 +844,7 @@ It ignores any member group types completely by specifying `"never"` for `member
// .eslintrc.json
{
"rules": {
"@typescript-eslint/no-non-null-assertion": [
"@typescript-eslint/member-ordering": [
"error",
{ "default": { "memberTypes": "never", "order": "alphabetically" } }
]
Expand Down