diff --git a/react-hooks.js b/react-hooks.js index f37ed89..16409d4 100644 --- a/react-hooks.js +++ b/react-hooks.js @@ -1,6 +1,6 @@ module.exports = { extends: [ - '@heed/heed/react', + './shared/react', 'airbnb/hooks' ], } \ No newline at end of file diff --git a/react-native.js b/react-native.js index f58338d..1d1a8ff 100644 --- a/react-native.js +++ b/react-native.js @@ -1,7 +1,7 @@ module.exports = { plugins: ['react-native'], extends: [ - '@heed/heed/react' + './shared/react' ], rules: { // Asset requiring uses inline require() calls diff --git a/react.js b/react.js index c5567d5..cf3f6bc 100644 --- a/react.js +++ b/react.js @@ -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' - } - }, } \ No newline at end of file diff --git a/recommended.js b/recommended.js index 8328ed9..6050266 100644 --- a/recommended.js +++ b/recommended.js @@ -1,6 +1,6 @@ module.exports = { extends: [ 'airbnb-base', - '@heed/heed/base' + './shared/core' ], } \ No newline at end of file diff --git a/base.js b/shared/core.js similarity index 100% rename from base.js rename to shared/core.js diff --git a/shared/react.js b/shared/react.js new file mode 100644 index 0000000..bc38c19 --- /dev/null +++ b/shared/react.js @@ -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' + } + }, +} \ No newline at end of file