Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 3761cac

Browse files
Merge pull request #35 from strvcom/explicit-plugins
Explicitly specify plugins in each file if used
2 parents d617db6 + 2439fe1 commit 3761cac

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

coding-styles/fixable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
// then rather abandons the effort instead of fixing them.
1616
module.exports = {
1717

18+
plugins: [
19+
'import',
20+
],
21+
1822
rules: {
1923
// enforce line breaks after opening and before closing array brackets
2024
// Requires consistent usage of linebreaks for each pair of brackets. It reports an error if one

coding-styles/react.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
// These rules represent coding style targeted for React components.
1212
module.exports = {
1313

14+
plugins: [
15+
'react',
16+
],
17+
1418
rules: {
1519
// Validate closing bracket location in JSX
1620
// This rule checks all JSX multiline elements and verifies the location of the closing bracket.

coding-styles/recommended.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ module.exports = {
1414

1515
extends: './fixable.js',
1616

17+
plugins: [
18+
'import',
19+
],
20+
1721
rules: {
1822
// Require Camelcase
1923
// This rule looks for any underscores (_) located within the source code. It ignores leading

environments/react/optional.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ module.exports = {
1212

1313
extends: '../shared/optional.js',
1414

15+
plugins: [
16+
'react',
17+
],
18+
1519
rules: {
1620
// Disallow Use of Alert
1721
// This rule is aimed at catching debugging code that should be removed and popup UI elements

environments/react/recommended.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ module.exports = {
2525
},
2626
},
2727

28+
plugins: [
29+
'react',
30+
],
31+
2832
rules: {
2933
// Enforce JSX Quote Style
3034
// This rule enforces the consistent use of either double or single quotes in JSX attributes.

environments/react/v16.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ module.exports = {
1414
'./v15.js',
1515
],
1616

17+
plugins: [
18+
'react',
19+
],
20+
1721
// Configures the react plugin to treat some rules with regard to this specific React.js version
1822
settings: {
1923
react: {

environments/shared/optional.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const globs = require('../../globs')
1212

1313
module.exports = {
1414

15+
plugins: [
16+
'import',
17+
],
18+
1519
rules: {
1620
// Require Consistent Returns
1721
// This rule is aimed at ensuring all return statements either specify a value or don't specify

0 commit comments

Comments
 (0)