eslint-config-powpeg 1.0.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 +0 -0
  2. package/index.js +34 -0
  3. package/package.json +21 -0
package/README.md ADDED
File without changes
package/index.js ADDED
@@ -0,0 +1,34 @@
1
+ const js = require('@eslint/js');
2
+ const globals = require("globals");
3
+
4
+ const JS_FILES = ['**/*.js']; // only .js files (not .mjs/.cjs)
5
+
6
+ module.exports = [
7
+ // Optional global ignores
8
+ { ignores: ['node_modules/**', 'dist/**', 'coverage/**'] },
9
+
10
+ // Apply everything below only to .js files
11
+ { files: JS_FILES },
12
+
13
+ // Equivalent of "extends: ['eslint:recommended']"
14
+ js.configs.recommended,
15
+
16
+ // Your environment + language options
17
+ {
18
+ files: JS_FILES,
19
+ languageOptions: {
20
+ ecmaVersion: 2021,
21
+ sourceType: 'module',
22
+ globals: {
23
+ ...globals.node,
24
+ ...globals.es2021,
25
+ ...globals.mocha,
26
+ },
27
+ },
28
+ rules: {
29
+ 'no-console': 'warn',
30
+ 'prettier/prettier': 'error',
31
+ },
32
+ }
33
+ ];
34
+
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "eslint-config-powpeg",
3
+ "version": "1.0.0",
4
+ "description": "Shareable linter configuration for Javascript projects",
5
+ "license": "ISC",
6
+ "author": "",
7
+ "type": "commonjs",
8
+ "main": "index.js",
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "dependencies": {
13
+ "@eslint/js": "^9.0.0"
14
+ },
15
+ "peerDependencies": {
16
+ "eslint": ">=9",
17
+ "@eslint/js": "^9.0.0",
18
+ "globals": "^15.0.0"
19
+ },
20
+ "types": "./index.d.ts"
21
+ }