fix: Move rules to root of project
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
committed by
Carlos Lopez
parent
287a91215b
commit
9ccbf26581
+7
-1
@@ -18,7 +18,7 @@ var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
plugins: ['notice', 'testing-library'],
|
||||
plugins: ['@spotify', 'notice', 'react', 'testing-library'],
|
||||
rules: {
|
||||
'notice/notice': [
|
||||
'error',
|
||||
@@ -45,6 +45,12 @@ module.exports = {
|
||||
"CallExpression[arguments.length=0] > MemberExpression[property.name='toUpperCase']",
|
||||
},
|
||||
],
|
||||
'react/forbid-elements': [
|
||||
1,
|
||||
{
|
||||
forbid: [{ element: 'button', message: 'use MUI <Button> instead' }],
|
||||
},
|
||||
],
|
||||
'testing-library/await-async-query': 'error',
|
||||
'testing-library/await-async-utils': 'error',
|
||||
'testing-library/no-await-sync-query': 'error',
|
||||
|
||||
Reference in New Issue
Block a user