1 | {
|
2 | "name": "eslint-plugin-sonarjs",
|
3 | "version": "0.15.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": ">=12"
|
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 || ^8.0.0"
|
34 | },
|
35 | "devDependencies": {
|
36 | "@babel/core": "7.18.9",
|
37 | "@babel/eslint-parser": "7.18.9",
|
38 | "@babel/plugin-proposal-export-default-from": "^7.18.9",
|
39 | "@babel/plugin-proposal-function-bind": "^7.18.9",
|
40 | "@babel/preset-env": "7.18.9",
|
41 | "@babel/preset-flow": "7.18.6",
|
42 | "@babel/preset-react": "7.18.6",
|
43 | "@types/eslint": "8.4.5",
|
44 | "@types/jest": "28.1.6",
|
45 | "@types/lodash": "4.14.182",
|
46 | "@types/minimist": "1.2.2",
|
47 | "@types/node": "14.14.31",
|
48 | "@typescript-eslint/experimental-utils": "5.30.7",
|
49 | "@typescript-eslint/parser": "5.30.7",
|
50 | "eslint": "8.20.0",
|
51 | "eslint-config-prettier": "8.5.0",
|
52 | "eslint-plugin-import": "2.26.0",
|
53 | "eslint-plugin-notice": "0.9.10",
|
54 | "eslint-plugin-sonarjs": "0.14.0",
|
55 | "jest": "28.1.3",
|
56 | "jest-sonar-reporter": "2.0.0",
|
57 | "lint-staged": "13.0.3",
|
58 | "lodash": "4.17.21",
|
59 | "minimist": "1.2.6",
|
60 | "prettier": "2.7.1",
|
61 | "rimraf": "3.0.2",
|
62 | "ts-jest": "28.0.7",
|
63 | "ts-node": "10.9.1",
|
64 | "typescript": "4.7.4"
|
65 | },
|
66 | "prettier": {
|
67 | "printWidth": 100,
|
68 | "trailingComma": "all",
|
69 | "singleQuote": true,
|
70 | "arrowParens": "avoid",
|
71 | "endOfLine": "lf"
|
72 | },
|
73 | "jest": {
|
74 | "roots": [
|
75 | "tests",
|
76 | "src"
|
77 | ],
|
78 | "collectCoverageFrom": [
|
79 | "src/**/*.ts"
|
80 | ],
|
81 | "globals": {
|
82 | "ts-jest": {
|
83 | "babelConfig": false
|
84 | }
|
85 | },
|
86 | "moduleFileExtensions": [
|
87 | "ts",
|
88 | "js",
|
89 | "json"
|
90 | ],
|
91 | "transform": {
|
92 | "^.+\\.ts$": "ts-jest"
|
93 | },
|
94 | "testMatch": [
|
95 | "<rootDir>/tests/**/*.test.ts"
|
96 | ]
|
97 | },
|
98 | "lint-staged": {
|
99 | "*.{ts,tsx,js}": [
|
100 | "eslint",
|
101 | "prettier --write",
|
102 | "git add"
|
103 | ],
|
104 | "*.json": [
|
105 | "prettier --write",
|
106 | "git add"
|
107 | ]
|
108 | }
|
109 | }
|