@css-modules-kit/eslint-plugin 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -17,9 +17,7 @@ declare const plugin: {
17
17
  };
18
18
  };
19
19
  properties: {
20
- composes: {
21
- syntax: string;
22
- };
20
+ composes: string;
23
21
  };
24
22
  };
25
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDa,CAAC;AAG1B,SAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDa,CAAC;AAG1B,SAAS,MAAM,CAAC"}
package/dist/index.js CHANGED
@@ -37,17 +37,15 @@ const plugin = {
37
37
  },
38
38
  },
39
39
  properties: {
40
- composes: {
41
- // Example:
42
- // - `composes: a;`
43
- // - `composes: a from './test.module.css';`
44
- // - `composes: a, b from './test.module.css';`
45
- // - `composes: a b from './test.module.css';`
46
- // - `composes: global(a) from './test.module.css';`
47
- //
48
- // ref: https://github.com/css-modules/postcss-modules-extract-imports/blob/16f9c570e517cf3558b88cf96dcadf794230965a/src/index.js
49
- syntax: '[ [ <custom-ident> | global(<custom-ident>) ] ,? ]+ [ from <string> ]?',
50
- },
40
+ // Example:
41
+ // - `composes: a;`
42
+ // - `composes: a from './test.module.css';`
43
+ // - `composes: a, b from './test.module.css';`
44
+ // - `composes: a b from './test.module.css';`
45
+ // - `composes: global(a) from './test.module.css';`
46
+ //
47
+ // ref: https://github.com/css-modules/postcss-modules-extract-imports/blob/16f9c570e517cf3558b88cf96dcadf794230965a/src/index.js
48
+ composes: '[ [ <custom-ident> | global(<custom-ident>) ] ]# [ from <string> ]?',
51
49
  },
52
50
  },
53
51
  },
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,mEAA0C;AAC1C,uFAA8E;AAC9E,+EAAsE;AAEtE,MAAM,MAAM,GAAG;IACb,IAAI,EAAE;QACJ,IAAI,EAAE,sBAAW,CAAC,IAAI;QACtB,OAAO,EAAE,sBAAW,CAAC,OAAO;KAC7B;IACD,KAAK,EAAE;QACL,2BAA2B,EAAE,qDAAsB;QACnD,uBAAuB,EAAE,6CAAkB;KAC5C;IACD,OAAO,EAAE;QACP,WAAW,EAAE;YACX,eAAe,EAAE;gBACf,YAAY,EAAE;oBACZ,OAAO,EAAE;wBACP,KAAK,EAAE;4BACL,WAAW;4BACX,sBAAsB;4BACtB,qBAAqB;4BACrB,oCAAoC;4BACpC,yCAAyC;4BACzC,4CAA4C;4BAC5C,sDAAsD;4BACtD,EAAE;4BACF,gFAAgF;4BAChF,gCAAgC;4BAChC,gCAAgC;4BAChC,EAAE;4BACF,qHAAqH;4BACrH,OAAO,EACL,uGAAuG;yBAC1G;qBACF;oBACD,UAAU,EAAE;wBACV,QAAQ,EAAE;4BACR,WAAW;4BACX,mBAAmB;4BACnB,4CAA4C;4BAC5C,+CAA+C;4BAC/C,8CAA8C;4BAC9C,oDAAoD;4BACpD,EAAE;4BACF,iIAAiI;4BACjI,MAAM,EAAE,wEAAwE;yBACjF;qBACF;iBACF;aACF;YACD,OAAO,EAAE;gBACP,iBAAiB,EAAE,EAAE;aACtB;YACD,KAAK,EAAE;gBACL,2CAA2C,EAAE,OAAO;gBACpD,uCAAuC,EAAE,OAAO;aACjD;SACF;KACF;CACsB,CAAC;AAC1B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC;AAE/D,iBAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,mEAA0C;AAC1C,uFAA8E;AAC9E,+EAAsE;AAEtE,MAAM,MAAM,GAAG;IACb,IAAI,EAAE;QACJ,IAAI,EAAE,sBAAW,CAAC,IAAI;QACtB,OAAO,EAAE,sBAAW,CAAC,OAAO;KAC7B;IACD,KAAK,EAAE;QACL,2BAA2B,EAAE,qDAAsB;QACnD,uBAAuB,EAAE,6CAAkB;KAC5C;IACD,OAAO,EAAE;QACP,WAAW,EAAE;YACX,eAAe,EAAE;gBACf,YAAY,EAAE;oBACZ,OAAO,EAAE;wBACP,KAAK,EAAE;4BACL,WAAW;4BACX,sBAAsB;4BACtB,qBAAqB;4BACrB,oCAAoC;4BACpC,yCAAyC;4BACzC,4CAA4C;4BAC5C,sDAAsD;4BACtD,EAAE;4BACF,gFAAgF;4BAChF,gCAAgC;4BAChC,gCAAgC;4BAChC,EAAE;4BACF,qHAAqH;4BACrH,OAAO,EACL,uGAAuG;yBAC1G;qBACF;oBACD,UAAU,EAAE;wBACV,WAAW;wBACX,mBAAmB;wBACnB,4CAA4C;wBAC5C,+CAA+C;wBAC/C,8CAA8C;wBAC9C,oDAAoD;wBACpD,EAAE;wBACF,iIAAiI;wBACjI,QAAQ,EAAE,qEAAqE;qBAChF;iBACF;aACF;YACD,OAAO,EAAE;gBACP,iBAAiB,EAAE,EAAE;aACtB;YACD,KAAK,EAAE;gBACL,2CAA2C,EAAE,OAAO;gBACpD,uCAAuC,EAAE,OAAO;aACjD;SACF;KACF;CACsB,CAAC;AAC1B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC;AAE/D,iBAAS,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@css-modules-kit/eslint-plugin",
3
3
  "description": "A eslint plugin for CSS Modules",
4
- "version": "0.2.1",
4
+ "version": "0.3.0",
5
5
  "type": "commonjs",
6
6
  "sideEffects": false,
7
7
  "repository": {
@@ -12,7 +12,14 @@
12
12
  "author": "mizdra <pp.mizdra@gmail.com>",
13
13
  "license": "MIT",
14
14
  "private": false,
15
- "main": "./dist/index.js",
15
+ "exports": {
16
+ ".": {
17
+ "default": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ }
21
+ }
22
+ },
16
23
  "scripts": {
17
24
  "build": "tsc -b tsconfig.build.json"
18
25
  },
@@ -37,7 +44,7 @@
37
44
  "dist"
38
45
  ],
39
46
  "dependencies": {
40
- "@css-modules-kit/core": "^0.4.0",
47
+ "@css-modules-kit/core": "^0.6.0",
41
48
  "postcss-safe-parser": "^7.0.1"
42
49
  },
43
50
  "peerDependencies": {
package/src/index.ts CHANGED
@@ -36,17 +36,15 @@ const plugin = {
36
36
  },
37
37
  },
38
38
  properties: {
39
- composes: {
40
- // Example:
41
- // - `composes: a;`
42
- // - `composes: a from './test.module.css';`
43
- // - `composes: a, b from './test.module.css';`
44
- // - `composes: a b from './test.module.css';`
45
- // - `composes: global(a) from './test.module.css';`
46
- //
47
- // ref: https://github.com/css-modules/postcss-modules-extract-imports/blob/16f9c570e517cf3558b88cf96dcadf794230965a/src/index.js
48
- syntax: '[ [ <custom-ident> | global(<custom-ident>) ] ,? ]+ [ from <string> ]?',
49
- },
39
+ // Example:
40
+ // - `composes: a;`
41
+ // - `composes: a from './test.module.css';`
42
+ // - `composes: a, b from './test.module.css';`
43
+ // - `composes: a b from './test.module.css';`
44
+ // - `composes: global(a) from './test.module.css';`
45
+ //
46
+ // ref: https://github.com/css-modules/postcss-modules-extract-imports/blob/16f9c570e517cf3558b88cf96dcadf794230965a/src/index.js
47
+ composes: '[ [ <custom-ident> | global(<custom-ident>) ] ]# [ from <string> ]?',
50
48
  },
51
49
  },
52
50
  },