-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from primer/release-8.0.0
chore: v8.0.0
- Loading branch information
Showing
11 changed files
with
253 additions
and
1,378 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@master | ||
with: | ||
version: 11 | ||
- name: install | ||
run: npm install | ||
- name: lint | ||
run: npm run lint | ||
- name: test | ||
run: npm test | ||
- uses: primer/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
save=true | ||
save-exact=true | ||
git-tag-version=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const {lint, extendDefaultConfig} = require('./utils') | ||
const {lint} = require('./utils') | ||
|
||
const SAFE_SCSS_EXAMPLE = ` | ||
.Component { color: $gray-500; } | ||
|
@@ -47,25 +47,4 @@ describe('stylelint-config-primer', () => { | |
expect(data).toHaveDeprecationsLength(0) | ||
}) | ||
}) | ||
|
||
it('warns about the planned deprecation of primer/selector-no-utility', () => { | ||
return lint( | ||
SAFE_SCSS_EXAMPLE, | ||
extendDefaultConfig({ | ||
rules: { | ||
'primer/selector-no-utility': true | ||
} | ||
}) | ||
).then(data => { | ||
expect(data).not.toHaveErrored() | ||
expect(data).not.toHaveResultsLength(0) | ||
expect(data).toHaveDeprecationsLength(1) | ||
expect(data.results[0].deprecations).toEqual([ | ||
{ | ||
text: `'primer/selector-no-utility' has been deprecated and will be removed in [email protected]. Please update your rules to use 'primer/no-override'.`, | ||
reference: 'https://github.com/primer/stylelint-config-primer#deprecations' | ||
} | ||
]) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.