Skip to content

Commit

Permalink
feat: add migration to bring stylelint-config-standard packages up to…
Browse files Browse the repository at this point in the history
… date
  • Loading branch information
Phillip9587 committed Oct 8, 2023
1 parent 3174736 commit c3292a9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions packages/nx-stylelint/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@
"alwaysAddToPackageJson": false
}
}
},
"16.0.0": {
"version": "16.0.0-beta.0",
"packages": {
"stylelint-config-standard": {
"version": "^34.0.0",
"alwaysAddToPackageJson": false
},
"stylelint-config-standard-scss": {
"version": "^11.0.0",
"alwaysAddToPackageJson": false
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('nx-stylelint:init generator', () => {

const packagejson = readJson(tree, 'package.json');
expect(packagejson.devDependencies['stylelint']).toBe('^15.0.0');
expect(packagejson.devDependencies['stylelint-config-standard']).toBe('^30.0.0');
expect(packagejson.devDependencies['stylelint-config-standard']).toBe('^34.0.0');

const stylelintrc = readJson<Config>(tree, '.stylelintrc.json');
expect(stylelintrc.ignoreFiles?.length).toBe(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('scss generator', () => {

const packageJson = readJson(tree, 'package.json');

expect(packageJson.devDependencies['stylelint-config-standard-scss']).toBe('^7.0.0');
expect(packageJson.devDependencies['stylelint-config-standard-scss']).toBe('^11.0.0');
});

it('should update root and project stylelint configurations', async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/nx-stylelint/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Versions
export const stylelintVersion = '^15.0.0';
export const stylelintConfigStandardVersion = '^30.0.0';
export const stylelintConfigStandardScssVersion = '^7.0.0';
export const stylelintConfigStandardVersion = '^34.0.0';
export const stylelintConfigStandardScssVersion = '^11.0.0';

/** Stylelint Visual Studio Code plugin identifier */
export const stylelintVSCodeExtension = 'stylelint.vscode-stylelint';

0 comments on commit c3292a9

Please sign in to comment.