Skip to content

Commit

Permalink
Rename no-non-null-assertion to member-ordering in README (#4921)
Browse files Browse the repository at this point in the history
  • Loading branch information
escudero89 committed May 6, 2022
1 parent db5a814 commit 7735475
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/eslint-plugin/docs/rules/member-ordering.md
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

0 comments on commit 7735475

Please sign in to comment.