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

Commit ced7cb9

Browse files
committed
Add flowtype plugin for linting flow definitions
1 parent 2a9638a commit ced7cb9

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ESLint Config
22

3-
Based off of the [Airbnb config](https://github.com/airbnb/javascript).
3+
Based off of the [Airbnb config](https://github.com/airbnb/javascript) paired
4+
with the [flowtype plugin](https://github.com/gajus/eslint-plugin-flowtype).
45

56
Install with `peerDependencies`:
67

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
module.exports = {
2-
extends: 'airbnb',
32
parser: 'babel-eslint',
4-
3+
extends: [
4+
'airbnb',
5+
'plugin:flowtype/recommended'
6+
],
7+
plugins: [
8+
"flowtype"
9+
],
510
env: {
611
browser: true,
712
node: true,

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
22
"name": "eslint-config-mkitt",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"author": "Matthew Kitt <mk@mkitt.net>",
5-
"description": "ESLint configuration based off of Airbnb's config.",
5+
"description": "ESLint configuration based off of Airbnb's config paired with the flowtype plugin",
66
"main": "index.js",
77
"license": "MIT",
88
"homepage": "https://github.com/mkitt/eslint-config-mkitt",
9-
"repository" : {
10-
"type" : "git",
11-
"url" : "https://github.com/mkitt/eslint-config-mkitt"
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/mkitt/eslint-config-mkitt"
1212
},
1313
"dependencies": {
1414
"eslint-config-airbnb": "15.0.1",
15+
"eslint-plugin-flowtype": "2.34.0",
1516
"eslint-plugin-import": "2.6.0",
1617
"eslint-plugin-jsx-a11y": "5.0.3",
1718
"eslint-plugin-react": "7.1.0"
1819
},
1920
"peerDependencies": {
20-
"babel-eslint": "^7.2.3",
21-
"eslint": "^3.19.0"
21+
"babel-eslint": ">= 7",
22+
"eslint": ">= 3"
2223
}
2324
}
24-

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ eslint-module-utils@^2.0.0:
131131
debug "^2.6.8"
132132
pkg-dir "^1.0.0"
133133

134+
eslint-plugin-flowtype@2.34.0:
135+
version "2.34.0"
136+
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.34.0.tgz#b9875f314652e5081623c9d2b18a346bbb759c09"
137+
dependencies:
138+
lodash "^4.15.0"
139+
134140
eslint-plugin-import@2.6.0:
135141
version "2.6.0"
136142
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.6.0.tgz#2a4bbad36a078e052a3c830ce3dfbd6b8a12c6e5"
@@ -261,6 +267,10 @@ lodash.cond@^4.3.0:
261267
version "4.5.2"
262268
resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5"
263269

270+
lodash@^4.15.0:
271+
version "4.17.4"
272+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
273+
264274
minimatch@^3.0.3:
265275
version "3.0.4"
266276
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"

0 commit comments

Comments
 (0)