@enormora/eslint-config-base 0.0.12 → 0.0.13

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.
package/base.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import importPlugin from 'eslint-plugin-import';
2
- import eslintCommentsPlugin from 'eslint-plugin-eslint-comments';
2
+ import eslintCommentsPlugin from '@eslint-community/eslint-plugin-eslint-comments';
3
3
  import noSecretsPlugin from 'eslint-plugin-no-secrets';
4
4
  import codeSpellChecker from '@cspell/eslint-plugin';
5
5
  import { stylisticRuleSet } from './rule-sets/stylistic.js';
package/package.json CHANGED
@@ -4,17 +4,17 @@
4
4
  "Christian Rackerseder <github@echooff.de>"
5
5
  ],
6
6
  "dependencies": {
7
- "@cspell/eslint-plugin": "8.3.2",
8
- "@stylistic/eslint-plugin": "1.5.4",
9
- "eslint-plugin-array-func": "4.0.0",
7
+ "@cspell/eslint-plugin": "8.14.1",
8
+ "@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
9
+ "@stylistic/eslint-plugin": "1.8.1",
10
+ "eslint-plugin-array-func": "5.0.2",
10
11
  "eslint-plugin-destructuring": "2.2.1",
11
- "eslint-plugin-eslint-comments": "3.2.0",
12
12
  "eslint-plugin-import": "2.29.1",
13
- "eslint-plugin-no-secrets": "0.8.9",
14
- "eslint-plugin-prettier": "5.1.3",
15
- "eslint-plugin-promise": "6.1.1",
16
- "eslint-plugin-sonarjs": "0.23.0",
17
- "eslint-plugin-unicorn": "50.0.1"
13
+ "eslint-plugin-no-secrets": "1.0.2",
14
+ "eslint-plugin-prettier": "5.2.1",
15
+ "eslint-plugin-promise": "6.6.0",
16
+ "eslint-plugin-sonarjs": "1.0.4",
17
+ "eslint-plugin-unicorn": "52.0.0"
18
18
  },
19
19
  "description": "Enormora’s ESLint base configuration",
20
20
  "license": "MIT",
@@ -25,5 +25,5 @@
25
25
  "url": "git://github.com/enormora/eslint-config.git"
26
26
  },
27
27
  "type": "module",
28
- "version": "0.0.12"
28
+ "version": "0.0.13"
29
29
  }
@@ -124,6 +124,9 @@ export const bestPracticesRuleSet = {
124
124
  'unicorn/prefer-top-level-await': 'off',
125
125
  'unicorn/prefer-at': 'error',
126
126
  'unicorn/no-unnecessary-polyfills': 'off',
127
+ 'unicorn/no-single-promise-in-promise-methods': 'error',
128
+ 'unicorn/no-await-in-promise-methods': 'error',
129
+ 'unicorn/no-anonymous-default-export': 'error',
127
130
 
128
131
  'array-func/from-map': 'error',
129
132
  'array-func/no-unnecessary-this-arg': 'error',
@@ -19,7 +19,7 @@ export const stylisticRuleSet = {
19
19
  'destructuring/in-params': ['error', { 'max-params': 0 }],
20
20
  'destructuring/no-rename': 'off',
21
21
 
22
- '@stylistic/array-bracket-newline': ['error', 'consistent'],
22
+ '@stylistic/array-bracket-newline': 'off',
23
23
  '@stylistic/array-bracket-spacing': ['error', 'never'],
24
24
  '@stylistic/array-element-newline': ['error', 'consistent'],
25
25
  '@stylistic/arrow-parens': ['error', 'always'],
@@ -85,6 +85,7 @@ export const stylisticRuleSet = {
85
85
  '@stylistic/jsx-tag-spacing': 'off',
86
86
  '@stylistic/jsx-quotes': 'off',
87
87
  '@stylistic/jsx-wrap-multilines': 'off',
88
+ '@stylistic/jsx-function-call-newline': 'off',
88
89
  '@stylistic/key-spacing': [
89
90
  'error',
90
91
  {
@@ -229,6 +230,7 @@ export const stylisticRuleSet = {
229
230
  '@stylistic/type-named-tuple-spacing': 'error',
230
231
  '@stylistic/wrap-iife': ['error', 'inside'],
231
232
  '@stylistic/wrap-regex': 'off',
232
- '@stylistic/yield-star-spacing': ['error', { before: false, after: true }]
233
+ '@stylistic/yield-star-spacing': ['error', { before: false, after: true }],
234
+ '@stylistic/jsx-pascal-case': 'off'
233
235
  }
234
236
  };