File tree 5 files changed +169
-160
lines changed
5 files changed +169
-160
lines changed Original file line number Diff line number Diff line change 7
7
"node": true,
8
8
"jest": true
9
9
},
10
- "extends": "eslint:recommended"
10
+ "extends": [ "eslint:recommended", "prettier"]
11
11
}
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
5
5
6
+ ## [ 4.0.0-rc.5] ( https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.4...v4.0.0-rc.5 ) - 2020-11-08
7
+
8
+ ### Fixes
9
+
10
+ - compatibility with other plugins
11
+
6
12
## [ 4.0.0-rc.4] ( https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.3...v4.0.0-rc.4 ) - 2020-10-08
7
13
8
14
### Fixes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " postcss-modules-values" ,
3
- "version" : " 4.0.0-rc.4 " ,
3
+ "version" : " 4.0.0-rc.5 " ,
4
4
"description" : " PostCSS plugin for CSS Modules to pass arbitrary values between your module files" ,
5
5
"main" : " src/index.js" ,
6
6
"files" : [
38
38
"devDependencies" : {
39
39
"coveralls" : " ^3.1.0" ,
40
40
"eslint" : " ^7.10.0" ,
41
+ "eslint-config-prettier" : " ^6.12.0" ,
41
42
"husky" : " ^4.3.0" ,
42
43
"jest" : " ^26.5.2" ,
43
44
"lint-staged" : " ^10.4.0" ,
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ module.exports = (options) => {
20
20
const definitions = { } ;
21
21
22
22
return {
23
- AtRule : {
24
- value ( atRule ) {
23
+ OnceExit ( root , postcss ) {
24
+ root . walkAtRules ( / v a l u e / i , ( atRule ) => {
25
25
const matches = atRule . params . match ( matchImports ) ;
26
26
27
27
if ( matches ) {
@@ -67,7 +67,6 @@ module.exports = (options) => {
67
67
68
68
if ( normalizedValue . length === 0 ) {
69
69
result . warn ( "Invalid value definition: " + atRule . params ) ;
70
-
71
70
atRule . remove ( ) ;
72
71
73
72
return ;
@@ -86,9 +85,8 @@ module.exports = (options) => {
86
85
) ;
87
86
88
87
atRule . remove ( ) ;
89
- } ,
90
- } ,
91
- OnceExit ( root , postcss ) {
88
+ } ) ;
89
+
92
90
/* If we have no definitions, don't continue */
93
91
if ( ! Object . keys ( definitions ) . length ) {
94
92
return ;
You can’t perform that action at this time.
0 commit comments