Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint): migrate rest of custom rules to eslint (#24)
* feat(eslint): migrate rest of custom rules to eslint * docs: update roadmap
- Loading branch information
1 parent
f141671
commit 20d24cb
Showing
18 changed files
with
12,980 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.fixture.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,36 @@ | ||
const breaking = require('../utils/breaking'); | ||
|
||
module.exports = { | ||
rules: { | ||
'@typescript-eslint/class-name-casing': 'error', | ||
|
||
'@typescript-eslint/member-ordering': 'off', | ||
'@tinkoff/member-ordering': [ | ||
breaking({since: 2}), | ||
{ | ||
classes: [ | ||
'private-instance-field', | ||
'private-static-field', | ||
'protected-static-field', | ||
'protected-instance-field', | ||
'public-instance-field', | ||
'public-static-field', | ||
'@Input', | ||
'@Output', | ||
'public-instance-get', | ||
'public-instance-set', | ||
'protected-instance-get', | ||
'protected-instance-set', | ||
'private-instance-get', | ||
'private-instance-set', | ||
'public-instance-method', | ||
'public-static-method', | ||
'protected-instance-method', | ||
'protected-static-method', | ||
'private-instance-method', | ||
'private-static-method', | ||
], | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
rules: { | ||
'member-ordering': require('./member-ordering'), | ||
'require-return-type': require('./require-return-type'), | ||
}, | ||
}; |
Oops, something went wrong.