@papillonarts/setup 0.16.0 → 0.17.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.
@@ -1,3 +1,4 @@
1
- declare const _default: import("@eslint/config-helpers").Config[];
2
- export default _default;
1
+ export function getESLintSetup({ eslintIgnores }: {
2
+ eslintIgnores: any;
3
+ }): import("@eslint/config-helpers").Config[];
3
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eslint/index.mjs"],"names":[],"mappings":"AAsBA;;8CA+HC"}
package/eslint/index.mjs CHANGED
@@ -20,157 +20,131 @@ const compat = new FlatCompat({
20
20
  allConfig: js.configs.all,
21
21
  })
22
22
 
23
- export default defineConfig([
24
- globalIgnores([
25
- '**/.DS_Store',
26
- '**/app.sublime-project',
27
- '**/app.sublime-workspace',
28
- '**/.storybook-static-develop',
29
- '**/.storybook-static-release',
30
- '**/.coverage',
31
- '**/.husky',
32
- '**/node_modules',
33
- '**/.env',
34
- '**/.npmrc',
35
- '**/codecov',
36
- '**/lerna-debug.log',
37
- '**/npm-debug.log',
38
- '**/package-lock.json',
39
- 'packages/components/package-lock.json',
40
- 'packages/components/build',
41
- 'packages/components/node_modules',
42
- 'packages/CSS/package-lock.json',
43
- 'packages/CSS/build',
44
- 'packages/CSS/node_modules',
45
- 'packages/CSS/src/primer',
46
- 'packages/library/package-lock.json',
47
- 'packages/library/build',
48
- 'packages/library/node_modules',
49
- 'packages/setup/package-lock.json',
50
- 'packages/setup/build',
51
- 'packages/setup/node_modules',
52
- ]),
53
- {
54
- extends: fixupConfigRules(
55
- compat.extends(
56
- 'eslint:recommended',
57
- 'plugin:import/errors',
58
- 'plugin:import/warnings',
59
- 'plugin:react/recommended',
60
- 'plugin:jsx-a11y/recommended',
61
- 'plugin:jest/recommended',
62
- 'prettier',
63
- 'plugin:@typescript-eslint/stylistic-type-checked',
23
+ export function getESLintSetup({ eslintIgnores }) {
24
+ return defineConfig([
25
+ globalIgnores(eslintIgnores),
26
+ {
27
+ extends: fixupConfigRules(
28
+ compat.extends(
29
+ 'eslint:recommended',
30
+ 'plugin:import/errors',
31
+ 'plugin:import/warnings',
32
+ 'plugin:react/recommended',
33
+ 'plugin:jsx-a11y/recommended',
34
+ 'plugin:jest/recommended',
35
+ 'prettier',
36
+ 'plugin:@typescript-eslint/stylistic-type-checked',
37
+ ),
64
38
  ),
65
- ),
66
39
 
67
- files: ['**/*.ts', '**/*.tsx'],
40
+ files: ['**/*.ts', '**/*.tsx'],
68
41
 
69
- plugins: {
70
- react: fixupPluginRules(react),
71
- 'react-hooks': fixupPluginRules(reactHooks),
72
- 'jsx-a11y': fixupPluginRules(jsxA11Y),
73
- jest: fixupPluginRules(jest),
74
- prettier,
75
- },
76
-
77
- languageOptions: {
78
- globals: {
79
- ...globals.amd,
80
- ...globals.browser,
81
- ...globals.commonjs,
82
- ...globals.jasmine,
83
- ...globals.jest,
84
- ...globals.mocha,
85
- ...globals.node,
86
- document: false,
87
- expect: false,
88
- jest: false,
89
- jsdom: true,
90
- renderMount: false,
91
- renderShallow: false,
42
+ plugins: {
43
+ react: fixupPluginRules(react),
44
+ 'react-hooks': fixupPluginRules(reactHooks),
45
+ 'jsx-a11y': fixupPluginRules(jsxA11Y),
46
+ jest: fixupPluginRules(jest),
47
+ prettier,
92
48
  },
93
49
 
94
- parser: tsParser,
95
- ecmaVersion: 16,
96
- sourceType: 'commonjs',
97
-
98
- parserOptions: {
99
- ecmaFeatures: {
100
- jsx: true,
50
+ languageOptions: {
51
+ globals: {
52
+ ...globals.amd,
53
+ ...globals.browser,
54
+ ...globals.commonjs,
55
+ ...globals.jasmine,
56
+ ...globals.jest,
57
+ ...globals.mocha,
58
+ ...globals.node,
59
+ document: false,
60
+ expect: false,
61
+ jest: false,
62
+ jsdom: true,
63
+ renderMount: false,
64
+ renderShallow: false,
101
65
  },
102
66
 
103
- projectService: {
104
- allowDefaultProject: ['*.js', '*.jsx', '*.ts', '*.tsx'],
67
+ parser: tsParser,
68
+ ecmaVersion: 16,
69
+ sourceType: 'commonjs',
70
+
71
+ parserOptions: {
72
+ ecmaFeatures: {
73
+ jsx: true,
74
+ },
75
+
76
+ projectService: {
77
+ allowDefaultProject: ['*.js', '*.jsx', '*.ts', '*.tsx'],
78
+ },
105
79
  },
106
80
  },
107
- },
108
81
 
109
- settings: {
110
- 'import/resolver': {
111
- alias: {
112
- map: [['@papillonarts/components', '@papillonarts/components/build']],
113
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
82
+ settings: {
83
+ 'import/resolver': {
84
+ alias: {
85
+ map: [['@papillonarts/components', '@papillonarts/components/build']],
86
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
87
+ },
88
+
89
+ node: {
90
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
91
+ },
114
92
  },
115
93
 
116
- node: {
117
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
94
+ react: {
95
+ version: '19.2.0',
118
96
  },
119
97
  },
120
98
 
121
- react: {
122
- version: '19.2.0',
99
+ rules: {
100
+ 'import/named': 2,
101
+
102
+ 'import/no-extraneous-dependencies': [
103
+ 0,
104
+ {
105
+ devDependencies: ['**/*.test.js', '**/*.story.js', '**/*.test.ts', '**/*.story.tsx'],
106
+ },
107
+ ],
108
+
109
+ 'import/prefer-default-export': 'off',
110
+ 'import/no-relative-packages': 'off',
111
+ 'jsx-a11y/accessible-emoji': 0,
112
+ 'prettier/prettier': 'error',
113
+ 'react-hooks/exhaustive-deps': 'warn',
114
+ 'react-hooks/rules-of-hooks': 'error',
115
+ 'react/jsx-boolean-value': 0,
116
+
117
+ 'react/jsx-filename-extension': [
118
+ 2,
119
+ {
120
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
121
+ },
122
+ ],
123
+
124
+ 'react/jsx-fragments': 0,
125
+ 'react/jsx-props-no-spreading': 0,
126
+ 'react/jsx-uses-react': 'off',
127
+ 'react/react-in-jsx-scope': 'off',
128
+ semi: ['error', 'never'],
129
+
130
+ 'import/extensions': [
131
+ 'error',
132
+ 'ignorePackages',
133
+ {
134
+ js: 'never',
135
+ jsx: 'never',
136
+ ts: 'never',
137
+ tsx: 'never',
138
+ },
139
+ ],
140
+
141
+ '@typescript-eslint/no-empty-function': 0,
142
+ '@typescript-eslint/strict-boolean-expressions': 0,
143
+ '@typescript-eslint/prefer-nullish-coalescing': 0,
144
+ 'object-curly-spacing': 0,
145
+ 'comma-dangle': 0,
146
+ 'no-unused-vars': 0,
123
147
  },
124
148
  },
125
-
126
- rules: {
127
- 'import/named': 2,
128
-
129
- 'import/no-extraneous-dependencies': [
130
- 0,
131
- {
132
- devDependencies: ['**/*.test.js', '**/*.story.js', '**/*.test.ts', '**/*.story.tsx'],
133
- },
134
- ],
135
-
136
- 'import/prefer-default-export': 'off',
137
- 'import/no-relative-packages': 'off',
138
- 'jsx-a11y/accessible-emoji': 0,
139
- 'prettier/prettier': 'error',
140
- 'react-hooks/exhaustive-deps': 'warn',
141
- 'react-hooks/rules-of-hooks': 'error',
142
- 'react/jsx-boolean-value': 0,
143
-
144
- 'react/jsx-filename-extension': [
145
- 2,
146
- {
147
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
148
- },
149
- ],
150
-
151
- 'react/jsx-fragments': 0,
152
- 'react/jsx-props-no-spreading': 0,
153
- 'react/jsx-uses-react': 'off',
154
- 'react/react-in-jsx-scope': 'off',
155
- semi: ['error', 'never'],
156
-
157
- 'import/extensions': [
158
- 'error',
159
- 'ignorePackages',
160
- {
161
- js: 'never',
162
- jsx: 'never',
163
- ts: 'never',
164
- tsx: 'never',
165
- },
166
- ],
167
-
168
- '@typescript-eslint/no-empty-function': 0,
169
- '@typescript-eslint/strict-boolean-expressions': 0,
170
- '@typescript-eslint/prefer-nullish-coalescing': 0,
171
- 'object-curly-spacing': 0,
172
- 'comma-dangle': 0,
173
- 'no-unused-vars': 0,
174
- },
175
- },
176
- ])
149
+ ])
150
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papillonarts/setup",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Papillon Arts Setup",
5
5
  "homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
6
6
  "repository": {
@@ -31,5 +31,5 @@
31
31
  "build-acceptance": "npm run build",
32
32
  "build-release": "npm run build"
33
33
  },
34
- "gitHead": "d21138ad2e8be241ce8b4eb519bc621c034618dd"
34
+ "gitHead": "b9680d2fc5396c1c57d726ebd508fc1bf39e61e0"
35
35
  }