eslint-config-crowdstrike-node 4.0.0-beta.0 → 4.0.0-beta.2

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 +3 -10
  2. package/package.json +5 -10
package/index.js CHANGED
@@ -1,20 +1,13 @@
1
1
  'use strict';
2
2
 
3
- const jsonFiles = require('eslint-plugin-json-files');
3
+ const crowdstrikeConfig = require('eslint-config-crowdstrike');
4
4
  const globals = require('globals');
5
- const { FlatCompat } = require('@eslint/eslintrc');
6
- const js = require('@eslint/js');
5
+ const jsonFiles = require('eslint-plugin-json-files');
7
6
  const nodePlugin = require('eslint-plugin-n');
8
7
 
9
- const compat = new FlatCompat({
10
- baseDirectory: __dirname, // optional; default: process.cwd()
11
- resolvePluginsRelativeTo: __dirname, // optional
12
- recommendedConfig: js.configs.recommended, // optional unless using "eslint:recommended"
13
- });
14
-
15
8
  module.exports = [
16
9
  nodePlugin.configs['flat/recommended-script'],
17
- ...compat.extends('crowdstrike'),
10
+ ...crowdstrikeConfig,
18
11
  {
19
12
  files: ['**/*.json'],
20
13
  plugins: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-crowdstrike-node",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.0-beta.2",
4
4
  "description": "ESLint Node.js config for CrowdStrike",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -33,26 +33,21 @@
33
33
  },
34
34
  "homepage": "https://github.com/CrowdStrike/eslint-config-crowdstrike-node#readme",
35
35
  "dependencies": {
36
- "@eslint/eslintrc": "^3.1.0",
37
- "@eslint/js": "^9.8.0",
36
+ "eslint-config-crowdstrike": "11.0.0-beta.0",
37
+ "eslint-plugin-json-files": "^4.3.0",
38
+ "eslint-plugin-n": "^17.0.0",
38
39
  "globals": "^15.8.0"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@crowdstrike/commitlint": "^8.0.0",
42
43
  "eslint": "^9.0.0",
43
- "eslint-config-crowdstrike": "10.1.0",
44
44
  "eslint-config-crowdstrike-node": "link:",
45
- "eslint-plugin-json-files": "^4.3.0",
46
- "eslint-plugin-n": "^17.0.0",
47
45
  "remark-cli": "^12.0.0",
48
46
  "remark-preset-lint-crowdstrike": "^4.0.0",
49
47
  "renovate-config-standard": "^2.0.0",
50
48
  "standard-version": "^9.0.0"
51
49
  },
52
50
  "peerDependencies": {
53
- "eslint": ">=8.57.0",
54
- "eslint-config-crowdstrike": ">=1",
55
- "eslint-plugin-json-files": ">=4.3.0",
56
- "eslint-plugin-n": ">=16.1.0"
51
+ "eslint": ">=8.57.0"
57
52
  }
58
53
  }