cli: don't enforce prop-types for plugins
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.ts?(x)'],
|
||||
rules: {
|
||||
'react/prop-types': 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -39,4 +39,13 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
ignorePatterns: ['**/dist/**', '**/build/**'],
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.ts?(x)'],
|
||||
rules: {
|
||||
// Default to not enforcing prop-types in typescript
|
||||
'react/prop-types': 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
module.exports = {
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.ts?(x)'],
|
||||
rules: {
|
||||
// TODO: add prop types and set to 1
|
||||
'react/prop-types': 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
rules: {
|
||||
'react/prop-types': 0,
|
||||
'jest/expect-expect': 0,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user