File tree 4 files changed +19
-1
lines changed
4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " airbnb" ,
3
+ "plugins" : [
4
+ " react" ,
5
+ " jsx-a11y" ,
6
+ " import"
7
+ ]
8
+ }
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ To get going clone this repository and perform the following steps:
12
12
1 . Change application name in ` config/application.rb ` .
13
13
1 . Update ` database.yml ` to reflect the new application name.
14
14
1 . If you plan on using Figaro, copy ` config/application.yml.example ` to ` config/application.yml ` .
15
+ 1 . ESLint is preconfigured for modern JS with React support (AirBnB styleguide). If you want to use
16
+ it install packages with ` npm install ` , otherwise remove ` .eslintrc ` and ` package.json ` .
15
17
1 . If you don't plan on tracking the template, you can remove the ` .git ` directory.
16
18
Otherwise you can rename the remote:
17
19
``` shell
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rails_new" ,
3
3
"private" : true ,
4
- "dependencies" : {}
4
+ "dependencies" : {},
5
+ "devDependencies" : {
6
+ "eslint" : " ^3.19.0" ,
7
+ "eslint-config-airbnb" : " ^15.0.1" ,
8
+ "eslint-plugin-import" : " ^2.2.0" ,
9
+ "eslint-plugin-jsx-a11y" : " ^5.0.3" ,
10
+ "eslint-plugin-react" : " ^7.0.1"
11
+ }
5
12
}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ printf "Please update the following locations:\n\n"
30
30
fgrep -rn " TODO:" app config spec | while read -r line ; do
31
31
echo " * $line "
32
32
done
33
+ echo " * Update project name in package.json"
33
34
34
35
35
36
You can’t perform that action at this time.
0 commit comments