@orion.ui/orion-linter 1.0.0 → 1.0.2

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.
@@ -38,7 +38,7 @@ const orionRulesPlugin = {
38
38
  'get-set-one-liner': getSetOneLiner,
39
39
  'get-set-adjacent': getSetAdjacent,
40
40
  'events-are-in-camel-case': eventAreInCamelCase,
41
- 'private-property-if-only-in-template': privatePropertyIfOnlyInTemplate
41
+ 'private-property-if-only-in-template': privatePropertyIfOnlyInTemplate,
42
42
  },
43
43
  },
44
44
  };
@@ -63,7 +63,7 @@ export default [
63
63
  plugins,
64
64
  },
65
65
  {
66
- files: ['**/*.js', '**/*.jsx'],
66
+ files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
67
67
  languageOptions: { parserOptions: { jsx: true } },
68
68
  plugins,
69
69
  },
@@ -80,7 +80,7 @@ export default [
80
80
  'eqeqeq': ['error', 'smart'],
81
81
  'no-console': 'warn',
82
82
  'no-debugger': 'error',
83
- 'no-restricted-exports': ['error', { 'restrictDefaultExports': { "direct": true } }],
83
+ 'no-restricted-exports': ['error', { 'restrictDefaultExports': { 'direct': true } }],
84
84
  '@stylistic/space-before-function-paren': ['error', 'always'],
85
85
  '@stylistic/array-bracket-newline': ['error', { multiline: true }],
86
86
  '@stylistic/no-tabs': 'off',
@@ -122,7 +122,7 @@ export default [
122
122
  files: ['**/*.ts', '**/*.tsx'],
123
123
  rules: {
124
124
  'no-unused-vars': 'off',
125
- '@stylistic/no-mixed-spaces-and-tabs':[ 'warn', 'smart-tabs'],
125
+ '@stylistic/no-mixed-spaces-and-tabs': ['warn', 'smart-tabs'],
126
126
  '@typescript-eslint/no-unused-vars': [
127
127
  'warn', {
128
128
  vars: 'all',
@@ -143,9 +143,7 @@ export default [
143
143
  {
144
144
  files: ['**/router/*.ts'],
145
145
  plugins,
146
- rules: {
147
- 'orion-rules/force-dynamic-vue-imports-in-router': 'error',
148
- },
146
+ rules: { 'orion-rules/force-dynamic-vue-imports-in-router': 'error' },
149
147
  },
150
148
 
151
149
  // —————————————————————————————————————————————————————————————————————————————
@@ -154,9 +152,7 @@ export default [
154
152
  {
155
153
  files: ['**/*Service.ts', '**/*Setup.ts'],
156
154
  plugins,
157
- rules: {
158
- 'orion-rules/force-dynamic-vue-imports-in-services': 'error',
159
- },
155
+ rules: { 'orion-rules/force-dynamic-vue-imports-in-services': 'error' },
160
156
  },
161
157
 
162
158
  // —————————————————————————————————————————————————————————————————————————————
@@ -164,9 +160,7 @@ export default [
164
160
  // —————————————————————————————————————————————————————————————————————————————
165
161
  {
166
162
  files: ['**/*.d.ts'],
167
- rules: {
168
- 'no-unused-vars': 'off',
169
- },
163
+ rules: { 'no-unused-vars': 'off' },
170
164
  },
171
165
 
172
166
  // —————————————————————————————————————————————————————————————————————————————
@@ -241,16 +235,14 @@ export default [
241
235
  // —————————————————————————————————————————————————————————————————————————————
242
236
  {
243
237
  files: ['**/*SetupService.ts', '**/*Setup.ts'],
244
- rules: {
245
- 'orion-rules/private-property-if-only-in-template': 'error',
246
- },
238
+ rules: { 'orion-rules/private-property-if-only-in-template': 'error' },
247
239
  },
248
240
 
249
241
  // —————————————————————————————————————————————————————————————————————————————
250
242
  // Rules specific for *.config.(ts|js|mjs) files
251
243
  // —————————————————————————————————————————————————————————————————————————————
252
244
  {
253
- files: ['**/*.config.ts', '**/*.config.js', 'eslint.config.mjs'],
245
+ files: ['**/*.config.ts', '**/*.config.js', '**/*.config.cjs', '**/*.config.mjs'],
254
246
  rules: { 'no-restricted-exports': 'off' },
255
247
  },
256
248
  ];
package/package.json CHANGED
@@ -1,5 +1,4 @@
1
1
  {
2
- "version": "1.0.0",
3
2
  "name": "@orion.ui/orion-linter",
4
3
  "description": "Linting based on Stylistic & Stylelint",
5
4
  "type": "module",
@@ -62,5 +61,6 @@
62
61
  "cpy-cli": "^5.0.0",
63
62
  "rimraf": "^6.0.1",
64
63
  "typescript": "^5.8.3"
65
- }
66
- }
64
+ },
65
+ "version": "1.0.2"
66
+ }