mirror of https://github.com/msgbyte/tailchat
chore: add plugins eslint check
parent
9ca49d2120
commit
c3bc5fb729
@ -0,0 +1,19 @@
|
|||||||
|
const rootlint = require('../../.eslintrc.js');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
...rootlint,
|
||||||
|
rules: {
|
||||||
|
...rootlint.rules,
|
||||||
|
'no-restricted-imports': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
name: 'tailchat-shared',
|
||||||
|
message: 'Only allow use `@capital/*`',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'translate',
|
||||||
|
message: 'Maybe you should use `./translate`',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in New Issue