eslint-plugin-gamut 2.0.1 → 2.0.2-alpha.01c13d.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/package.json CHANGED
@@ -7,8 +7,11 @@
7
7
  "styles",
8
8
  "gamut-styles"
9
9
  ],
10
+ "files": [
11
+ "dist"
12
+ ],
10
13
  "name": "eslint-plugin-gamut",
11
- "version": "2.0.1",
14
+ "version": "2.0.2-alpha.01c13d.0",
12
15
  "license": "MIT",
13
16
  "main": "./dist/index.js",
14
17
  "module": "dist/index.js",
@@ -27,5 +30,5 @@
27
30
  "dependencies": {
28
31
  "@typescript-eslint/utils": "^5.15.0"
29
32
  },
30
- "gitHead": "00ec36677a85e156b1e599d5215a3174411f06dd"
33
+ "gitHead": "7bccb6bc80adc91103a2fcb85ee28ab515edce38"
31
34
  }
package/CHANGELOG.md DELETED
@@ -1,23 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ### [2.0.1](https://github.com/Codecademy/gamut/compare/eslint-plugin-gamut@2.0.0...eslint-plugin-gamut@2.0.1) (2022-07-29)
7
-
8
- **Note:** Version bump only for package eslint-plugin-gamut
9
-
10
-
11
-
12
-
13
-
14
- ## 2.0.0 (2022-03-25)
15
-
16
-
17
- ### ⚠ BREAKING CHANGES
18
-
19
- * **eslint-plugin-gamut:** gamut eslint-pkg + add no .scss / themed rules
20
-
21
- ### Features
22
-
23
- * **eslint-plugin-gamut:** gamut eslint-pkg + add no .scss / themed rules ([4be6d9d](https://github.com/Codecademy/gamut/commit/4be6d9ddfbebb8b588f671c5f665d94a5e429384))
@@ -1 +0,0 @@
1
- export {};
@@ -1,66 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const utils_1 = require("@typescript-eslint/utils");
7
- const no_css_standalone_1 = __importDefault(require("./no-css-standalone"));
8
- const ruleTester = new utils_1.ESLintUtils.RuleTester({
9
- parser: '@typescript-eslint/parser',
10
- });
11
- ruleTester.run('no-css-standalone', no_css_standalone_1.default, {
12
- valid: [
13
- ``,
14
- `import {namedImport} from 'fileName.tsx'`,
15
- `import {namedImport} from 'fileName.ts'`,
16
- `import {namedImport} from 'fileName.js'`,
17
- `import {namedImport} from 'fileName.yml'`,
18
- `import {namedImport} from 'fileName.json'`,
19
- `import {namedImport} from 'fileName.md'`,
20
- `import {namedImport} from 'fileName.mdx'`,
21
- `import defaultImport from 'fileName.svg'`,
22
- `import defaultImport from 'fileName.ts'`,
23
- `import defaultImport from 'fileName.tsx'`,
24
- `import defaultImport from 'fileName.js'`,
25
- `import defaultImport from 'fileName.yml'`,
26
- `import defaultImport from 'fileName.json'`,
27
- `import defaultImport from 'fileName.md'`,
28
- `import defaultImport from 'fileName.mdx'`,
29
- `import defaultImport from 'fileName.svg'`,
30
- ],
31
- invalid: [
32
- {
33
- code: `import {namedImport} from 'fileName.css'`,
34
- errors: [
35
- {
36
- messageId: 'noCssStandalone',
37
- },
38
- ],
39
- },
40
- {
41
- code: `import {namedImport} from 'fileName.scss'`,
42
- errors: [
43
- {
44
- messageId: 'noCssStandalone',
45
- },
46
- ],
47
- },
48
- {
49
- code: `import namedImport from 'fileName.css'`,
50
- errors: [
51
- {
52
- messageId: 'noCssStandalone',
53
- },
54
- ],
55
- },
56
- {
57
- code: `import namedImport from 'fileName.scss'`,
58
- errors: [
59
- {
60
- messageId: 'noCssStandalone',
61
- },
62
- ],
63
- },
64
- ],
65
- });
66
- //# sourceMappingURL=no-css-standalone.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-css-standalone.test.js","sourceRoot":"","sources":["../src/no-css-standalone.test.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuD;AAEvD,4EAAuC;AAEvC,MAAM,UAAU,GAAG,IAAI,mBAAW,CAAC,UAAU,CAAC;IAC5C,MAAM,EAAE,2BAA2B;CACpC,CAAC,CAAC;AAEH,UAAU,CAAC,GAAG,CAAC,mBAAmB,EAAE,2BAAI,EAAE;IACxC,KAAK,EAAE;QACL,EAAE;QACF,0CAA0C;QAC1C,yCAAyC;QACzC,yCAAyC;QACzC,0CAA0C;QAC1C,2CAA2C;QAC3C,yCAAyC;QACzC,0CAA0C;QAC1C,0CAA0C;QAC1C,yCAAyC;QACzC,0CAA0C;QAC1C,yCAAyC;QACzC,0CAA0C;QAC1C,2CAA2C;QAC3C,yCAAyC;QACzC,0CAA0C;QAC1C,0CAA0C;KAC3C;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,0CAA0C;YAChD,MAAM,EAAE;gBACN;oBACE,SAAS,EAAE,iBAAiB;iBAC7B;aACF;SACF;QACD;YACE,IAAI,EAAE,2CAA2C;YACjD,MAAM,EAAE;gBACN;oBACE,SAAS,EAAE,iBAAiB;iBAC7B;aACF;SACF;QACD;YACE,IAAI,EAAE,wCAAwC;YAC9C,MAAM,EAAE;gBACN;oBACE,SAAS,EAAE,iBAAiB;iBAC7B;aACF;SACF;QACD;YACE,IAAI,EAAE,yCAAyC;YAC/C,MAAM,EAAE;gBACN;oBACE,SAAS,EAAE,iBAAiB;iBAC7B;aACF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const utils_1 = require("@typescript-eslint/utils");
7
- const prefer_themed_1 = __importDefault(require("./prefer-themed"));
8
- const ruleTester = new utils_1.ESLintUtils.RuleTester({
9
- parser: '@typescript-eslint/parser',
10
- });
11
- ruleTester.run('prefer-themed', prefer_themed_1.default, {
12
- valid: [
13
- ``,
14
- `styled.div\`
15
- color: \${themed('colors.wat')};
16
- \``,
17
- `styled(Box)\`
18
- color: \${themed('colors.wat')};
19
- \``,
20
- `
21
- export const AppWrapper = styled.div\`
22
- position: relative;
23
- z-index: 1;
24
- \`;
25
- `,
26
- ],
27
- invalid: [
28
- {
29
- code: `styled.div\`
30
- color: \${({ theme }) => theme.colors.wat};
31
- \``,
32
- errors: [
33
- {
34
- messageId: 'preferThemed',
35
- },
36
- ],
37
- output: `styled.div\`
38
- color: \${themed('colors.wat')};
39
- \``,
40
- },
41
- ],
42
- });
43
- //# sourceMappingURL=prefer-themed.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prefer-themed.test.js","sourceRoot":"","sources":["../src/prefer-themed.test.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuD;AAEvD,oEAAmC;AAEnC,MAAM,UAAU,GAAG,IAAI,mBAAW,CAAC,UAAU,CAAC;IAC5C,MAAM,EAAE,2BAA2B;CACpC,CAAC,CAAC;AAEH,UAAU,CAAC,GAAG,CAAC,eAAe,EAAE,uBAAI,EAAE;IACpC,KAAK,EAAE;QACL,EAAE;QACF;;GAED;QACC;;GAED;QACC;;;;;CAKH;KACE;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE;;GAET;YACG,MAAM,EAAE;gBACN;oBACE,SAAS,EAAE,cAAc;iBAC1B;aACF;YACD,MAAM,EAAE;;GAEX;SACE;KACF;CACF,CAAC,CAAC"}
package/jest.config.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = require('../../jest.config.base')('eslint-plugin-gamut', {
2
- testEnvironment: 'node',
3
- setupFiles: [],
4
- setupFilesAfterEnv: [],
5
- });
package/project.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "../../../node_modules/nx/schemas/project-schema.json",
3
- "sourceRoot": "packages/eslint-plugin-gamut/src",
4
- "projectType": "library",
5
- "targets": {
6
- "build": {
7
- "outputs": ["{options.outputPath}"],
8
- "executor": "nx:run-commands",
9
- "options": {
10
- "cwd": "packages/eslint-plugin-gamut",
11
- "outputPath": "./dist",
12
- "commands": ["rm -rf ./dist", "tsc"],
13
- "parallel": false
14
- }
15
- }
16
- },
17
- "tags": []
18
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "include": ["./src/**/*.ts", "./src/**/*.tsx"],
4
- "compilerOptions": {
5
- "module": "CommonJS",
6
- "outDir": "./dist"
7
- }
8
- }