mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
Update eslint and c8 to support using TS interfaces
This will allow us to define the repository interface
This commit is contained in:
parent
a0c36e16d0
commit
5282c4a72b
@ -1,7 +1,11 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
plugins: ['ghost'],
|
plugins: ['ghost', '@typescript-eslint'],
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:ghost/node'
|
'plugin:ghost/node'
|
||||||
]
|
],
|
||||||
|
rules: {
|
||||||
|
'no-unused-vars': 'off',
|
||||||
|
'@typescript-eslint/no-unused-vars': ['error']
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
@ -32,5 +32,12 @@
|
|||||||
"@tryghost/in-memory-repository": "0.0.0",
|
"@tryghost/in-memory-repository": "0.0.0",
|
||||||
"@tryghost/tpl": "^0.1.25",
|
"@tryghost/tpl": "^0.1.25",
|
||||||
"bson-objectid": "^2.0.4"
|
"bson-objectid": "^2.0.4"
|
||||||
|
},
|
||||||
|
"c8": {
|
||||||
|
"exclude": [
|
||||||
|
"src/CollectionRepository.ts",
|
||||||
|
"src/**/*.d.ts",
|
||||||
|
"test/**/*.ts"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user