cli: don't enforce prop-types for plugins

This commit is contained in:
Patrik Oldsberg
2020-03-20 12:13:58 +01:00
parent e32bec77e8
commit 512e5cb54d
3 changed files with 28 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
module.exports = {
overrides: [
{
files: ['**/*.ts?(x)'],
rules: {
'react/prop-types': 1,
},
},
],
};
+9
View File
@@ -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,
},
},
],
};
+9 -1
View File
@@ -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,
},
};