@mikey-pro/eslint-config 2.5.0 → 2.5.4

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 +7 -5
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,27 @@ 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
+ },
130
+ 'newlines-between': 'always',
131
+ },
132
+ ],
133
+ 'import/extensions': ['error', 'always', { ignorePackages: true }],
134
+ 'import/no-commonjs': 0,
135
+ 'sort-imports': 0,
125
136
  'constructor-super': 2,
126
137
  'no-caller': 2,
127
138
  'no-const-assign': 2,
@@ -185,7 +196,7 @@ module.exports = {
185
196
  'unicode-bom': 2,
186
197
  'valid-jsdoc': 0,
187
198
  'spaced-comment': [
188
- 'error',
199
+ 2,
189
200
  'always',
190
201
  {
191
202
  line: {
@@ -232,9 +243,10 @@ module.exports = {
232
243
  'react/no-string-refs': 2,
233
244
  'react-hooks/rules-of-hooks': 2,
234
245
  'react-hooks/exhaustive-deps': 1,
235
- 'unicorn/import-index': ['error', { ignoreImports: true }],
246
+ 'unicorn/import-index': [2, { ignoreImports: true }],
247
+ 'filenames/match-regex': 0,
236
248
  'unicorn/filename-case': [
237
- 'error',
249
+ 2,
238
250
  {
239
251
  cases: {
240
252
  camelCase: true,
@@ -243,7 +255,7 @@ module.exports = {
243
255
  ignore: ['README.md'],
244
256
  },
245
257
  ],
246
- 'prettier/prettier': ['error'],
258
+ 'prettier/prettier': [2],
247
259
  },
248
260
  plugins: [
249
261
  'import',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "2.5.0",
3
+ "version": "2.5.4",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.cjs",
6
6
  "dependencies": {
@@ -14,10 +14,9 @@
14
14
  "@vue/babel-plugin-jsx": "^1.1.1",
15
15
  "@vue/eslint-config-airbnb": "^6.0",
16
16
  "babel-preset-airbnb": "^5.0.0",
17
- "eslint": "^8.3.0",
18
17
  "eslint-config-airbnb": "^19.0",
19
18
  "eslint-config-prettier": "^8.3",
20
- "eslint-config-standard": "16.0.3",
19
+ "eslint-config-standard": "^16.0.3",
21
20
  "eslint-import-resolver-alias": "^1.1",
22
21
  "eslint-plugin-compat": "^4.0",
23
22
  "eslint-plugin-css-modules": "^2.11",
@@ -28,9 +27,9 @@
28
27
  "eslint-plugin-json-format": "^2.0",
29
28
  "eslint-plugin-jsx-a11y": "^6.5",
30
29
  "eslint-plugin-md": "^1.0",
31
- "eslint-plugin-node": "11.1.0",
30
+ "eslint-plugin-node": "^11.1.0",
32
31
  "eslint-plugin-prettier": "^4.0",
33
- "eslint-plugin-promise": "5.1.1",
32
+ "eslint-plugin-promise": "^5.1.1",
34
33
  "eslint-plugin-react": "^7.27",
35
34
  "eslint-plugin-react-hooks": "^4.3",
36
35
  "eslint-plugin-sonarjs": "^0.10.0",
@@ -39,6 +38,9 @@
39
38
  "eslint-plugin-vue": "^8.1",
40
39
  "vue-eslint-parser": "^8.0"
41
40
  },
41
+ "peerDependencies": {
42
+ "eslint": ">=8.3.0"
43
+ },
42
44
  "files": [
43
45
  "index.cjs",
44
46
  "README.md",