@enormora/eslint-config-base 0.0.11 → 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
@@ -1,17 +1,22 @@
1
1
  {
2
+ "author": "Mathias Schreck <schreck.mathias@gmail.com>",
3
+ "contributors": [
4
+ "Christian Rackerseder <github@echooff.de>"
5
+ ],
2
6
  "dependencies": {
3
- "@cspell/eslint-plugin": "8.3.2",
4
- "@stylistic/eslint-plugin": "1.5.4",
5
- "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",
6
11
  "eslint-plugin-destructuring": "2.2.1",
7
- "eslint-plugin-eslint-comments": "3.2.0",
8
12
  "eslint-plugin-import": "2.29.1",
9
- "eslint-plugin-no-secrets": "0.8.9",
10
- "eslint-plugin-prettier": "5.1.3",
11
- "eslint-plugin-promise": "6.1.1",
12
- "eslint-plugin-sonarjs": "0.23.0",
13
- "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"
14
18
  },
19
+ "description": "Enormora’s ESLint base configuration",
15
20
  "license": "MIT",
16
21
  "main": "base.js",
17
22
  "name": "@enormora/eslint-config-base",
@@ -20,5 +25,5 @@
20
25
  "url": "git://github.com/enormora/eslint-config.git"
21
26
  },
22
27
  "type": "module",
23
- "version": "0.0.11"
28
+ "version": "0.0.13"
24
29
  }
package/readme.md ADDED
@@ -0,0 +1,24 @@
1
+ # `@enormora/eslint-config-base`
2
+
3
+ Base ESLint config preset, agnostic to any environment, framework, or library. Targets ESM-only projects.
4
+
5
+ ## Install & Setup
6
+
7
+ Install the `@enormora/eslint-config-base` package via npm:
8
+
9
+ ```bash
10
+ npm install --save-dev @enormora/eslint-config-base
11
+ ```
12
+
13
+ Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base config to the configuration array:
14
+
15
+ ```javascript
16
+ import { baseConfig } from '@enormora/eslint-config-base';
17
+
18
+ export default [
19
+ {
20
+ ignores: ['dist/**/*']
21
+ },
22
+ baseConfig
23
+ ];
24
+ ```
@@ -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
  };