Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Use @wordpress/scripts #231

Merged
merged 44 commits into from
Nov 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
98897e5
chore: add Node.js v12 to Travis CI test matrix
ntwb May 7, 2019
2d2a504
chore: switch to @wordpress/scripts
ntwb Aug 16, 2019
fee1d5c
chore: update scripts
ntwb Aug 16, 2019
1b12b62
chore: remove Jest config
ntwb Aug 16, 2019
1fe63ab
chore: add .stylelintignore to ignore invalid CSS & SCSS test fixtures
ntwb Aug 16, 2019
135456c
chore: remove .eslintrc.json config
ntwb Aug 16, 2019
5724734
style: fix ESLint issues in shared configs
ntwb Aug 16, 2019
c7568e5
style: fix ESLint issues in tests
ntwb Aug 16, 2019
d92e9e8
chore(package): update npmpub to version 5.0.0
greenkeeper[bot] Sep 20, 2019
c04cf7b
chore: bump `@wordpress/scripts` to 5.0.0
ntwb Oct 5, 2019
c2915fc
chore: update npm test script
ntwb Oct 5, 2019
a5d2724
chore: add `eslintConfig` to `package.json`
ntwb Oct 5, 2019
7227034
fix(package): update stylelint-config-recommended to version 3.0.0
greenkeeper[bot] Sep 15, 2019
b8270b8
chore(package): update stylelint to version 11.0.0
greenkeeper[bot] Sep 15, 2019
6433f3a
chore: update `peerDependencies` for stylelint 11.0.0
ntwb Oct 5, 2019
7d743df
docs: update changelog
ntwb Oct 5, 2019
993d070
docs: fix stylelint removed compat version
ntwb Oct 5, 2019
68a20b5
Update stylelint-config-recommended-scss to the latest version 🚀 (#238)
greenkeeper[bot] Oct 5, 2019
70ee6da
Update eslint to the latest version 🚀 (#233)
greenkeeper[bot] Oct 5, 2019
24bf997
docs: update changelog
ntwb Oct 5, 2019
8b7e42a
chore: bump dependencies
ntwb Oct 5, 2019
fefc76b
chore: add Node.js v12 to Travis CI test matrix
ntwb May 7, 2019
1fe8445
Merge branch 'add-node-twelve' of github.com:WordPress-Coding-Standar…
ntwb Oct 5, 2019
0215934
chore: add Node.js v12 to AppVeyor
ntwb Oct 5, 2019
b59a602
test: temp removal of scss-invalid snapshot test due to Node.js versions
ntwb Oct 5, 2019
85ceab1
chore: drop Node.js 8.x, bump minimum Node.js to 10.x
ntwb Oct 5, 2019
90e814b
chore: add Node.js v12 to Travis CI test matrix, remove 8.x, min 10.x
ntwb Oct 5, 2019
1ecceec
feat: prepare `15.0.0` release
ntwb Oct 5, 2019
c8a2fde
chore: update `stylelint-find-rules` to 2.2.0
ntwb Oct 6, 2019
aa3b4aa
Merge pull request #241 from WordPress-Coding-Standards/update/find-r…
ntwb Oct 6, 2019
fd582bd
chore(package): update npm-package-json-lint to version 4.0.0
greenkeeper[bot] Oct 6, 2019
4ca130c
Update `npmpackagejsonlint` for cosmiconfig
ntwb Oct 7, 2019
78ebfd1
Update npm-package-json-lint to the latest version 🚀 (#242)
ntwb Oct 7, 2019
20a5ce8
chore: switch to @wordpress/scripts
ntwb Aug 16, 2019
d889155
chore: update scripts
ntwb Aug 16, 2019
459b014
chore: remove Jest config
ntwb Aug 16, 2019
f8fdbb1
chore: add .stylelintignore to ignore invalid CSS & SCSS test fixtures
ntwb Aug 16, 2019
b2ee4b6
chore: remove .eslintrc.json config
ntwb Aug 16, 2019
e1611f9
style: fix ESLint issues in shared configs
ntwb Aug 16, 2019
d1b22b7
style: fix ESLint issues in tests
ntwb Aug 16, 2019
aa8b310
chore: bump `@wordpress/scripts` to 5.0.0
ntwb Oct 5, 2019
1712270
chore: update npm test script
ntwb Oct 5, 2019
f1c8c81
chore: add `eslintConfig` to `package.json`
ntwb Oct 5, 2019
9d14a4d
Merge branch 'try/use-wordpress-scripts' of github.com:WordPress-Codi…
ntwb Nov 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*-invalid.*
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ cache:
- node_modules

node_js:
- '8'
- '10'
- '12'

before_install:
- npm install -g npm@latest
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# HEAD

- Updated: `stylelint-find-rules` to `2.2.0`.

# 15.0.0

- Added: NodeJS 12.x.x support.
- Updated: `stylelint` to `11.0.0`.
- Removed: `stylelint < 10.1.0` compatibility.
- Updated: `stylelint-config-recommended` to `3.0.0`.
- Updated: `stylelint-config-recommended-scss` to `4.0.0`.
- Updated: Bump minimum Node.js required version to `10.0.0`.

# 14.0.0

- Updated: `stylelint` to `10.0.0`.
Expand Down
62 changes: 0 additions & 62 deletions __tests__/__snapshots__/scss.test.js.snap

This file was deleted.

42 changes: 21 additions & 21 deletions __tests__/commenting.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,50 @@ describe( 'flags no warnings with valid commenting css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: validCss,
config,
});
});
} );
} );

it( 'did not error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeFalsy()
) );
});
} );

it( 'flags no warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 0 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 0 )
) );
});
});
} );
} );

describe( 'flags warnings with invalid commenting css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: invalidCss,
config,
});
});
} );
} );

it( 'did error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeTruthy()
) );
});
} );

it( 'flags correct number of warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 3 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 3 )
) );
});
} );

it( 'snapshot matches warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toMatchSnapshot()
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toMatchSnapshot()
) );
});
});
} );
} );
42 changes: 21 additions & 21 deletions __tests__/functions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,50 @@ describe( 'flags no warnings with valid functions css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: validCss,
config,
});
});
} );
} );

it( 'did not error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeFalsy()
) );
});
} );

it( 'flags no warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 0 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 0 )
) );
});
});
} );
} );

describe( 'flags warnings with invalid functions css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: invalidCss,
config,
});
});
} );
} );

it( 'did error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeTruthy()
) );
});
} );

it( 'flags correct number of warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 1 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 1 )
) );
});
} );

it( 'snapshot matches warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toMatchSnapshot()
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toMatchSnapshot()
) );
});
});
} );
} );
42 changes: 21 additions & 21 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,50 @@ describe( 'flags no warnings with valid css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: validCss,
config,
});
});
} );
} );

it( 'did not error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeFalsy()
) );
});
} );

it( 'flags no warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 0 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 0 )
) );
});
});
} );
} );

describe( 'flags warnings with invalid css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: invalidCss,
config,
});
});
} );
} );

it( 'did error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeTruthy()
) );
});
} );

it( 'flags correct number of warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 1 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 1 )
) );
});
} );

it( 'snapshot matches warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toMatchSnapshot()
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toMatchSnapshot()
) );
});
});
} );
} );
42 changes: 21 additions & 21 deletions __tests__/media-queries.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,50 @@ describe( 'flags no warnings with valid media queries css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: validCss,
config,
});
});
} );
} );

it( 'did not error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeFalsy()
) );
});
} );

it( 'flags no warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 0 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 0 )
) );
});
});
} );
} );

describe( 'flags warnings with invalid media queries css', () => {
let result;

beforeEach( () => {
result = stylelint.lint({
result = stylelint.lint( {
code: invalidCss,
config,
});
});
} );
} );

it( 'did error', () => {
return result.then( data => (
return result.then( ( data ) => (
expect( data.errored ).toBeTruthy()
) );
});
} );

it( 'flags correct number of warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toHaveLength( 11 )
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toHaveLength( 11 )
) );
});
} );

it( 'snapshot matches warnings', () => {
return result.then( data => (
expect( data.results[0].warnings ).toMatchSnapshot()
return result.then( ( data ) => (
expect( data.results[ 0 ].warnings ).toMatchSnapshot()
) );
});
});
} );
} );
Loading