0
Fork 0
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:
Hannah Wolfe 2022-04-05 11:45:45 +01:00
parent 33ad7c2740
commit aeea3a3d76
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037
2 changed files with 6 additions and 6 deletions

View file

@ -76,12 +76,6 @@ module.exports = {
]]
}
},
{
files: 'core/server/api/**/utils/validators/**/index.js',
rules: {
'max-lines': ['off']
}
},
/**
* @TODO: enable these soon
*/

View file

@ -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');