@mikey-pro/eslint-config 1.4.0 → 1.5.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.
Files changed (3) hide show
  1. package/README.md +1 -27
  2. package/index.js +63 -3
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -15,33 +15,7 @@
15
15
 
16
16
  ## **@mikey-pro/eslint-config**
17
17
 
18
- A preset ESLint configuration
19
-
20
- <div>
21
- <a href="https://www.npmjs.com/package/@mikey-pro/eslint-config"
22
- ><img
23
- src="https://img.shields.io/librariesio/release/npm/@mikey-pro/eslint-config?color=8fbe61&style=for-the-badge"
24
- alt="Dependencies badge"
25
- height="20px"
26
- /></a>
27
- </div>
28
- <div>
29
- <a href="https://www.npmjs.com/package/@mikey-pro/eslint-config"
30
- ><img
31
- src="https://img.shields.io/bundlephobia/min/@mikey-pro/eslint-config?color=9987d8&label=package%20size&logo=ok&style=for-the-badge"
32
- alt="Package size badge"
33
- height="20px"
34
- /></a>
35
- </div>
36
-
37
- <div>
38
- <a href="https://www.npmjs.com/package/@mikey-pro/eslint-config"
39
- ><img
40
- src="https://img.shields.io/npm/dw/@mikey-pro/eslint-config?color=5dacb7&style=for-the-badge"
41
- alt="Downloads badge"
42
- height="20px"
43
- /></a>
44
- </div>
18
+ _A preset ESLint configuration_
45
19
 
46
20
  ## Usage
47
21
 
package/index.js CHANGED
@@ -37,6 +37,7 @@ module.exports = {
37
37
  parser: '@html-eslint/parser',
38
38
  extends: ['plugin:@html-eslint/recommended'],
39
39
  rules: {
40
+ 'spaced-comment': 'off',
40
41
  '@html-eslint/indent': 'off',
41
42
  '@html-eslint/no-extra-spacing-attrs': 'off',
42
43
  '@html-eslint/require-closing-tags': 'off',
@@ -56,14 +57,74 @@ module.exports = {
56
57
  es2021: true,
57
58
  },
58
59
  rules: {
59
- 'no-unused-vars': 'warn',
60
60
  'no-console': 'off',
61
61
  'func-names': 'off',
62
62
  'no-process-exit': 'off',
63
- 'object-shorthand': 'off',
64
63
  'class-methods-use-this': 'off',
65
64
  'no-underscore-dangle': 'off',
66
65
  'import/extensions': 'off',
66
+ 'constructor-super': 2,
67
+ 'no-caller': 2,
68
+ 'no-const-assign': 2,
69
+ 'no-delete-var': 2,
70
+ 'no-dupe-class-members': 2,
71
+ 'no-dupe-keys': 2,
72
+ 'no-duplicate-imports': 2,
73
+ 'no-else-return': 1,
74
+ 'no-empty-pattern': 0,
75
+ 'no-empty': 0,
76
+ 'no-extra-parens': 0,
77
+ 'no-iterator': 2,
78
+ 'no-lonely-if': 2,
79
+ 'no-mixed-spaces-and-tabs': [1, 'smart-tabs'],
80
+ 'no-multi-str': 1,
81
+ 'no-new-wrappers': 2,
82
+ 'no-proto': 2,
83
+ 'no-redeclare': 2,
84
+ 'no-shadow-restricted-names': 2,
85
+ 'no-shadow': 0,
86
+ 'no-spaced-func': 2,
87
+ 'no-this-before-super': 2,
88
+ 'no-undef-init': 2,
89
+ 'no-unneeded-ternary': 2,
90
+ 'no-unused-vars': [
91
+ 2,
92
+ {
93
+ args: 'after-used',
94
+ ignoreRestSiblings: true,
95
+ },
96
+ ],
97
+ 'no-useless-call': 1,
98
+ 'no-useless-computed-key': 1,
99
+ 'no-useless-concat': 1,
100
+ 'no-useless-constructor': 1,
101
+ 'no-useless-escape': 1,
102
+ 'no-useless-rename': 1,
103
+ 'no-var': 1,
104
+ 'no-with': 2,
105
+ semi: 0,
106
+ strict: [2, 'never'],
107
+ 'object-curly-spacing': [0, 'always'],
108
+ 'rest-spread-spacing': 0,
109
+ 'space-before-function-paren': [0, 'always'],
110
+ 'space-in-parens': [0, 'never'],
111
+ 'object-shorthand': 1,
112
+ 'prefer-arrow-callback': 1,
113
+ 'prefer-rest-params': 1,
114
+ 'prefer-spread': 1,
115
+ 'prefer-template': 1,
116
+ quotes: [
117
+ 0,
118
+ 'single',
119
+ {
120
+ avoidEscape: true,
121
+ allowTemplateLiterals: true,
122
+ },
123
+ ],
124
+ 'quote-props': [2, 'as-needed'],
125
+ radix: 1,
126
+ 'unicode-bom': 2,
127
+ 'valid-jsdoc': 0,
67
128
  'spaced-comment': [
68
129
  'error',
69
130
  'always',
@@ -105,7 +166,6 @@ module.exports = {
105
166
  },
106
167
  parser: '@babel/eslint-parser',
107
168
  parserOptions: {
108
- ecmaVersion: 2020,
109
169
  requireConfigFile: false,
110
170
  babelOptions: {
111
171
  presets: [
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "peerDependencies": {
6
- "@babel/core": "^7.15.5",
6
+ "@babel/core": "^7.15.8",
7
7
  "@babel/eslint-parser": "^7.15",
8
8
  "@babel/eslint-plugin": "^7.14",
9
9
  "@babel/preset-env": "^7.15",
@@ -16,7 +16,7 @@
16
16
  "eslint-import-resolver-alias": "^1.1",
17
17
  "eslint-plugin-compat": "^3.13",
18
18
  "eslint-plugin-css-modules": "^2.11",
19
- "eslint-plugin-disable-autofix": "^0.1.3",
19
+ "eslint-plugin-disable-autofix": "^0.1.4",
20
20
  "eslint-plugin-import": "^2.24",
21
21
  "eslint-plugin-json": "^3.1",
22
22
  "eslint-plugin-json-format": "^2.0",