Skip to content

Commit

Permalink
chore: upgrade cli-style
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed May 23, 2024
1 parent 134f926 commit c9cf26d
Show file tree
Hide file tree
Showing 3 changed files with 987 additions and 705 deletions.
17 changes: 2 additions & 15 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
/* eslint-disable import/no-unused-modules */
const { config } = require('@dhis2/cli-style')

Check failure on line 1 in .stylelintrc.js

View workflow job for this annotation

GitHub Actions / lint

No exports found

module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
plugins: ['stylelint-no-unsupported-browser-features'],
rules: {
'font-family-name-quotes': 'always-where-recommended',
'color-named': 'never',
'declaration-no-important': true,
'font-weight-notation': 'numeric',
'plugin/no-unsupported-browser-features': [
true,
{
severity: 'warning',
},
],
},
extends: [config.stylelint],
}
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
"start:nobrowser": "BROWSER=none d2-app-scripts start",
"test": "d2-app-scripts test --coverage",
"test:watch": "d2-app-scripts test --watch",
"lint": "d2-style check && yarn lint:css",
"lint:css": "stylelint './src/**/*.css' && prettier './src/**/*.css' --check",
"format": "d2-style apply && yarn format:css",
"format:css": "prettier './src/**/*.css' --write",
"lint": "d2-style check",
"format": "d2-style apply",
"cypress": "start-server-and-test 'yarn start:nobrowser' 3000 'yarn exec cypress open'"
},
"dependencies": {
Expand All @@ -33,7 +31,7 @@
"@badeball/cypress-cucumber-preprocessor": "^20.0.3",
"@cypress/webpack-preprocessor": "^6.0.1",
"@dhis2/cli-app-scripts": "^10.3.9",
"@dhis2/cli-style": "^10.4.1",
"@dhis2/cli-style": "^10.7.0",
"@testing-library/cypress": "^10.0.1",
"@testing-library/react-hooks": "^8.0.1",
"cypress": "^13.7.2",
Expand All @@ -44,11 +42,7 @@
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"identity-obj-proxy": "^3.0.0",
"start-server-and-test": "^2.0.3",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
"stylelint-no-unsupported-browser-features": "^5.0.1"
"start-server-and-test": "^2.0.3"
},
"jest": {
"setupFilesAfterEnv": [
Expand Down
Loading

0 comments on commit c9cf26d

Please sign in to comment.