Skip to content

Commit

Permalink
Merge pull request #7881 from cfpb/josh_stylelint_upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewCityBoy authored Aug 10, 2023
2 parents a106dfe + b8ca75f commit 370a80c
Show file tree
Hide file tree
Showing 179 changed files with 508 additions and 624 deletions.
40 changes: 35 additions & 5 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,62 @@
at-rule-no-unknown -
This rule enforces only @ rules that appear in the CSS spec,
however, @plugin appears in Less, so should be ignored.
rule-empty-line-before -
Custom setting that differs from stylelint-config-standard.
color-function-notation -
Set to 'legacy' to support older browsers in our browserslist (for now).
declaration-block-no-redundant-longhand-properties -
Turned off.
TODO: Turn on this rule and work out longhand properties.
declaration-empty-line-before -
Turned off.
TODO: Turn on this rule and work out what style we want.
declaration-property-value-no-unknown -
Turned off for Less per documentation guidance.
function-no-unknown -
Ignore the 'unit' helper function that comes from Less.
media-feature-range-notation -
Prefer prefixed values, since Less doesn't support ranges.
no-descending-specificity -
Turned off, but probably shouldn't be.
TODO: Turn on this rule and see if issues can be fixed.
number-max-precision -
TODO: See if long decimal values can be shortened using the unit helper.
rule-empty-line-before -
Custom setting that differs from stylelint-config-standard.
selector-id-pattern -
Turned off.
TODO: Turn on this rule and work out regex for BEM syntax.
selector-class-pattern -
Turned off.
TODO: Turn on this rule and work out regex for BEM syntax.
less/color-no-invalid-hex
less/no-duplicate-variables
Both of the above settings are turned off till
https://github.com/ssivanatarajan/stylelint-less/issues/6 is addressed.
*/
module.exports = {
extends: ['stylelint-config-recommended-less', 'stylelint-config-prettier'],
extends: ['stylelint-config-standard'],
plugins: ['stylelint-less'],
ignoreFiles: ['packages/**/node_modules/**/*.less'],
customSyntax: 'postcss-less',
rules: {
'at-rule-no-unknown': [true, { ignoreAtRules: 'plugin' }],
'color-function-notation': ['legacy'],
'declaration-block-no-redundant-longhand-properties': null,
'declaration-empty-line-before': null,
'function-name-case': ['lower', { ignoreFunctions: ['filter'] }],
'declaration-property-value-no-unknown': null,
'function-no-unknown': [true, { ignoreFunctions: ['unit'] }],
'media-feature-range-notation': ['prefix'],
'no-descending-specificity': null,
'number-max-precision': 10,
'rule-empty-line-before': [
'always-multi-line',
{
except: 'first-nested',
ignore: ['after-comment', 'inside-block'],
},
],
'no-descending-specificity': null,
'selector-id-pattern': null,
'selector-class-pattern': null,
'less/color-no-invalid-hex': null,
'less/no-duplicate-variables': null,
},
Expand Down
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@babel-core-7.22.5.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@babel-parser-7.22.5.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@babel-runtime-7.22.5.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@sentry-core-7.56.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@sentry-node-7.56.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@sentry-types-7.56.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@sentry-utils-7.56.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/@types-node-20.3.1.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/acorn-8.9.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/aria-query-5.2.1.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/aria-query-5.3.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/browserslist-4.21.9.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/cachedir-2.3.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/cachedir-2.4.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/camelcase-keys-6.2.2.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/comment-parser-1.3.1.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/cosmiconfig-7.1.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/cosmiconfig-8.2.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/cross-fetch-3.1.6.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/cross-fetch-3.1.8.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added npm-packages-offline-cache/css-tree-2.3.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/dayjs-1.11.8.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/dayjs-1.11.9.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/decamelize-5.0.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/dedent-1.3.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/dedent-1.5.1.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/enquirer-2.3.6.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/enquirer-2.4.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/es-abstract-1.21.2.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/escodegen-2.0.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/escodegen-2.1.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/espree-9.6.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/fast-glob-3.2.12.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/fast-glob-3.3.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/hosted-git-info-2.8.9.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/is-typed-array-1.1.10.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/jsx-ast-utils-3.3.3.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/levn-0.3.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/make-dir-3.1.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/make-dir-4.0.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/mdn-data-2.0.30.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/meow-10.1.5.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/meow-9.0.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/node-fetch-2.6.11.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/node-fetch-2.6.12.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/node-releases-2.0.12.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/nwsapi-2.2.5.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/nwsapi-2.2.7.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/optionator-0.8.3.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/postcss-8.4.24.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/prelude-ls-1.1.2.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/quick-lru-4.0.1.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/quick-lru-5.1.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/read-pkg-5.2.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/read-pkg-6.0.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/read-pkg-up-7.0.1.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/read-pkg-up-8.0.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/redent-3.0.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/redent-4.0.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/semver-5.7.1.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/semver-5.7.2.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/semver-6.3.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/semver-7.5.3.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/signal-exit-4.1.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/strip-indent-3.0.0.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/strip-indent-4.0.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/stylelint-14.16.1.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/stylelint-15.10.2.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/stylelint-less-1.0.6.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/tough-cookie-2.5.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/trim-newlines-3.0.1.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/tslib-1.14.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/tslib-2.5.3.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/tslib-2.6.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/type-check-0.3.2.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/type-fest-0.18.1.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/type-fest-0.6.0.tgz
Binary file not shown.
Binary file removed npm-packages-offline-cache/type-fest-0.8.1.tgz
Binary file not shown.
Binary file added npm-packages-offline-cache/type-fest-1.4.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/word-wrap-1.2.3.tgz
Binary file not shown.
Binary file not shown.
Binary file removed npm-packages-offline-cache/yaml-1.10.2.tgz
Binary file not shown.
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
"browserslist": "> 0.5%, Chrome >= 76, Edge >= 98, Firefox >= 78, safari >= 12, not dead",
"dependencies": {
"@cfpb/cfpb-analytics": "0.1.4",
"@cfpb/cfpb-atomic-component": "0.27.3",
"@cfpb/cfpb-buttons": "0.27.3",
"@cfpb/cfpb-core": "0.27.3",
"@cfpb/cfpb-expandables": "0.27.3",
"@cfpb/cfpb-forms": "0.27.3",
"@cfpb/cfpb-grid": "0.27.0",
"@cfpb/cfpb-icons": "0.27.3",
"@cfpb/cfpb-layout": "0.27.3",
"@cfpb/cfpb-notifications": "0.27.3",
"@cfpb/cfpb-pagination": "0.27.3",
"@cfpb/cfpb-tables": "0.27.3",
"@cfpb/cfpb-typography": "0.27.3",
"@cfpb/cfpb-atomic-component": "0.28.0",
"@cfpb/cfpb-buttons": "0.28.0",
"@cfpb/cfpb-core": "0.28.0",
"@cfpb/cfpb-expandables": "0.28.0",
"@cfpb/cfpb-forms": "0.28.0",
"@cfpb/cfpb-grid": "0.28.0",
"@cfpb/cfpb-icons": "0.28.0",
"@cfpb/cfpb-layout": "0.28.0",
"@cfpb/cfpb-notifications": "0.28.0",
"@cfpb/cfpb-pagination": "0.28.0",
"@cfpb/cfpb-tables": "0.28.0",
"@cfpb/cfpb-typography": "0.28.0",
"@cfpb/rental-assistance-finder": "0.6.0",
"@cypress/skip-test": "2.6.1",
"autoprefixer": "10.4.14",
Expand All @@ -50,9 +50,9 @@
"cypress": "12.17.3",
"cypress-fail-fast": "7.0.1",
"eslint": "8.46.0",
"eslint-config-prettier": "8.10.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-jsdoc": "46.4.5",
"eslint-plugin-jsdoc": "46.4.6",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.33.1",
"jest": "29.6.2",
Expand All @@ -62,9 +62,9 @@
"postcss-less": "6.0.0",
"prettier": "3.0.1",
"snyk": "1.1200.0",
"stylelint": "14.16.1",
"stylelint-config-prettier": "9.0.5",
"stylelint-config-recommended-less": "1.0.4"
"stylelint": "15.10.2",
"stylelint-config-standard": "34.0.0",
"stylelint-less": "1.0.8"
},
"scripts": {
"enforce": "enforce-node-version",
Expand Down
Loading

0 comments on commit 370a80c

Please sign in to comment.