Merge pull request #337 from spotify/rugvip/prop-types

cli: don't enforce prop-types for plugins
This commit is contained in:
Patrik Oldsberg
2020-03-23 08:57:24 +01:00
committed by GitHub
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,
},
};