Browse Source

housekeeping: add extraneous module linting (#4697)

preventative measure!
bubble
kyle 6 years ago
committed by GitHub
parent
commit
f7001f8011
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 4 deletions
  1. +8
    -3
      .eslintrc
  2. +1
    -1
      package.json
  3. +10
    -0
      src/.eslintrc

+ 8
- 3
.eslintrc View File

@@ -13,11 +13,15 @@
}
},

"extends": ["eslint:recommended", "plugin:react/recommended"],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],

"plugins": [
"react",
"mocha"
"mocha",
"import"
],

"rules": {
@@ -34,6 +38,7 @@
"no-console": ["error", { allow: ["warn", "error"] }],
"react/jsx-no-bind": 1,
"react/display-name": 0,
"mocha/no-exclusive-tests": "error"
"mocha/no-exclusive-tests": "error",
"import/no-extraneous-dependencies": [2]
}
}

+ 1
- 1
package.json View File

@@ -100,7 +100,7 @@
"deepmerge": "^2.1.0",
"enzyme": "^2.7.1",
"eslint": "^4.1.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-mocha": "^4.11.0",
"eslint-plugin-react": "~7.7.0",
"expect": "^1.20.2",


+ 10
- 0
src/.eslintrc View File

@@ -0,0 +1,10 @@
{
"rules": {
"import/no-extraneous-dependencies": [
2,
{
"devDependencies": false
}
]
}
}

Loading…
Cancel
Save