1 | {
|
2 | "name": "eslint-plugin-sonarjs",
|
3 | "version": "0.10.0",
|
4 | "description": "SonarJS rules for ESLint",
|
5 | "main": "lib/index.js",
|
6 | "types": "lib/index.d.ts",
|
7 | "repository": "git@github.com:SonarSource/eslint-plugin-sonarjs.git",
|
8 | "license": "LGPL-3.0",
|
9 | "keywords": [
|
10 | "sonarjs",
|
11 | "eslint",
|
12 | "eslintplugin"
|
13 | ],
|
14 | "bugs": {
|
15 | "url": "https://github.com/SonarSource/eslint-plugin-sonarjs/issues"
|
16 | },
|
17 | "homepage": "https://github.com/SonarSource/eslint-plugin-sonarjs",
|
18 | "engines": {
|
19 | "node": ">=10"
|
20 | },
|
21 | "scripts": {
|
22 | "build": "rimraf lib && npm run check-format && tsc -d -p tsconfig-src.json",
|
23 | "test": "jest",
|
24 | "ruling": "ts-node --files ruling/index.ts",
|
25 | "typecheck": "tsc -p tsconfig.json",
|
26 | "lint": "eslint --ext js,ts src tests ruling/index.ts",
|
27 | "precommit": "lint-staged && npm run typecheck",
|
28 | "prepack": "npm run build",
|
29 | "format": "prettier --write \"{src,tests}/**/*.ts\"",
|
30 | "check-format": "prettier --list-different \"{src,tests}/**/*.ts\""
|
31 | },
|
32 | "peerDependencies": {
|
33 | "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
34 | },
|
35 | "devDependencies": {
|
36 | "@types/jest": "26.0.20",
|
37 | "@types/lodash": "4.14.106",
|
38 | "@types/minimist": "1.2.0",
|
39 | "@types/node": "14.14.25",
|
40 | "@typescript-eslint/experimental-utils": "4.28.0",
|
41 | "@typescript-eslint/parser": "4.28.0",
|
42 | "babel-eslint": "8.2.2",
|
43 | "eslint": "7.19.0",
|
44 | "eslint-config-prettier": "2.9.0",
|
45 | "eslint-plugin-import": "2.18.2",
|
46 | "eslint-plugin-notice": "0.6.7",
|
47 | "eslint-plugin-sonarjs": "0.9.1",
|
48 | "jest": "26.6.3",
|
49 | "jest-sonar-reporter": "2.0.0",
|
50 | "lint-staged": "7.3.0",
|
51 | "lodash": "4.17.21",
|
52 | "minimist": "1.2.3",
|
53 | "prettier": "2.3.0",
|
54 | "rimraf": "2.6.2",
|
55 | "ts-jest": "26.5.1",
|
56 | "ts-node": "9.1.1",
|
57 | "typescript": "4.3.4"
|
58 | },
|
59 | "prettier": {
|
60 | "printWidth": 100,
|
61 | "trailingComma": "all",
|
62 | "singleQuote": true,
|
63 | "arrowParens": "avoid",
|
64 | "endOfLine": "lf"
|
65 | },
|
66 | "jest": {
|
67 | "roots": [
|
68 | "tests",
|
69 | "src"
|
70 | ],
|
71 | "collectCoverageFrom": [
|
72 | "src/**/*.ts"
|
73 | ],
|
74 | "globals": {
|
75 | "ts-jest": {
|
76 | "babelConfig": false
|
77 | }
|
78 | },
|
79 | "moduleFileExtensions": [
|
80 | "ts",
|
81 | "js",
|
82 | "json"
|
83 | ],
|
84 | "transform": {
|
85 | "^.+\\.ts$": "ts-jest"
|
86 | },
|
87 | "testMatch": [
|
88 | "<rootDir>/tests/**/*.test.ts"
|
89 | ]
|
90 | },
|
91 | "lint-staged": {
|
92 | "*.{ts,tsx,js}": [
|
93 | "eslint",
|
94 | "prettier --write",
|
95 | "git add"
|
96 | ],
|
97 | "*.json": [
|
98 | "prettier --write",
|
99 | "git add"
|
100 | ]
|
101 | }
|
102 | }
|