|
9 | 9 | "prepublish": "yarn run lint && yarn build", |
10 | 10 | "build": "rimraf lib && tsc", |
11 | 11 | "coverage": "jest --coverage --runInBand", |
12 | | - "lint": "tslint \"src/**/*.ts\"", |
13 | | - "fix": "tslint \"src/**/*.ts\" --fix", |
| 12 | + "lint": "eslint src/**/*.{ts,tsx,js,jsx}", |
| 13 | + "fix": "eslint src/**/*.{ts,tsx,js,jsx} --fix", |
14 | 14 | "test": "jest --runInBand", |
15 | 15 | "release": "npx -p semantic-release -p @semantic-release/git -p @semantic-release/changelog semantic-release", |
16 | 16 | "prepare": "npm run build" |
17 | 17 | }, |
18 | 18 | "devDependencies": { |
19 | 19 | "@types/jest": "^23.3.5", |
20 | | - "@types/node": "^10.11.7", |
| 20 | + "@types/node": "^20.6.0", |
| 21 | + "@typescript-eslint/eslint-plugin": "^6.7.0", |
| 22 | + "@typescript-eslint/parser": "^6.7.0", |
21 | 23 | "coveralls": "^3.0.2", |
| 24 | + "eslint": "^8.49.0", |
22 | 25 | "husky": "^1.1.2", |
23 | 26 | "jest": "^28.1.3", |
24 | 27 | "lint-staged": "^7.3.0", |
25 | 28 | "mysql2": "^2.1.0", |
26 | 29 | "pg": "^8.4.2", |
27 | 30 | "rimraf": "^2.6.2", |
28 | 31 | "ts-jest": "28.0.7", |
29 | | - "tslint": "^5.11.0", |
30 | | - "typescript": "^4.7.3" |
| 32 | + "typescript": "^5.2.2" |
31 | 33 | }, |
32 | 34 | "dependencies": { |
33 | | - "casbin": "^5.11.5", |
| 35 | + "casbin": "^5.27.0", |
34 | 36 | "reflect-metadata": "^0.1.13", |
35 | | - "typeorm": "^0.3.6" |
| 37 | + "typeorm": "^0.3.17" |
36 | 38 | }, |
37 | 39 | "files": [ |
38 | 40 | "lib", |
|
68 | 70 | "url": "https://github.com/node-casbin/typeorm-adapter/issues" |
69 | 71 | }, |
70 | 72 | "lint-staged": { |
71 | | - "*.{ts,js}": [ |
72 | | - "tslint --fix", |
| 73 | + "*.{ts,tsx,js,jsx}": [ |
| 74 | + "eslint --fix", |
73 | 75 | "git add" |
74 | 76 | ] |
75 | 77 | }, |
76 | 78 | "jest": { |
77 | | - "testURL": "http://localhost", |
| 79 | + "testEnvironmentOptions": { |
| 80 | + "url": "http://localhost" |
| 81 | + }, |
78 | 82 | "transform": { |
79 | 83 | "^.+\\.(ts|tsx)$": "ts-jest" |
80 | 84 | }, |
|
0 commit comments