-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor shared configuration into shared folder
- Loading branch information
Showing
6 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
extends: [ | ||
'@heed/heed/react', | ||
'./shared/react', | ||
'airbnb/hooks' | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,5 @@ | ||
module.exports = { | ||
extends: [ | ||
'airbnb', | ||
'@heed/heed/base', | ||
'prettier/react', | ||
'./shared/react' | ||
], | ||
env: { | ||
'browser': true | ||
}, | ||
rules: { | ||
// Allows custom prop type declarations and hoisting common prop types into other variables | ||
'react/no-typos': 'off', | ||
// allow usage of tagged templates such as injectGlobal from styled-components | ||
'no-unused-expressions': ['error', { 'allowTaggedTemplates': true }], | ||
// allow the unsafe lifecycle methods prefixed with UNSAFE_ | ||
'camelcase': ['error', { properties: 'never', ignoreDestructuring: false, allow: ['^UNSAFE_'] }], | ||
// allow spreading jsx props when being used within a hoc | ||
'react/jsx-props-no-spreading': ['error', { 'html': 'enforce', 'custom': 'enforce', 'exceptions': ['WrappedComponent', 'IntegrationWrapper'] }], | ||
}, | ||
settings: { | ||
react: { | ||
pragma: 'React', | ||
version: 'detect' | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
extends: [ | ||
'airbnb-base', | ||
'@heed/heed/base' | ||
'./shared/core' | ||
], | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module.exports = { | ||
extends: [ | ||
'airbnb', | ||
'./core', | ||
'prettier/react', | ||
], | ||
env: { | ||
'browser': true | ||
}, | ||
rules: { | ||
// Allows custom prop type declarations and hoisting common prop types into other variables | ||
'react/no-typos': 'off', | ||
// allow usage of tagged templates such as injectGlobal from styled-components | ||
'no-unused-expressions': ['error', { 'allowTaggedTemplates': true }], | ||
// allow the unsafe lifecycle methods prefixed with UNSAFE_ | ||
'camelcase': ['error', { properties: 'never', ignoreDestructuring: false, allow: ['^UNSAFE_'] }], | ||
// allow spreading jsx props when being used within a hoc | ||
'react/jsx-props-no-spreading': ['error', { 'html': 'enforce', 'custom': 'enforce', 'exceptions': ['WrappedComponent', 'IntegrationWrapper'] }], | ||
}, | ||
settings: { | ||
react: { | ||
pragma: 'React', | ||
version: 'detect' | ||
} | ||
}, | ||
} |