@enormora/eslint-config-base 0.0.10 → 0.0.12

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
@@ -362,9 +362,9 @@ export const baseConfig = {
362
362
  'import/extensions': [
363
363
  'error',
364
364
  {
365
- js: 'always',
366
- jsx: 'always',
367
- json: 'always'
365
+ js: 'ignorePackages',
366
+ jsx: 'ignorePackages',
367
+ json: 'ignorePackages'
368
368
  }
369
369
  ],
370
370
  'import/namespace': [
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.1.3",
4
- "@stylistic/eslint-plugin": "1.5.1",
7
+ "@cspell/eslint-plugin": "8.3.2",
8
+ "@stylistic/eslint-plugin": "1.5.4",
5
9
  "eslint-plugin-array-func": "4.0.0",
6
10
  "eslint-plugin-destructuring": "2.2.1",
7
11
  "eslint-plugin-eslint-comments": "3.2.0",
8
- "eslint-plugin-import": "2.29.0",
12
+ "eslint-plugin-import": "2.29.1",
9
13
  "eslint-plugin-no-secrets": "0.8.9",
10
- "eslint-plugin-prettier": "5.0.1",
14
+ "eslint-plugin-prettier": "5.1.3",
11
15
  "eslint-plugin-promise": "6.1.1",
12
16
  "eslint-plugin-sonarjs": "0.23.0",
13
- "eslint-plugin-unicorn": "49.0.0"
17
+ "eslint-plugin-unicorn": "50.0.1"
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.10"
28
+ "version": "0.0.12"
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
+ ```
@@ -123,6 +123,7 @@ export const bestPracticesRuleSet = {
123
123
  'unicorn/prefer-blob-reading-methods': 'error',
124
124
  'unicorn/prefer-top-level-await': 'off',
125
125
  'unicorn/prefer-at': 'error',
126
+ 'unicorn/no-unnecessary-polyfills': 'off',
126
127
 
127
128
  'array-func/from-map': 'error',
128
129
  'array-func/no-unnecessary-this-arg': 'error',