mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Moved eslint override into validations index
- Keeping overrides inside the file means the context of why a rule isn't firing is present inline when modifying a file - This makes it easier to maintain files, at the cost of needing to search to find all overrides
This commit is contained in:
parent
33ad7c2740
commit
aeea3a3d76
2 changed files with 6 additions and 6 deletions
|
@ -76,12 +76,6 @@ module.exports = {
|
|||
]]
|
||||
}
|
||||
},
|
||||
{
|
||||
files: 'core/server/api/**/utils/validators/**/index.js',
|
||||
rules: {
|
||||
'max-lines': ['off']
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @TODO: enable these soon
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// ESLint Override Notice
|
||||
// This is a valid index.js file - it just exports a lot of stuff!
|
||||
// Long term we would like to change the API architecture to reduce this file,
|
||||
// but that's not the problem the index.js max - line eslint "proxy" rule is there to solve.
|
||||
/* eslint-disable max-lines */
|
||||
|
||||
module.exports = {
|
||||
get passwordreset() {
|
||||
return require('./passwordreset');
|
||||
|
|
Loading…
Add table
Reference in a new issue