File tree Expand file tree Collapse file tree 7 files changed +952
-46
lines changed Expand file tree Collapse file tree 7 files changed +952
-46
lines changed Original file line number Diff line number Diff line change 1+ module . exports = {
2+ env : {
3+ browser : true ,
4+ es6 : true ,
5+ } ,
6+ extends : [
7+ 'plugin:react/recommended' ,
8+ 'airbnb' ,
9+ ] ,
10+ globals : {
11+ Atomics : 'readonly' ,
12+ SharedArrayBuffer : 'readonly' ,
13+ } ,
14+ parserOptions : {
15+ ecmaFeatures : {
16+ jsx : true ,
17+ } ,
18+ ecmaVersion : 2018 ,
19+ sourceType : 'module' ,
20+ } ,
21+ plugins : [
22+ 'react' ,
23+ ] ,
24+ rules : {
25+ } ,
26+ } ;
Original file line number Diff line number Diff line change 11---
22before_script :
3- - " yarn install --frozen-lockfile "
3+ - " yarn"
44cache : ~
55language : node_js
66node_js :
77 - " 10.16.3"
8- script : " npm run build"
8+ script :
9+ - " npm run lint"
10+ - " npm run build"
911yarn : false
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
3- import App from './src/app' ;
3+ import App from './src/app.jsx ' ;
44
55ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
Original file line number Diff line number Diff line change 55 "main" : " index.js" ,
66 "scripts" : {
77 "build" : " webpack ---config ./config/webpack.prod.config.js" ,
8- "dev" : " webpack-dev-server --config ./config/webpack.dev.config.js"
8+ "dev" : " webpack-dev-server --config ./config/webpack.dev.config.js" ,
9+ "lint" : " ./node_modules/.bin/eslint src/*.jsx"
910 },
1011 "keywords" : [
11- " react" ,
12- " boilerplate" ,
13- " webpack" ,
14- " webpack hmr" ,
12+ " react" ,
13+ " boilerplate" ,
14+ " webpack" ,
15+ " webpack hmr" ,
1516 " travis" ,
1617 " react-simple-boilerplate" ,
1718 " react-boilerplate"
3031 },
3132 "devDependencies" : {
3233 "clean-webpack-plugin" : " ^3.0.0" ,
34+ "eslint" : " ^6.8.0" ,
35+ "eslint-config-airbnb" : " ^18.1.0" ,
36+ "eslint-plugin-import" : " ^2.20.2" ,
37+ "eslint-plugin-jsx-a11y" : " ^6.2.3" ,
38+ "eslint-plugin-react" : " ^7.19.0" ,
39+ "eslint-plugin-react-hooks" : " ^2.5.1" ,
3340 "html-webpack-plugin" : " ^4.0.4" ,
3441 "webpack-dev-server" : " ^3.10.3"
3542 }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ export default function App ( ) {
4+ return (
5+ < div > Welcome to React Boilerplate!</ div >
6+ ) ;
7+ }
You can’t perform that action at this time.
0 commit comments