1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/package.json
Anderson Leite 20fe65ce41 Implement tslint for core files (#5952)
Fixes #5845 

Implement tslint for core files

**What is this?**
Implements tslint for both next and next-server, but keeps standardjs/eslint for the .js files that are still there, we're gradually migrating to Typescript.

**How does it work?**
Before every commit (pre-commit) we execute the following `tslint` command:
`tslint -c tslint.json 'packages/**/*.ts`

**TSLint Rules**
In order to avoid as much changes as possible I marked some rules as false. This way we can improve the linter but making sure this step will not break things. (see tslint.json)

**Note**
After merging this PR, you'll need to update your dependencies since it adds tslint to package.json
2018-12-31 14:44:27 +01:00

103 lines
2.9 KiB
JSON

{
"name": "nextjs-project",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"lerna": "lerna",
"bootstrap": "lerna bootstrap",
"dev": "lerna run build --stream --parallel",
"testonly": "jest",
"testall": "npm run testonly -- --coverage --forceExit --runInBand --reporters=default --reporters=jest-junit",
"pretest": "npm run lint",
"test": "npm run testall || npm run testall",
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
"lint": "lerna run typescript && standard && standard --parser typescript-eslint-parser --plugin typescript packages/**/*.ts",
"lint-fix": "standard --fix && standard --fix --parser typescript-eslint-parser --plugin typescript packages/**/*.ts",
"prettier": "prettier --single-quote --no-semi --write examples/**/*.js && yarn lint-fix",
"typescript": "lerna run typescript",
"prepublish": "lerna run prepublish",
"publish-canary": "lerna version prerelease --preid canary --force-publish",
"lint-staged": "lint-staged"
},
"pre-commit": "lint-staged",
"lint-staged": {
"examples/**/*.js": [
"prettier --write --single-quote --no-semi",
"standard --fix",
"git add"
],
"*.js": [
"standard --fix",
"git add"
],
"*.ts": [
"tslint -c tslint.json 'packages/**/*.ts'",
"git add"
],
"packages/**/bin/*": [
"standard --fix",
"git add"
]
},
"standard": {
"parser": "babel-eslint",
"ignore": [
"packages/**/*.ts",
"**/*.d.ts",
"**/node_modules/**",
"examples/with-ioc/**",
"examples/with-kea/**",
"examples/with-mobx/**"
]
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
"@babel/preset-flow": "7.0.0",
"@babel/preset-react": "7.0.0",
"@zeit/next-css": "1.0.2-canary.2",
"@zeit/next-sass": "1.0.2-canary.2",
"@zeit/next-typescript": "1.1.2-canary.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
"babel-plugin-transform-define": "1.3.0",
"benchmark": "2.1.4",
"cheerio": "0.22.0",
"chromedriver": "2.42.0",
"clone": "2.1.1",
"coveralls": "3.0.2",
"eslint-plugin-typescript": "0.14.0",
"express": "4.16.3",
"fkill": "5.1.0",
"flatten": "1.0.2",
"get-port": "3.2.0",
"isomorphic-unfetch": "3.0.0",
"jest-cli": "23.6.0",
"jest-junit": "^5.0.0",
"lerna": "^3.4.0",
"lint-staged": "4.2.3",
"mkdirp": "0.5.1",
"node-fetch": "1.7.3",
"node-notifier": "5.1.2",
"node-sass": "4.9.2",
"pre-commit": "1.2.2",
"prettier": "1.15.3",
"react": "16.6.3",
"react-dom": "16.6.3",
"rimraf": "2.6.2",
"standard": "11.0.1",
"taskr": "1.1.0",
"tslint": "5.12.0",
"typescript": "3.1.1",
"typescript-eslint-parser": "21.0.1",
"wait-port": "0.2.2",
"wd": "1.10.3",
"webpack-bundle-analyzer": "3.0.3"
},
"engines": {
"node": ">= 8.0.0"
}
}