Skip to content

Commit

Permalink
Use shared eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberixae committed Feb 28, 2020
1 parent 5268c1d commit f13ff07
Show file tree
Hide file tree
Showing 8 changed files with 1,601 additions and 1,520 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
lib
tsconfig.eslint.json
51 changes: 0 additions & 51 deletions .eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"eslint-config-maasglobal-ts"
]
}
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,32 @@
"scripts": {
"test": "jest --no-cache",
"clean": "rm -rf lib",
"typecheck": "tsc -p src/tsconfig.json",
"build": "yarn clean && tsc",
"eslint": "eslint --max-warnings=0 '**/*.{ts,js,json}' --ignore-path .gitignore",
"eslint": "eslint --max-warnings=0 '**/*.{ts,js,json}'",
"lint": "yarn eslint",
"ci": "yarn lint && yarn test && yarn build",
"ci": "yarn lint && yarn typecheck && yarn test && yarn build",
"deploy-npm": "yarn ci && yarn publish"
},
"peerDependencies": {
"fp-ts": "^2.0.0"
},
"devDependencies": {
"@types/jest": "^24.0.12",
"@typescript-eslint/eslint-plugin": "^2.1.0",
"@typescript-eslint/parser": "^2.1.0",
"eslint": "^6.3.0",
"eslint-config-prettier": "^6.2.0",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"eslint": "^6.8.0",
"eslint-config-maasglobal-ts": "^0.0.2",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-json": "^1.4.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-json": "^2.1.0",
"eslint-plugin-prettier": "^3.1.2",
"fp-ts": "^2.0.0",
"jest": "^24.8.0",
"jest": "^25.1.0",
"monocle-ts": "^2.0.0",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-jest": "^25.2.1",
"typescript": "^3.5.1"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/helpers/crash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export const crashObject = (error: unknown): Error => {
};

export const crash = (error: unknown): IO<never> => () => {
// eslint-disable-next-line fp/no-throw
throw crashObject(error);
};
7 changes: 7 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": true
},
"exclude": []
}
12 changes: 12 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"include": [
"*.json",
"*.js",
"src/**/*.ts",
"./**/tsconfig.json"
],
"exclude": [
"node_modules"
]
}
Loading

0 comments on commit f13ff07

Please sign in to comment.