Commit fb259b68 authored by Tamlyn Rhodes's avatar Tamlyn Rhodes

Add dependencies and configs for linting and formatting

parent dfe2a9cc
{
"parser": "babel-eslint",
"extends": [
"standard",
"plugin:react/recommended"
],
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true
},
"extends": ["pubsweet"],
"rules": {
"consistent-return": 0,
"prefer-destructuring": ["error", {
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
}, {
"enforceForRenamedProperties": false
}],
"global-require": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/no-static-element-interactions": 0,
"import/extensions": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"import/prefer-default-export": 0,
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-param-reassign": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"react/forbid-prop-types": 0,
"react/no-did-mount-set-state": 0,
"react/no-unused-prop-types": 0,
"react/no-unused-state": 0,
"react/prop-types": 0,
"react/require-default-props": 0,
"sort-keys": 0
}
}
{
"*.{js,jsx}": ["prettier --write", "eslint --fix", "git add"],
"*.{json,md,css,scss}": ["prettier --write", "git add"]
}
{
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
......@@ -2,12 +2,7 @@
"name": "@pubsweet/starter",
"version": "1.0.0-alpha.1",
"description": "A new pubsweet app",
"files": [
"app",
"config",
"static",
"webpack"
],
"files": ["app", "config", "static", "webpack"],
"dependencies": {
"@pubsweet/db-manager": "^0.0.8",
"@pubsweet/logger": "^0.0.1",
......@@ -32,7 +27,6 @@
"react-router-redux": "next"
},
"devDependencies": {
"@pubsweet/db-manager": "^0.0.7",
"app-module-path": "^2.2.0",
"autobind-decorator": "^1.3.4",
"babel-core": "^6.14.0",
......@@ -51,10 +45,13 @@
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.1",
"eslint": "^4.7.1",
"eslint-config-standard": "^10.2.1",
"eslint-config-standard-react": "^5.0.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-node": "^5.2.0",
"eslint-config-pubsweet": "^0.0.6",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jest": "^21.4.2",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-prettier": "^2.3.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-standard": "^3.0.1",
"extract-text-webpack-plugin": "^2.0.0-beta.4",
......@@ -62,16 +59,18 @@
"file-loader": "^0.11.1",
"fs-extra": "^4.0.2",
"html-webpack-plugin": "^2.24.0",
"husky": "^0.14.3",
"joi-browser": "^10.0.6",
"json-loader": "^0.5.4",
"lint-staged": "^6.0.0",
"node-sass": "^4.5.2",
"pouchdb-adapter-memory": "^6.1.1",
"prettier": "^1.9.2",
"react-hot-loader": "^3.0.0-beta.6",
"regenerator-runtime": "^0.11.0",
"sass-loader": "^6.0.3",
"script-loader": "^0.7.0",
"smtp-server": "^3.3.0",
"standard": "^10.0.1",
"string-replace-loader": "^1.2.0",
"style-loader": "^0.17.0",
"testcafe": "^0.18.2",
......@@ -82,11 +81,13 @@
"webpack-hot-middleware": "^2.20.0"
},
"scripts": {
"lint": "eslint --ext js,jsx app test webpack",
"lint": "eslint --ext js,jsx app config test webpack",
"start": "pubsweet start",
"setupdb": "pubsweet setupdb",
"create:collection": "node scripts/add-collection.js",
"test": "NODE_ENV=test testcafe chrome 'test/**/*.test.js' --screenshots-on-fail -s test/screenshots"
"precommit": "lint-staged",
"test":
"NODE_ENV=test testcafe chrome 'test/**/*.test.js' --screenshots-on-fail -s test/screenshots"
},
"repository": "https://gitlab.coko.foundation/pubsweet/pubsweet-starter",
"license": "MIT"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment