eslint-config-crowdstrike-node 3.0.0 → 4.0.0-beta.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.
- package/README.md +2 -1
- package/index.js +36 -18
- package/package.json +23 -15
- package/CHANGELOG.md +0 -41
package/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# eslint-config-crowdstrike-node
|
2
2
|
|
3
3
|
[](https://badge.fury.io/js/eslint-config-crowdstrike-node)
|
4
|
-
[](https://travis-ci.org/CrowdStrike/eslint-config-crowdstrike-node)
|
5
4
|
|
6
5
|
[ESLint](https://eslint.org) [Node.js](https://nodejs.org) config for [CrowdStrike](https://www.crowdstrike.com)
|
6
|
+
|
7
|
+
Uses [eslint-config-crowdstrike](https://github.com/CrowdStrike/eslint-config-crowdstrike)
|
package/index.js
CHANGED
@@ -1,21 +1,39 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
'crowdstrike',
|
9
|
-
'plugin:node/recommended',
|
10
|
-
],
|
11
|
-
plugins: [
|
12
|
-
'json-files',
|
13
|
-
],
|
14
|
-
rules: {
|
15
|
-
'strict': 'error',
|
3
|
+
const jsonFiles = require('eslint-plugin-json-files');
|
4
|
+
const globals = require('globals');
|
5
|
+
const { FlatCompat } = require('@eslint/eslintrc');
|
6
|
+
const js = require('@eslint/js');
|
7
|
+
const nodePlugin = require('eslint-plugin-n');
|
16
8
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
};
|
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
|
+
module.exports = [
|
16
|
+
nodePlugin.configs['flat/recommended-script'],
|
17
|
+
...compat.extends('crowdstrike'),
|
18
|
+
{
|
19
|
+
files: ['**/*.json'],
|
20
|
+
plugins: {
|
21
|
+
'json-files': jsonFiles,
|
22
|
+
},
|
23
|
+
processor: 'json-files/json',
|
24
|
+
languageOptions: {
|
25
|
+
globals: {
|
26
|
+
...globals.node,
|
27
|
+
},
|
28
|
+
},
|
29
|
+
|
30
|
+
rules: {
|
31
|
+
strict: 'error',
|
32
|
+
'json-files/require-engines': 'error',
|
33
|
+
'json-files/require-license': 'error',
|
34
|
+
|
35
|
+
'json-files/restrict-ranges': ['error', {
|
36
|
+
pinUnstable: true,
|
37
|
+
}],
|
38
|
+
},
|
39
|
+
}];
|
package/package.json
CHANGED
@@ -1,18 +1,23 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-config-crowdstrike-node",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0-beta.0",
|
4
4
|
"description": "ESLint Node.js config for CrowdStrike",
|
5
5
|
"main": "index.js",
|
6
6
|
"files": [
|
7
7
|
"index.js"
|
8
8
|
],
|
9
9
|
"scripts": {
|
10
|
-
"lint:git": "commitlint",
|
11
|
-
"lint:js": "eslint .
|
10
|
+
"lint:git": "commitlint --default-branch main",
|
11
|
+
"lint:js": "eslint .",
|
12
12
|
"lint:md": "remark -f README.md",
|
13
|
-
"release": "standard-version
|
13
|
+
"release": "standard-version",
|
14
14
|
"test": "yarn lint:git && yarn lint:js && yarn lint:md"
|
15
15
|
},
|
16
|
+
"standard-version": {
|
17
|
+
"scripts": {
|
18
|
+
"posttag": "git push --follow-tags --atomic"
|
19
|
+
}
|
20
|
+
},
|
16
21
|
"repository": {
|
17
22
|
"type": "git",
|
18
23
|
"url": "git+ssh://git@github.com/CrowdStrike/eslint-config-crowdstrike-node.git"
|
@@ -27,24 +32,27 @@
|
|
27
32
|
"url": "https://github.com/CrowdStrike/eslint-config-crowdstrike-node/issues"
|
28
33
|
},
|
29
34
|
"homepage": "https://github.com/CrowdStrike/eslint-config-crowdstrike-node#readme",
|
30
|
-
"
|
31
|
-
"
|
35
|
+
"dependencies": {
|
36
|
+
"@eslint/eslintrc": "^3.1.0",
|
37
|
+
"@eslint/js": "^9.8.0",
|
38
|
+
"globals": "^15.8.0"
|
32
39
|
},
|
33
40
|
"devDependencies": {
|
34
|
-
"@crowdstrike/commitlint": "^
|
35
|
-
"eslint": "^
|
36
|
-
"eslint-config-crowdstrike": "
|
41
|
+
"@crowdstrike/commitlint": "^8.0.0",
|
42
|
+
"eslint": "^9.0.0",
|
43
|
+
"eslint-config-crowdstrike": "10.1.0",
|
37
44
|
"eslint-config-crowdstrike-node": "link:",
|
38
|
-
"eslint-plugin-json-files": "
|
39
|
-
"eslint-plugin-
|
40
|
-
"remark-cli": "^
|
41
|
-
"remark-preset-lint-crowdstrike": "^
|
45
|
+
"eslint-plugin-json-files": "^4.3.0",
|
46
|
+
"eslint-plugin-n": "^17.0.0",
|
47
|
+
"remark-cli": "^12.0.0",
|
48
|
+
"remark-preset-lint-crowdstrike": "^4.0.0",
|
42
49
|
"renovate-config-standard": "^2.0.0",
|
43
50
|
"standard-version": "^9.0.0"
|
44
51
|
},
|
45
52
|
"peerDependencies": {
|
53
|
+
"eslint": ">=8.57.0",
|
46
54
|
"eslint-config-crowdstrike": ">=1",
|
47
|
-
"eslint-plugin-json-files": "0
|
48
|
-
"eslint-plugin-
|
55
|
+
"eslint-plugin-json-files": ">=4.3.0",
|
56
|
+
"eslint-plugin-n": ">=16.1.0"
|
49
57
|
}
|
50
58
|
}
|
package/CHANGELOG.md
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4
|
-
|
5
|
-
## [3.0.0](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/compare/v2.2.0...v3.0.0) (2020-10-16)
|
6
|
-
|
7
|
-
|
8
|
-
### ⚠ BREAKING CHANGES
|
9
|
-
|
10
|
-
* bump to node 10
|
11
|
-
* require `use strict` in node files
|
12
|
-
|
13
|
-
### Features
|
14
|
-
|
15
|
-
* bump to node 10 ([9261166](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/commit/9261166b7ff15b0f6077c806f856f85c5e5c583e))
|
16
|
-
* require `use strict` in node files ([c44b908](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/commit/c44b908381ecd9186b53f640235850803fca9c6a))
|
17
|
-
|
18
|
-
## [2.2.0](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/compare/v2.1.0...v2.2.0) (2020-02-05)
|
19
|
-
|
20
|
-
|
21
|
-
### Features
|
22
|
-
|
23
|
-
* relax `eslint-config-crowdstrike` peer dep ([51508eb](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/commit/51508eb7b7fc8e90be908b3242feb7402785cae4))
|
24
|
-
|
25
|
-
## [2.1.0](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/compare/v2.0.1...v2.1.0) (2020-01-28)
|
26
|
-
|
27
|
-
|
28
|
-
### Features
|
29
|
-
|
30
|
-
* relax `eslint-plugin-node` peer dep constraint ([d351720](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/commit/d351720e3ea2a65c3f7ed522581ffa3f008c7fb0))
|
31
|
-
|
32
|
-
### [2.0.1](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/compare/v2.0.0...v2.0.1) (2019-10-01)
|
33
|
-
|
34
|
-
## [2.0.0](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/compare/v1.0.0...v2.0.0) (2019-09-11)
|
35
|
-
|
36
|
-
|
37
|
-
### ⚠ BREAKING CHANGES
|
38
|
-
|
39
|
-
* **deps:** peer dep changed
|
40
|
-
|
41
|
-
* **deps:** update dependency eslint-plugin-node to v10 ([5476546](https://github.com/CrowdStrike/eslint-config-crowdstrike-node/commit/5476546))
|