Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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