95 lines
2.2 KiB
JSON
95 lines
2.2 KiB
JSON
{
|
|
"name": "apollo-upload-examples-app",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=8.6",
|
|
"npm": ">=5.4"
|
|
},
|
|
"dependencies": {
|
|
"apollo-cache-inmemory": "^1.1.9",
|
|
"apollo-client": "^2.2.5",
|
|
"apollo-link": "^1.1.0",
|
|
"apollo-upload-client": "^7.1.0-alpha.1",
|
|
"babel-plugin-graphql-tag": "^1.3.1",
|
|
"babel-plugin-transform-inline-environment-variables": "^0.3.0",
|
|
"dotenv-cli": "^1.4.0",
|
|
"graphql": "^0.12.3",
|
|
"graphql-tag": "^2.7.3",
|
|
"isomorphic-unfetch": "^2.0.0",
|
|
"next": "^5.0.0",
|
|
"react": "^16.2.0",
|
|
"react-apollo": "^2.0.4",
|
|
"react-display-name": "^0.2.3",
|
|
"react-dom": "^16.2.0",
|
|
"webpack-bundle-analyzer": "^2.10.0"
|
|
},
|
|
"devDependencies": {
|
|
"babel-eslint": "^8.2.1",
|
|
"eslint": "^4.17.0",
|
|
"eslint-plugin-import": "^2.8.0",
|
|
"eslint-plugin-node": "^6.0.0",
|
|
"eslint-plugin-prettier": "^2.6.0",
|
|
"eslint-plugin-react": "^7.6.1",
|
|
"prettier": "^1.10.2"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint .",
|
|
"fix": "npm run lint -- --fix && prettier --write '**/*.md'",
|
|
"dev": "dotenv next",
|
|
"build": "dotenv next build",
|
|
"start": "dotenv next start"
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"next/babel"
|
|
],
|
|
"plugins": [
|
|
"transform-inline-environment-variables",
|
|
"graphql-tag"
|
|
]
|
|
},
|
|
"eslintConfig": {
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2017,
|
|
"ecmaFeatures": {
|
|
"experimentalObjectRestSpread": true,
|
|
"jsx": true
|
|
}
|
|
},
|
|
"env": {
|
|
"es6": true,
|
|
"node": true,
|
|
"browser": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:import/recommended",
|
|
"plugin:node/recommended",
|
|
"plugin:react/recommended"
|
|
],
|
|
"plugins": [
|
|
"import",
|
|
"node",
|
|
"react",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"curly": [
|
|
"error",
|
|
"multi"
|
|
],
|
|
"node/no-unsupported-features": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/prop-types": "off",
|
|
"prettier/prettier": "error"
|
|
}
|
|
},
|
|
"prettier": {
|
|
"proseWrap": "never",
|
|
"singleQuote": true,
|
|
"semi": false
|
|
}
|
|
}
|