This repository was archived by the owner on Mar 5, 2019. It is now read-only.
File tree 4 files changed +27
-11
lines changed 4 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 1
1
# ESLint Config
2
2
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 ) .
4
5
5
6
Install with ` peerDependencies ` :
6
7
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- extends : 'airbnb' ,
3
2
parser : 'babel-eslint' ,
4
-
3
+ extends : [
4
+ 'airbnb' ,
5
+ 'plugin:flowtype/recommended'
6
+ ] ,
7
+ plugins : [
8
+ "flowtype"
9
+ ] ,
5
10
env : {
6
11
browser : true ,
7
12
node : true ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-config-mkitt" ,
3
- "version" : " 1 .0.0" ,
3
+ "version" : " 2 .0.0" ,
4
4
"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 " ,
6
6
"main" : " index.js" ,
7
7
"license" : " MIT" ,
8
8
"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"
12
12
},
13
13
"dependencies" : {
14
14
"eslint-config-airbnb" : " 15.0.1" ,
15
+ "eslint-plugin-flowtype" : " 2.34.0" ,
15
16
"eslint-plugin-import" : " 2.6.0" ,
16
17
"eslint-plugin-jsx-a11y" : " 5.0.3" ,
17
18
"eslint-plugin-react" : " 7.1.0"
18
19
},
19
20
"peerDependencies" : {
20
- "babel-eslint" : " ^7.2.3 " ,
21
- "eslint" : " ^3.19.0 "
21
+ "babel-eslint" : " >= 7 " ,
22
+ "eslint" : " >= 3 "
22
23
}
23
24
}
24
-
Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ eslint-module-utils@^2.0.0:
131
131
debug "^2.6.8"
132
132
pkg-dir "^1.0.0"
133
133
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
+
134
140
eslint-plugin-import@2.6.0 :
135
141
version "2.6.0"
136
142
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:
261
267
version "4.5.2"
262
268
resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5"
263
269
270
+ lodash@^4.15.0 :
271
+ version "4.17.4"
272
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
273
+
264
274
minimatch@^3.0.3 :
265
275
version "3.0.4"
266
276
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
You can’t perform that action at this time.
0 commit comments