This commit is contained in:
Martin McKeaveney 2020-01-31 14:23:16 +00:00
parent 621cfddd68
commit 5790c52085
6 changed files with 5383 additions and 20 deletions

23
.eslintrc.json Normal file
View File

@ -0,0 +1,23 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"ignorePatterns": ["node_modules", "dist", "public"],
"plugins": ["prettier", "svelte3"],
"extends": ["eslint:recommended"],
"overrides": [
{
"files": ["**/*.svelte"],
"processor": "svelte3/svelte3"
}
],
"rules": {
"prettier/prettier": "error"
}
}

7
.prettierrc Normal file
View File

@ -0,0 +1,7 @@
{
"tabWidth": 2,
"semi": false,
"singleQuote": false,
"trailingComma": "es5",
"plugins": ["prettier-plugin-svelte"]
}

View File

@ -2,7 +2,12 @@
"name": "root", "name": "root",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"lerna": "^3.14.1" "eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-svelte3": "^2.7.3",
"lerna": "^3.14.1",
"prettier": "^1.19.1",
"prettier-plugin-svelte": "^0.7.0"
}, },
"dependencies": {}, "dependencies": {},
"scripts": { "scripts": {
@ -10,6 +15,9 @@
"build": "lerna run build", "build": "lerna run build",
"initialise": "lerna run initialise", "initialise": "lerna run initialise",
"clean": "lerna clean", "clean": "lerna clean",
"dev": "lerna run --parallel --stream dev:builder" "dev": "lerna run --parallel --stream dev:builder",
"test": "lerna run test",
"lint": "eslint packages",
"format": "prettier --write \"{,!(node_modules)/**/}*.{js,jsx}\""
} }
} }

View File

@ -1,12 +0,0 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
}
}

View File

@ -51,15 +51,9 @@
"@babel/plugin-transform-runtime": "^7.4.4", "@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.5", "@babel/preset-env": "^7.4.5",
"@babel/runtime": "^7.4.5", "@babel/runtime": "^7.4.5",
"babel-eslint": "^10.0.2",
"babel-jest": "^23.6.0", "babel-jest": "^23.6.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"cross-env": "^5.1.4", "cross-env": "^5.1.4",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.0",
"jest": "^24.8.0", "jest": "^24.8.0",
"readable-stream": "^3.1.1", "readable-stream": "^3.1.1",
"regenerator-runtime": "^0.11.1", "regenerator-runtime": "^0.11.1",

5343
yarn.lock Normal file

File diff suppressed because it is too large Load Diff