This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2025-06-29 18:46:12 +00:00

149 lines
4.1 KiB
JSON

{
"description": "Development tools",
"type": "module",
"scripts": {
"test": "NODE_OPTIONS=--experimental-vm-modules jest --reporters=default --reporters=jest-junit",
"cover": "NODE_OPTIONS=--experimental-vm-modules jest --coverage",
"format": "npx prettier -w './{,!(.cache|coverage)/**/!(vendor)/}*.{js,mjs,css}'",
"lint-js": "npx eslint './{,!(.cache|coverage)/**/!(vendor)/}*.{js,mjs}' --cache=true --cache-location=./node_modules/.cache/eslint",
"lint-js-fix": "npx eslint --fix './{,!(.cache|coverage)/**/!(vendor)/}*.{js,mjs}' --fix --cache=true --cache-location=./node_modules/.cache/eslint",
"lint-css": "npx stylelint './{,!(.cache|coverage)/**/!(vendor)/}*.css' --cache=true --cache-location=./node_modules/.cache/stylelint",
"lint-css-fix": "npx stylelint './{,!(.cache|coverage)/**/!(vendor)/}*.css' --fix --cache=true --cache-location=./node_modules/.cache/stylelint",
"ts": "npx tsc ./plugins/**/**/**.js ./web/**/**/**.js --lib es2021 --allowJs --checkJs --noEmit --downlevelIteration"
},
"devDependencies": {
"@types/jest": "^29.5.7",
"browserslist": "^4.21.10",
"eslint": "^8.48.0",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^48.0.1",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"jest-junit": "^16.0.0",
"jest-serializer-html": "^7.1.0",
"prettier": "^3.0.3",
"prettier-plugin-go-template": "^0.0.15",
"stylelint": "^15.10.3",
"stylelint-config-standard": "^34.0.0",
"stylelint-no-unsupported-browser-features": "^7.0.0",
"stylelint-order": "^6.0.3",
"typescript": "^5.2.2"
},
"jest": {
"testEnvironment": "jsdom",
"transform": {},
"testMatch": [
"**/*_test.js"
],
"moduleFileExtensions": [
"js"
],
"cacheDirectory": "./node_modules/.cache/jest",
"coverageDirectory": "coverage",
"coverageReporters": [
"json",
"cobertura"
],
"snapshotSerializers": ["jest-serializer-html"],
"prettierPath": null
},
"jest-junit": {
"outputDirectory": "coverage/report",
"outputName": "js.xml"
},
"prettier": {
"printWidth": 90,
"tabWidth": 4,
"useTabs": true
},
"eslintConfig": {
"env": {
"browser": true,
"es2015": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:promise/recommended",
"plugin:compat/recommended",
"plugin:unicorn/recommended",
"plugin:jest/recommended",
"plugin:jest/style"
],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"plugins": [
"unicorn",
"jest"
],
"rules": {
"camelcase": "error",
"default-case": "error",
"eqeqeq": "error",
"new-cap": "error",
"no-promise-executor-return": "error",
"no-script-url": "error",
"no-throw-literal": "error",
"no-underscore-dangle": "error",
"no-unreachable-loop": "error",
"no-unused-expressions": "error",
"no-useless-return": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-regex-literals": "error",
"prefer-template": "error",
"require-await": "error",
"jest/no-commented-out-tests": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/filename-case": [
"off"
],
"unicorn/prefer-add-event-listener": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-logical-operator-over-ternary": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/template-indent": "off",
"unicorn/prefer-ternary": "off"
}
},
"stylelint": {
"extends": [
"stylelint-config-standard"
],
"plugins": [
"stylelint-order",
"stylelint-no-unsupported-browser-features"
],
"rules": {
"value-keyword-case": null,
"no-descending-specificity": null,
"property-no-vendor-prefix": null,
"selector-class-pattern": null,
"plugin/no-unsupported-browser-features": [
true,
{
"ignore": [
"multicolumn",
"css-appearance",
"css-text-indent"
]
}
]
}
},
"browserslist": [
"Chrome 108",
"Edge 108",
"Firefox 101",
"Opera 94",
"Safari 16.4"
]
}