@moduk/frontend 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduk/frontend",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
5
5
  "main": "lib/index.js",
6
6
  "sass": "src/css/index.scss",
@@ -57,8 +57,11 @@
57
57
  "examples:serve": "eleventy --serve",
58
58
  "format": "dprint fmt",
59
59
  "format:check": "dprint check",
60
- "lint": "eslint --ext .js --ext .ts --ext .tsx --ext .mjs --ext .mts --max-warnings 0 .",
61
- "lint:fix": "npm run lint -- --fix",
60
+ "lint": "npm run lint:source && npm run lint:styles",
61
+ "lint:fix": "npm run lint:source:fix",
62
+ "lint:source": "eslint --ext .js --ext .ts --ext .tsx --ext .mjs --ext .mts --max-warnings 0 .",
63
+ "lint:source:fix": "npm run lint:source -- --fix",
64
+ "lint:styles": "stylelint 'src/**/*.scss'",
62
65
  "dist:build": "npm run build && ts-node scripts/prepare-dist-package.ts",
63
66
  "dist:pack": "npm run dist:build && cd dist && npm pack",
64
67
  "playwright-install": "playwright install --with-deps",
@@ -107,14 +110,14 @@
107
110
  "@babel/register": "^7.22.5",
108
111
  "@commitlint/cli": "^17.7.1",
109
112
  "@commitlint/config-conventional": "^17.7.0",
110
- "@playwright/test": "^1.37.0",
111
- "@release-it/conventional-changelog": "^7.0.0",
113
+ "@playwright/test": "^1.37.1",
114
+ "@release-it/conventional-changelog": "^7.0.1",
112
115
  "@testing-library/dom": "^9.3.1",
113
116
  "@testing-library/jest-dom": "^6.1.2",
114
117
  "@testing-library/react": "^14.0.0",
115
118
  "@testing-library/user-event": "^14.4.3",
116
- "@types/lodash": "^4.14.195",
117
- "@types/node": "^18.16.19",
119
+ "@types/lodash": "^4.14.197",
120
+ "@types/node": "^18.17.14",
118
121
  "@types/nunjucks": "^3.2.3",
119
122
  "@types/react": "^18.2.21",
120
123
  "@types/react-dom": "^18.2.7",
@@ -123,33 +126,35 @@
123
126
  "babel-loader": "^9.1.3",
124
127
  "babel-plugin-inline-react-svg": "^2.0.2",
125
128
  "babel-plugin-module-resolver": "^5.0.0",
126
- "concurrently": "^8.2.0",
127
- "dprint": "^0.38.2",
129
+ "concurrently": "^8.2.1",
130
+ "dprint": "^0.40.2",
128
131
  "eslint": "^8.48.0",
129
132
  "eslint-config-airbnb-base": "^15.0.0",
130
- "eslint-import-resolver-typescript": "^3.5.5",
133
+ "eslint-import-resolver-typescript": "^3.6.0",
131
134
  "eslint-plugin-eslint-comments": "^3.2.0",
132
135
  "eslint-plugin-import": "^2.28.1",
133
136
  "eslint-plugin-react": "^7.33.2",
134
137
  "eslint-plugin-react-hooks": "^4.6.0",
135
138
  "eslint-plugin-unicorn": "^48.0.1",
136
- "glob": "^10.2.2",
139
+ "glob": "^10.3.4",
137
140
  "happy-dom": "^10.11.2",
138
141
  "husky": "^8.0.3",
139
142
  "lint-staged": "^14.0.1",
140
143
  "postcss-cli": "^10.1.0",
141
144
  "postcss-fail-on-warn": "^0.2.1",
142
- "postcss-preset-env": "^9.1.2",
145
+ "postcss-preset-env": "^9.1.3",
143
146
  "react-merge-refs": "^2.0.2",
144
147
  "release-it": "^16.1.5",
145
- "sass": "^1.63.4",
148
+ "sass": "^1.66.1",
146
149
  "sass-true": "^7.0.0",
147
150
  "shelljs": "^0.8.5",
148
151
  "shx": "^0.3.4",
152
+ "stylelint": "^15.10.3",
153
+ "stylelint-config-standard-scss": "^11.0.0",
149
154
  "ts-node": "^10.9.1",
150
155
  "tsconfig-paths": "^4.2.0",
151
156
  "typescript": "^5.0.4",
152
- "vitest": "^0.34.1",
157
+ "vitest": "^0.34.3",
153
158
  "webpack": "^5.88.2",
154
159
  "webpack-cli": "^5.1.4"
155
160
  },
@@ -158,7 +163,11 @@
158
163
  "dprint fmt",
159
164
  "eslint --max-warnings 0"
160
165
  ],
161
- "*.{md,scss,yaml,yml}": [
166
+ "*.{scss}": [
167
+ "dprint fmt",
168
+ "stylelint"
169
+ ],
170
+ "*.{md,yaml,yml}": [
162
171
  "dprint fmt"
163
172
  ]
164
173
  },