eslint-plugin-gamut 2.0.1 → 2.0.2-alpha.0e532d.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [2.0.2-alpha.0e532d.0](https://github.com/Codecademy/gamut/compare/eslint-plugin-gamut@2.0.1...eslint-plugin-gamut@2.0.2-alpha.0e532d.0) (2022-07-29)
7
+
8
+ **Note:** Version bump only for package eslint-plugin-gamut
9
+
10
+
11
+
12
+
13
+
6
14
  ### [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
15
 
8
16
  **Note:** Version bump only for package eslint-plugin-gamut
package/dist/file.js CHANGED
@@ -1,2 +1 @@
1
- "use strict";
2
1
  //# sourceMappingURL=file.js.map
package/dist/index.js CHANGED
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.recommended = exports.rules = void 0;
7
- const gamut_import_paths_1 = __importDefault(require("./gamut-import-paths"));
8
- const no_css_standalone_1 = __importDefault(require("./no-css-standalone"));
9
- const prefer_themed_1 = __importDefault(require("./prefer-themed"));
10
- const recommended_1 = __importDefault(require("./recommended"));
4
+ const tslib_1 = require("tslib");
5
+ const gamut_import_paths_1 = (0, tslib_1.__importDefault)(require("./gamut-import-paths"));
6
+ const no_css_standalone_1 = (0, tslib_1.__importDefault)(require("./no-css-standalone"));
7
+ const prefer_themed_1 = (0, tslib_1.__importDefault)(require("./prefer-themed"));
8
+ const recommended_1 = (0, tslib_1.__importDefault)(require("./recommended"));
11
9
  exports.recommended = recommended_1.default;
12
10
  const rules = {
13
11
  'import-paths': gamut_import_paths_1.default,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;AAAA,8EAAoD;AACpD,4EAAkD;AAClD,oEAA2C;AAC3C,gEAAwC;AAQxB,sBART,qBAAW,CAQS;AAN3B,MAAM,KAAK,GAAG;IACZ,cAAc,EAAE,4BAAgB;IAChC,mBAAmB,EAAE,2BAAe;IACpC,eAAe,EAAE,uBAAY;CAC9B,CAAC;AAEO,sBAAK"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;AAAA,2FAAoD;AACpD,yFAAkD;AAClD,iFAA2C;AAC3C,6EAAwC;AAQxB,sBART,qBAAW,CAQS;AAN3B,MAAM,KAAK,GAAG;IACZ,cAAc,EAAE,4BAAgB;IAChC,mBAAmB,EAAE,2BAAe;IACpC,eAAe,EAAE,uBAAY;CAC9B,CAAC;AAEO,sBAAK"}
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
6
4
  const utils_1 = require("@typescript-eslint/utils");
7
- const no_css_standalone_1 = __importDefault(require("./no-css-standalone"));
5
+ const no_css_standalone_1 = (0, tslib_1.__importDefault)(require("./no-css-standalone"));
8
6
  const ruleTester = new utils_1.ESLintUtils.RuleTester({
9
7
  parser: '@typescript-eslint/parser',
10
8
  });
@@ -1 +1 @@
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
+ {"version":3,"file":"no-css-standalone.test.js","sourceRoot":"","sources":["../src/no-css-standalone.test.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAEvD,yFAAuC;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,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
6
4
  const utils_1 = require("@typescript-eslint/utils");
7
- const prefer_themed_1 = __importDefault(require("./prefer-themed"));
5
+ const prefer_themed_1 = (0, tslib_1.__importDefault)(require("./prefer-themed"));
8
6
  const ruleTester = new utils_1.ESLintUtils.RuleTester({
9
7
  parser: '@typescript-eslint/parser',
10
8
  });
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"prefer-themed.test.js","sourceRoot":"","sources":["../src/prefer-themed.test.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAEvD,iFAAmC;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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "gamut-styles"
9
9
  ],
10
10
  "name": "eslint-plugin-gamut",
11
- "version": "2.0.1",
11
+ "version": "2.0.2-alpha.0e532d.0",
12
12
  "license": "MIT",
13
13
  "main": "./dist/index.js",
14
14
  "module": "dist/index.js",
@@ -27,5 +27,5 @@
27
27
  "dependencies": {
28
28
  "@typescript-eslint/utils": "^5.15.0"
29
29
  },
30
- "gitHead": "00ec36677a85e156b1e599d5215a3174411f06dd"
30
+ "gitHead": "1a1f04501b8da9b5f5c0db397edd8fcf497bac30"
31
31
  }
package/project.json CHANGED
@@ -12,6 +12,14 @@
12
12
  "commands": ["rm -rf ./dist", "tsc"],
13
13
  "parallel": false
14
14
  }
15
+ },
16
+ "test": {
17
+ "executor": "@nrwl/jest:jest",
18
+ "outputs": ["coverage/packages/eslint-plugin-gamut"],
19
+ "options": {
20
+ "jestConfig": "packages/eslint-plugin-gamut/jest.config.ts",
21
+ "passWithNoTests": true
22
+ }
15
23
  }
16
24
  },
17
25
  "tags": []
package/tsconfig.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "../../tsconfig.base.json",
3
3
  "include": ["./src/**/*.ts", "./src/**/*.tsx"],
4
4
  "compilerOptions": {
5
5
  "module": "CommonJS",
6
- "outDir": "./dist"
6
+ "outDir": "./dist",
7
+ "rootDir": "./src"
7
8
  }
8
9
  }
@@ -1,2 +0,0 @@
1
- import { ESLintUtils } from '@typescript-eslint/utils';
2
- export declare const createRule: <TOptions extends readonly unknown[], TMessageIds extends string, TRuleListener extends import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener = import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleListener>({ name, meta, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<TOptions, TMessageIds, TRuleListener>>) => import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<TMessageIds, TOptions, TRuleListener>;
package/dist/file.d.ts DELETED
File without changes
@@ -1,5 +0,0 @@
1
- import { TSESTree } from '@typescript-eslint/utils';
2
- declare const _default: import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"removeDist" | "removeSrc" | "useRelativeImport", never[], {
3
- 'ImportDeclaration[source.value=/(^@)codecademy(\\u002F)gamut/]': (node: TSESTree.ImportDeclaration) => void;
4
- }>;
5
- export default _default;
package/dist/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import recommended from './recommended';
2
- declare const rules: {
3
- 'import-paths': import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"removeDist" | "removeSrc" | "useRelativeImport", never[], {
4
- 'ImportDeclaration[source.value=/(^@)codecademy(\\u002F)gamut/]': (node: import("@typescript-eslint/types/dist/generated/ast-spec").ImportDeclaration) => void;
5
- }>;
6
- 'no-css-standalone': import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"noCssStandalone", never[], {
7
- 'ImportDeclaration[source.value=/.*\\.s?css/]': (node: never) => void;
8
- }>;
9
- 'prefer-themed': import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"preferThemed", never[], {
10
- TaggedTemplateExpression(node: import("@typescript-eslint/types/dist/generated/ast-spec").TaggedTemplateExpression): void;
11
- }>;
12
- };
13
- export { rules, recommended };
@@ -1,4 +0,0 @@
1
- declare const _default: import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"noCssStandalone", never[], {
2
- 'ImportDeclaration[source.value=/.*\\.s?css/]': (node: never) => void;
3
- }>;
4
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- declare const _default: import("@typescript-eslint/utils/dist/ts-eslint/Rule").RuleModule<"preferThemed", never[], {
2
- TaggedTemplateExpression(node: import("@typescript-eslint/types/dist/generated/ast-spec").TaggedTemplateExpression): void;
3
- }>;
4
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- rules: {
3
- 'gamut/no-css-standalone': string;
4
- 'gamut/prefer-themed': string;
5
- 'gamut/gamut-import-paths': string;
6
- };
7
- };
8
- export default _default;
package/dist/utils.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { TSESTree } from '@typescript-eslint/utils';
2
- export declare const isNamedVariableTheme: (arrowExpression: TSESTree.ArrowFunctionExpression) => boolean;
3
- export declare const checkArrowFuncBodyTypesAndReturnThemeVars: (arrowFuncExpression: TSESTree.ArrowFunctionExpression) => false | {
4
- themeValueKey: string;
5
- themeCategory: string;
6
- };
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
- });