@mrshmllw/campfire 6.0.0 → 6.1.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.
@@ -0,0 +1,3 @@
1
+ export default campfirePlugin;
2
+ /** @type {import('eslint').ESLint.Plugin} */
3
+ declare const campfirePlugin: import("eslint").ESLint.Plugin;
@@ -0,0 +1,11 @@
1
+ import { noColorPropRule } from './eslint-rules/no-color-prop/no-color-prop.js';
2
+ import { noThemeColorsRule } from './eslint-rules/no-theme-colors/no-theme-colors.js';
3
+ /** @type {import('eslint').ESLint.Plugin} */
4
+ const campfirePlugin = {
5
+ meta: { name: 'campfire' },
6
+ rules: {
7
+ 'no-color-prop': noColorPropRule,
8
+ 'no-theme-colors': noThemeColorsRule,
9
+ },
10
+ };
11
+ export default campfirePlugin;
@@ -1,14 +1,7 @@
1
1
  import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin';
2
2
  import tsParser from '@typescript-eslint/parser';
3
3
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4
- import { noColorPropRule } from './eslint-rules/no-color-prop/no-color-prop.js';
5
- import { noThemeColorsRule } from './eslint-rules/no-theme-colors/no-theme-colors.js';
6
- const campfireEslintPlugin = {
7
- rules: {
8
- 'no-color-prop': noColorPropRule,
9
- 'no-theme-colors': noThemeColorsRule,
10
- },
11
- };
4
+ import campfirePlugin from './eslint-plugin.js';
12
5
  /** @type {import('eslint').Linter.Config[]} */
13
6
  const config = [
14
7
  eslintPluginPrettierRecommended,
@@ -22,7 +15,7 @@ const config = [
22
15
  },
23
16
  plugins: {
24
17
  '@typescript-eslint': typescriptEslintPlugin,
25
- campfire: campfireEslintPlugin,
18
+ campfire: campfirePlugin,
26
19
  },
27
20
  rules: {
28
21
  '@typescript-eslint/no-explicit-any': 'warn', // Warns on use of 'any'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrshmllw/campfire",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Collection of toasty utils and configs used by Marshmallow Technology",
5
5
  "type": "module",
6
6
  "scripts": {