@ui5/linter
Version:
A static code analysis tool for UI5
130 lines (129 loc) • 4.32 kB
JSON
{
"name": "@ui5/linter",
"version": "1.23.1",
"description": "A static code analysis tool for UI5",
"author": {
"name": "SAP SE",
"email": "openui5@sap.com",
"url": "https://www.sap.com"
},
"license": "Apache-2.0",
"keywords": [
"openui5",
"sapui5",
"ui5",
"development",
"linter"
],
"repository": {
"type": "git",
"url": "git+https://github.com/UI5/linter.git"
},
"bugs": {
"url": "https://github.com/UI5/linter/issues"
},
"bin": {
"ui5lint": "bin/ui5lint.js"
},
"type": "module",
"types": "lib/index.d.ts",
"scripts": {
"build": "npm run clean-lib && tsc -p tsconfig.build.json",
"build-test": "tsc --noEmit -p .",
"build-watch": "npm run clean-lib && tsc -w -p tsconfig.build.json",
"check-engine": "check-engine-light -f npm-shrinkwrap.json .",
"check-licenses": "licensee --errors-only",
"clean-coverage": "rimraf coverage",
"clean-lib": "rimraf lib",
"clean-test-tmp": "rimraf test/tmp",
"coverage": "npm run clean-coverage && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"",
"knip": "knip --config knip.config.js",
"lint": "eslint .",
"lint:commit": "commitlint",
"prepare": "node ./.husky/skip.js || husky",
"test": "npm run lint && npm run build-test && npm run coverage && npm run e2e && npm run knip && npm run check-licenses",
"unit": "ava",
"e2e": "npm run clean-test-tmp && npm run build && npm run e2e:ui5lint && npm run e2e:ui5lint-fix && npm run e2e:test",
"e2e:ui5lint": "TEST_E2E_TMP=$PWD/test/tmp/e2e && mkdir -p $TEST_E2E_TMP && cd test/fixtures/linter/projects/com.ui5.troublesome.app && npm exec ui5lint -- --format=json > $TEST_E2E_TMP/ui5lint-results.json 2> $TEST_E2E_TMP/stderr.log || true",
"e2e:ui5lint-fix": "TEST_E2E_TMP=$PWD/test/tmp/e2e && mkdir -p $TEST_E2E_TMP && cp -r test/fixtures/linter/projects/com.ui5.troublesome.app $TEST_E2E_TMP && cd $TEST_E2E_TMP/com.ui5.troublesome.app && npm exec ui5lint -- --fix --format=json > $TEST_E2E_TMP/ui5lint-results-fix.json 2> $TEST_E2E_TMP/stderr-fix.log || true",
"e2e:test": "ava --config ava-e2e.config.js",
"e2e:test-update-snapshots": "ava --config ava-e2e.config.js --update-snapshots",
"unit-debug": "ava debug",
"unit-update-snapshots": "ava --update-snapshots",
"unit-watch": "ava --watch",
"update-sapui5-types": "tsx scripts/update-sapui5-types.ts"
},
"files": [
"CHANGELOG.md",
"LICENSES/**",
"lib/**",
"npm-shrinkwrap.json",
"resources/**",
".reuse/**"
],
"engines": {
"node": "^20.11.0 || >=22.0.0",
"npm": ">= 8"
},
"exports": {
".": "./lib/index.js",
"./Ui5TypeInfoMatcher": "./lib/linter/ui5Types/Ui5TypeInfoMatcher.js",
"./package.json": "./package.json"
},
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.5",
"@jridgewell/trace-mapping": "^0.3.31",
"@sapui5/types": "1.136.19",
"@ui5/fs": "^4.0.6",
"@ui5/logger": "^4.0.2",
"@ui5/project": "^4.0.17",
"chalk": "^5.6.2",
"data-with-position": "^0.5.0",
"fast-xml-parser": "^5.9.3",
"figures": "^6.1.0",
"globals": "^17.7.0",
"he": "^1.2.0",
"json-source-map": "^0.6.1",
"magic-string": "^0.30.21",
"minimatch": "^10.2.5",
"sax-wasm": "^3.1.4",
"semver": "^7.8.5",
"typescript": "^5.9.3",
"update-notifier": "^7.3.1",
"yargs": "^17.7.3"
},
"devDependencies": {
"@commitlint/cli": "^20.5.3",
"@commitlint/config-conventional": "^20.5.3",
"@eslint/js": "^9.39.2",
"@istanbuljs/esm-loader-hook": "^0.3.0",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@stylistic/eslint-plugin": "5.10.0",
"@types/he": "^1.2.3",
"@types/json-source-map": "^0.6.0",
"@types/node": "20.16.15",
"@types/semver": "^7.7.1",
"@types/sinon": "^21.0.1",
"@types/update-notifier": "^6.0.8",
"@types/yargs": "^17.0.35",
"@types/yauzl-promise": "^4.0.1",
"@ui5-language-assistant/semantic-model": "^3.3.1",
"@ui5-language-assistant/semantic-model-types": "^3.3.1",
"@ui5/cli": "^4.0.57",
"ava": "^6.4.1",
"check-engine-light": "0.4.0",
"eslint": "^9.39.4",
"eslint-plugin-ava": "^15.1.0",
"esmock": "^2.7.6",
"husky": "^9.1.7",
"knip": "^6.18.0",
"licensee": "^11.1.1",
"nyc": "^18.0.0",
"rimraf": "^6.1.3",
"sinon": "^22.0.0",
"tsx": "4.22.4",
"typescript-eslint": "8.61.1",
"ui5-test-runner": "^5.13.1",
"yauzl-promise": "^4.0.0"
}
}