@mikey-pro/eslint-config 2.5.1 → 2.5.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.
Files changed (2) hide show
  1. package/index.cjs +39 -27
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -20,7 +20,7 @@ module.exports = {
20
20
  extends: ['plugin:md/recommended'],
21
21
  rules: {
22
22
  'md/remark': [
23
- 'error',
23
+ 2,
24
24
  {
25
25
  plugins: [
26
26
  'preset-lint-markdown-style-guide',
@@ -28,13 +28,13 @@ module.exports = {
28
28
  ],
29
29
  },
30
30
  ],
31
- 'prettier/prettier': ['error', { parser: 'markdown' }],
31
+ 'prettier/prettier': [2, { parser: 'markdown' }],
32
32
  },
33
33
  },
34
34
  {
35
35
  files: ['*.md.json'],
36
36
  rules: {
37
- 'prettier/prettier': ['error', { parser: 'json' }],
37
+ 'prettier/prettier': [2, { parser: 'json' }],
38
38
  },
39
39
  },
40
40
  {
@@ -42,15 +42,15 @@ module.exports = {
42
42
  parser: '@html-eslint/parser',
43
43
  extends: ['plugin:@html-eslint/recommended'],
44
44
  rules: {
45
- 'spaced-comment': 'off',
46
- '@html-eslint/indent': 'off',
47
- '@html-eslint/no-extra-spacing-attrs': 'off',
48
- '@html-eslint/require-closing-tags': 'off',
45
+ 'spaced-comment': 0,
46
+ '@html-eslint/indent': 0,
47
+ '@html-eslint/no-extra-spacing-attrs': 0,
48
+ '@html-eslint/require-closing-tags': 0,
49
49
  'disable-autofix/@html-eslint/require-closing-tags': [
50
- 'error',
50
+ 2,
51
51
  { selfClosing: 'always' },
52
52
  ],
53
- 'prettier/prettier': ['error', { parser: 'html' }],
53
+ 'prettier/prettier': [2, { parser: 'html' }],
54
54
  },
55
55
  },
56
56
  {
@@ -59,7 +59,7 @@ module.exports = {
59
59
  extends: ['plugin:vue/vue3-recommended', '@vue/airbnb'],
60
60
  rules: {
61
61
  'vue/html-self-closing': [
62
- 'error',
62
+ 2,
63
63
  {
64
64
  html: {
65
65
  void: 'always',
@@ -70,18 +70,18 @@ module.exports = {
70
70
  math: 'always',
71
71
  },
72
72
  ],
73
- 'prettier/prettier': 'off',
73
+ 'prettier/prettier': 0,
74
74
  },
75
75
  },
76
76
  {
77
77
  files: ['*.svelte'],
78
78
  processor: 'svelte3/svelte3',
79
79
  rules: {
80
- 'import/first': 'off',
81
- 'import/no-duplicates': 'off',
82
- 'import/no-mutable-exports': 'off',
83
- 'import/no-unresolved': 'off',
84
- 'prettier/prettier': 'off',
80
+ 'import/first': 0,
81
+ 'import/no-duplicates': 0,
82
+ 'import/no-mutable-exports': 0,
83
+ 'import/no-unresolved': 0,
84
+ 'prettier/prettier': 0,
85
85
  },
86
86
  },
87
87
  ],
@@ -94,7 +94,7 @@ module.exports = {
94
94
  },
95
95
  rules: {
96
96
  'no-restricted-syntax': [
97
- 'error',
97
+ 2,
98
98
  {
99
99
  selector: 'ForInStatement',
100
100
  message:
@@ -112,16 +112,28 @@ module.exports = {
112
112
  },
113
113
  ],
114
114
  camelcase: 0,
115
- 'no-console': 'off',
116
- 'func-names': 'off',
117
- 'no-process-exit': 'off',
118
- 'class-methods-use-this': 'off',
119
- 'no-underscore-dangle': 'off',
115
+ 'no-console': 0,
116
+ 'func-names': 0,
117
+ 'no-process-exit': 0,
118
+ 'class-methods-use-this': 0,
119
+ 'no-underscore-dangle': 0,
120
120
  'import/no-unresolved': [
121
121
  2,
122
122
  { commonjs: true, amd: true, ignore: ['^node:'] },
123
123
  ],
124
- 'import/extensions': 'off',
124
+ 'import/order': [
125
+ 2,
126
+ {
127
+ alphabetize: {
128
+ order: 'asc',
129
+ caseInsensitive: true,
130
+ },
131
+ 'newlines-between': 'always',
132
+ },
133
+ ],
134
+ 'import/extensions': ['error', 'always', { ignorePackages: true }],
135
+ 'import/no-commonjs': 0,
136
+ 'sort-imports': 0,
125
137
  'constructor-super': 2,
126
138
  'no-caller': 2,
127
139
  'no-const-assign': 2,
@@ -185,7 +197,7 @@ module.exports = {
185
197
  'unicode-bom': 2,
186
198
  'valid-jsdoc': 0,
187
199
  'spaced-comment': [
188
- 'error',
200
+ 2,
189
201
  'always',
190
202
  {
191
203
  line: {
@@ -232,10 +244,10 @@ module.exports = {
232
244
  'react/no-string-refs': 2,
233
245
  'react-hooks/rules-of-hooks': 2,
234
246
  'react-hooks/exhaustive-deps': 1,
235
- 'unicorn/import-index': ['error', { ignoreImports: true }],
247
+ 'unicorn/import-index': [2, { ignoreImports: true }],
236
248
  'filenames/match-regex': 0,
237
249
  'unicorn/filename-case': [
238
- 'error',
250
+ 2,
239
251
  {
240
252
  cases: {
241
253
  camelCase: true,
@@ -244,7 +256,7 @@ module.exports = {
244
256
  ignore: ['README.md'],
245
257
  },
246
258
  ],
247
- 'prettier/prettier': ['error'],
259
+ 'prettier/prettier': [2],
248
260
  },
249
261
  plugins: [
250
262
  'import',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {