|
51 | 51 | "test:web": "test ! $(find tests -name \"*.ts\") || jest -w=1",
|
52 | 52 | "test:python": "test ! $(find tests -name \"*.py\") || python setup.py test",
|
53 | 53 | "test": "npm run test:web && npm run test:python",
|
54 |
| - "lint": "tslint -c tslint.json -p . 'src/**/*.ts?(x)' 'tests/**/*.ts?(x)'", |
| 54 | + "lint": "eslint src/**/*.ts{,x}", |
| 55 | + "lint:fix": "eslint --fix src/**/*.ts{,x}", |
55 | 56 | "docs:web": "typedoc --options typedoc.json src/**.ts",
|
56 | 57 | "docs:python": "sphinx-apidoc -o docs -f ./tdp_core && sphinx-build ./docs build/docs",
|
57 | 58 | "docs": "npm run docs:web && npm run docs:python",
|
|
77 | 78 | "docker": "docker build -t tdp_core -f deploy/Dockerfile .",
|
78 | 79 | "db-migration:base": "docker-compose run api python phovea_server/__main__.py --env dev db-migration",
|
79 | 80 | "db-migration": "npm run db-migration:base exec --",
|
80 |
| - "db-migration:list": "npm run db-migration:base list --" |
| 81 | + "db-migration:list": "npm run db-migration:base list --", |
| 82 | + "precommit": "npm run build" |
81 | 83 | },
|
82 | 84 | "dependencies": {
|
83 | 85 | "d3": "~3.5.17",
|
|
113 | 115 | "@types/react": "^16.9.23",
|
114 | 116 | "@types/react-dom": "^16.9.5",
|
115 | 117 | "@types/papaparse": "~5.2.4",
|
| 118 | + "@typescript-eslint/eslint-plugin": "^5.9.0", |
| 119 | + "@typescript-eslint/parser": "^5.9.0", |
| 120 | + "eslint": "^8.6.0", |
| 121 | + "eslint-config-airbnb": "^19.0.4", |
| 122 | + "eslint-config-airbnb-typescript": "^16.1.0", |
| 123 | + "eslint-config-prettier": "^8.3.0", |
| 124 | + "eslint-plugin-import": "^2.25.4", |
| 125 | + "eslint-plugin-jest": "^25.3.4", |
| 126 | + "eslint-plugin-jsx-a11y": "^6.5.1", |
| 127 | + "eslint-plugin-prettier": "^4.0.0", |
| 128 | + "eslint-plugin-react": "^7.28.0", |
| 129 | + "eslint-plugin-react-hooks": "^4.3.0", |
| 130 | + "husky": "^7.0.4", |
116 | 131 | "identity-obj-proxy": "~3.0.0",
|
117 | 132 | "jest": "~26.6.3",
|
118 | 133 | "jest-raw-loader": "~1.0.1",
|
| 134 | + "prettier": "^2.5.1", |
119 | 135 | "rimraf": "~3.0.2",
|
120 | 136 | "shx": "~0.3.3",
|
121 | 137 | "ts-jest": "~26.4.4",
|
122 | 138 | "tslib": "~2.0.3",
|
123 |
| - "tslint": "~5.20.1", |
124 | 139 | "typedoc": "~0.19.2",
|
125 | 140 | "typescript": "~3.9.7"
|
126 | 141 | }
|
|
0 commit comments