Skip to content

Commit

Permalink
chore: add tsconfig.lint.json files
Browse files Browse the repository at this point in the history
Linting is now much quicker now we don't lint every project with  each project.
  • Loading branch information
ifiokjr committed Jun 16, 2019
1 parent 83afbd0 commit 1752e65
Show file tree
Hide file tree
Showing 45 changed files with 112 additions and 23 deletions.
2 changes: 1 addition & 1 deletion @remirror/api-documenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:declaration": "tsc -p ./tsconfig.prod.json --declarationMap",
"dev": "run-p dev:*",
"dev:declaration": "tsc -p ./tsconfig.prod.json --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"dependencies": {
Expand Down
4 changes: 4 additions & 0 deletions @remirror/api-documenter/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/core-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/core-extensions/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"document": "node ../api-documenter/lib/start.js markdown --input-folder temp --output-folder ../../docs/api/@remirror",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/core/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/extension-code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/extension-code-block/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/extension-emoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/extension-emoji/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/extension-enhanced-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/extension-enhanced-link/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/extension-epic-mode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/extension-epic-mode/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/extension-mention/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/extension-mention/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/extension-multicursor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/extension-multicursor/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/react-components/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/react-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/react-ssr/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/react-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/react-utils/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/react/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/renderer-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/renderer-react/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p watch:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"test": "jest",
"test:live": "cross-env TEST_ENV=live jest",
"typecheck": "tsc -p ./tsconfig.json --noEmit",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/showcase/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/ui-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dev": "run-p watch:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"test": "jest",
"test:live": "cross-env TEST_ENV=live jest",
"typecheck": "tsc -p ./tsconfig.json --noEmit",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/ui-markdown/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/ui-twitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p dev:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/ui-twitter/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion @remirror/ui-wysiwyg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "run-p watch:*",
"dev:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s --watch",
"dev:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap --watch",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"test": "jest",
"test:live": "cross-env TEST_ENV=live jest",
"typecheck": "tsc -p ./tsconfig.json --noEmit",
Expand Down
4 changes: 4 additions & 0 deletions @remirror/ui-wysiwyg/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
3 changes: 2 additions & 1 deletion examples/with-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
"build": "next build",
"dev": "next",
"dev:ci": "next dev -p 3001",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"start": "next start",
"type-check": "tsc",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"dependencies": {
"@remirror/core": "0.1.0",
"@remirror/core-extensions": "0.1.0",
"@remirror/react": "0.1.0",
"@remirror/showcase": "0.1.0",
"@remirror/ui-twitter": "0.1.0",
Expand Down
4 changes: 4 additions & 0 deletions examples/with-next/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"lint:js": "eslint support *.js @remirror docs",
"lint:prettier": "prettier --check \"**/*.{json,yml,yaml,md,mdx}\"",
"lint:support": "tslint --project support/tsconfig.json --config support/tslint.json",
"lint:ts": "lerna run lint --parallel",
"lint:ts": "lerna run lint --parallel --no-bail",
"next:ci": "cd examples/with-next && yarn dev:ci",
"publish:alpha": "yarn if-clean run-s ci:checks:all lerna:publish:alpha",
"publish:minor": "yarn if-clean run-s ci:checks:all lerna:publish:minor",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-prosemirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "run-p build:*",
"build:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s",
"build:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/jest-prosemirror/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion packages/jest-remirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "run-p build:*",
"build:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s",
"build:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/jest-remirror/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}
2 changes: 1 addition & 1 deletion packages/remirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": "run-p build:*",
"build:babel": "babel src --out-dir lib --root-mode=upward --extensions \".ts,.tsx\" -s",
"build:declaration": "tsc -p ./tsconfig.prod.json --emitDeclarationOnly --declarationMap",
"lint": "tslint --project tsconfig.json --config ../../tslint.json",
"lint": "tslint --project tsconfig.lint.json --config ../../tslint.json",
"typecheck": "tsc -p ./tsconfig.json --noEmit"
},
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/remirror/tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"compilerOptions": { "baseUrl": "src", "paths": {} }
}

0 comments on commit 1752e65

Please sign in to comment.