优化
This commit is contained in:
24
client/web/plugins/.eslintrc.js
Normal file
24
client/web/plugins/.eslintrc.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const rootlint = require('../../../.eslintrc.js');
|
||||
|
||||
module.exports = {
|
||||
...rootlint,
|
||||
root: true,
|
||||
rules: {
|
||||
...rootlint.rules,
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
{
|
||||
name: 'tailchat-shared',
|
||||
message: 'Only allow use `@capital/*`',
|
||||
},
|
||||
{
|
||||
name: 'antd',
|
||||
message: 'Only allow use `@capital/component`',
|
||||
},
|
||||
{
|
||||
name: 'translate',
|
||||
message: 'Maybe you should use `./translate`',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user