1
0
Fork 0

Add ESLint

pull/6/head
Jonathan Clem 2019-05-21 10:34:23 -04:00
parent 618a7ec0f8
commit 20f0d3983a
No known key found for this signature in database
GPG Key ID: 48C5B22E9FD6E80F
4 changed files with 866 additions and 3 deletions

20
.eslintrc.json Normal file
View File

@ -0,0 +1,20 @@
{
"plugins": ["jest", "@typescript-eslint"],
"extends": ["plugin:github/es6"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"eslint-comments/no-use": "off",
"import/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "error"
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
}
}

843
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@
"build": "lerna run tsc", "build": "lerna run tsc",
"format": "prettier --write packages/*/src/**/*.ts", "format": "prettier --write packages/*/src/**/*.ts",
"format-check": "prettier --check packages/*/src/**/*.ts", "format-check": "prettier --check packages/*/src/**/*.ts",
"lint": "eslint packages/*/src/**/*.ts",
"new-package": "scripts/create-package", "new-package": "scripts/create-package",
"test": "jest" "test": "jest"
}, },
@ -13,6 +14,10 @@
"@types/jest": "^24.0.11", "@types/jest": "^24.0.11",
"@types/node": "^11.13.5", "@types/node": "^11.13.5",
"@types/signale": "^1.2.1", "@types/signale": "^1.2.1",
"@typescript-eslint/parser": "^1.9.0",
"eslint": "^5.16.0",
"eslint-plugin-github": "^2.0.0",
"eslint-plugin-jest": "^22.5.1",
"jest": "^24.7.1", "jest": "^24.7.1",
"jest-circus": "^24.7.1", "jest-circus": "^24.7.1",
"lerna": "^3.13.3", "lerna": "^3.13.3",

View File

@ -1,6 +1,5 @@
{ {
"compilerOptions": { "compilerOptions": {
"allowSyntheticDefaultImports": true,
"module": "commonjs", "module": "commonjs",
"strict": true, "strict": true,
"declaration": true, "declaration": true,