UNPKG

@ui5/linter

Version:

A static code analysis tool for UI5

125 lines (124 loc) 4.22 kB
{ "name": "@ui5/linter", "version": "1.16.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-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\"", "depcheck": "depcheck --ignores @commitlint/config-conventional,@istanbuljs/esm-loader-hook,rimraf,sap,mycomp,@ui5/linter,@ui5/cli,ui5-test-runner", "hooks:pre-push": "npm run lint:commit", "lint": "eslint .", "lint:commit": "commitlint -e", "prepare": "node ./.husky/skip.js || husky", "test": "npm run lint && npm run build-test && npm run coverage && npm run e2e && npm run depcheck && 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", "./package.json": "./package.json" }, "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.4", "@jridgewell/trace-mapping": "^0.3.29", "@sapui5/types": "1.136.2", "@ui5/fs": "^4.0.1", "@ui5/logger": "^4.0.1", "@ui5/project": "^4.0.4", "chalk": "^5.4.1", "data-with-position": "^0.5.0", "fast-xml-parser": "^5.2.5", "figures": "^6.1.0", "globals": "^16.3.0", "he": "^1.2.0", "json-source-map": "^0.6.1", "magic-string": "^0.30.17", "minimatch": "^10.0.3", "sax-wasm": "^3.0.6", "typescript": "^5.8.3", "update-notifier": "^7.3.1", "yargs": "^17.7.2" }, "devDependencies": { "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@eslint/js": "^9.28.0", "@istanbuljs/esm-loader-hook": "^0.3.0", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@stylistic/eslint-plugin": "^4.4.1", "@types/he": "^1.2.3", "@types/node": "20.11.0", "@types/sinon": "^17.0.4", "@types/update-notifier": "^6.0.8", "@types/yargs": "^17.0.33", "@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.19", "ava": "^6.4.0", "depcheck": "^1.4.7", "eslint": "^9.30.1", "eslint-plugin-ava": "^15.0.1", "esmock": "^2.7.1", "husky": "^9.1.7", "licensee": "^11.1.1", "nyc": "^17.1.0", "rimraf": "^6.0.1", "sinon": "^21.0.0", "tsx": "^4.20.3", "typescript-eslint": "^8.36.0", "ui5-test-runner": "^5.8.1", "yauzl-promise": "^4.0.0" } }