diff --git a/coding-styles/fixable.js b/coding-styles/fixable.js index 7b7330f..fb72cff 100644 --- a/coding-styles/fixable.js +++ b/coding-styles/fixable.js @@ -15,6 +15,10 @@ // then rather abandons the effort instead of fixing them. module.exports = { + plugins: [ + 'import', + ], + rules: { // enforce line breaks after opening and before closing array brackets // Requires consistent usage of linebreaks for each pair of brackets. It reports an error if one diff --git a/coding-styles/react.js b/coding-styles/react.js index 555d480..5ad2199 100644 --- a/coding-styles/react.js +++ b/coding-styles/react.js @@ -11,6 +11,10 @@ // These rules represent coding style targeted for React components. module.exports = { + plugins: [ + 'react', + ], + rules: { // Validate closing bracket location in JSX // This rule checks all JSX multiline elements and verifies the location of the closing bracket. diff --git a/coding-styles/recommended.js b/coding-styles/recommended.js index 9e02a20..96506c3 100644 --- a/coding-styles/recommended.js +++ b/coding-styles/recommended.js @@ -14,6 +14,10 @@ module.exports = { extends: './fixable.js', + plugins: [ + 'import', + ], + rules: { // Require Camelcase // This rule looks for any underscores (_) located within the source code. It ignores leading diff --git a/environments/react/optional.js b/environments/react/optional.js index c687b8b..e71f710 100644 --- a/environments/react/optional.js +++ b/environments/react/optional.js @@ -12,6 +12,10 @@ module.exports = { extends: '../shared/optional.js', + plugins: [ + 'react', + ], + rules: { // Disallow Use of Alert // This rule is aimed at catching debugging code that should be removed and popup UI elements diff --git a/environments/react/recommended.js b/environments/react/recommended.js index 701b0a8..ba08860 100644 --- a/environments/react/recommended.js +++ b/environments/react/recommended.js @@ -25,6 +25,10 @@ module.exports = { }, }, + plugins: [ + 'react', + ], + rules: { // Enforce JSX Quote Style // This rule enforces the consistent use of either double or single quotes in JSX attributes. diff --git a/environments/react/v16.js b/environments/react/v16.js index 5a32a3e..4e5531b 100644 --- a/environments/react/v16.js +++ b/environments/react/v16.js @@ -14,6 +14,10 @@ module.exports = { './v15.js', ], + plugins: [ + 'react', + ], + // Configures the react plugin to treat some rules with regard to this specific React.js version settings: { react: { diff --git a/environments/shared/optional.js b/environments/shared/optional.js index 05ad33c..5728bfe 100644 --- a/environments/shared/optional.js +++ b/environments/shared/optional.js @@ -12,6 +12,10 @@ const globs = require('../../globs') module.exports = { + plugins: [ + 'import', + ], + rules: { // Require Consistent Returns // This rule is aimed at ensuring all return statements either specify a value or don't specify