@mikey-pro/eslint-config 1.4.1 → 1.5.1

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.js +63 -3
  2. package/package.json +6 -6
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,29 +1,29 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
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",
10
10
  "@html-eslint/eslint-plugin": "^0.11.0",
11
11
  "@html-eslint/parser": "^0.11.0",
12
- "eslint": "^7.32",
12
+ "eslint": "^8.0",
13
13
  "eslint-config-airbnb-base": "^14.2",
14
14
  "eslint-config-prettier": "^8.3",
15
15
  "eslint-config-standard": "16.0.3",
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",
20
- "eslint-plugin-import": "^2.24",
19
+ "eslint-plugin-disable-autofix": "^0.1.4",
20
+ "eslint-plugin-import": "^2.25",
21
21
  "eslint-plugin-json": "^3.1",
22
22
  "eslint-plugin-json-format": "^2.0",
23
23
  "eslint-plugin-md": "^1.0",
24
24
  "eslint-plugin-node": "11.1.0",
25
25
  "eslint-plugin-prettier": "^4.0",
26
- "eslint-plugin-promise": "5.1.0",
26
+ "eslint-plugin-promise": "5.1.1",
27
27
  "eslint-plugin-sonar": "^0.6.1"
28
28
  },
29
29
  "files": [