eslint-config-crowdstrike 4.0.1 → 7.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.
- package/index.js +29 -1
- package/package.json +4 -4
- package/CHANGELOG.md +0 -70
package/index.js
CHANGED
@@ -17,11 +17,11 @@ module.exports = {
|
|
17
17
|
'MemberExpression': 1,
|
18
18
|
'SwitchCase': 1,
|
19
19
|
}],
|
20
|
-
'keyword-spacing': ['error', {}],
|
21
20
|
'max-params': ['error', 3],
|
22
21
|
'no-constant-condition': 'off',
|
23
22
|
'no-empty': ['error', { allowEmptyCatch: true }],
|
24
23
|
'no-restricted-globals': ['error', 'event'],
|
24
|
+
'object-shorthand': 'error',
|
25
25
|
'one-var': ['error', 'never'],
|
26
26
|
'quotes': ['error', 'single', {
|
27
27
|
'allowTemplateLiterals': true,
|
@@ -29,12 +29,40 @@ module.exports = {
|
|
29
29
|
}],
|
30
30
|
'require-await': 'error',
|
31
31
|
'semi': 'error',
|
32
|
+
|
33
|
+
// spacing
|
34
|
+
'arrow-spacing': 'error',
|
35
|
+
'array-bracket-spacing': 'error',
|
36
|
+
'block-spacing': 'error',
|
37
|
+
'comma-spacing': 'error',
|
38
|
+
'computed-property-spacing': 'error',
|
39
|
+
'func-call-spacing': 'error',
|
40
|
+
'generator-star-spacing': ['error', { 'before': false, 'after': true }],
|
41
|
+
'key-spacing': 'error',
|
42
|
+
'keyword-spacing': ['error', {}],
|
43
|
+
'no-trailing-spaces': 'error',
|
44
|
+
'no-whitespace-before-property': 'error',
|
45
|
+
'object-curly-spacing': ['error', 'always'],
|
46
|
+
'rest-spread-spacing': 'error',
|
47
|
+
'semi-spacing': 'error',
|
48
|
+
'space-before-blocks': 'error',
|
49
|
+
'space-before-function-paren': ['error', {
|
50
|
+
'anonymous': 'ignore',
|
51
|
+
'named': 'never',
|
52
|
+
'asyncArrow': 'always',
|
53
|
+
}],
|
54
|
+
'space-in-parens': 'error',
|
55
|
+
'space-infix-ops': 'error',
|
56
|
+
'space-unary-ops': 'error',
|
32
57
|
'spaced-comment': ['error', 'always', {
|
33
58
|
'block': {
|
34
59
|
'balanced': true,
|
35
60
|
'exceptions': ['*'],
|
36
61
|
},
|
37
62
|
}],
|
63
|
+
'switch-colon-spacing': 'error',
|
38
64
|
'template-curly-spacing': ['error', 'never'],
|
65
|
+
'template-tag-spacing': 'error',
|
66
|
+
'yield-star-spacing': 'error',
|
39
67
|
},
|
40
68
|
};
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-config-crowdstrike",
|
3
|
-
"version": "
|
3
|
+
"version": "7.0.0",
|
4
4
|
"description": "ESLint config for CrowdStrike",
|
5
5
|
"main": "index.js",
|
6
6
|
"files": [
|
7
7
|
"index.js"
|
8
8
|
],
|
9
9
|
"scripts": {
|
10
|
-
"lint:git": "commitlint",
|
10
|
+
"lint:git": "commitlint --default-branch main",
|
11
11
|
"lint:js": "eslint . --ext js,json",
|
12
12
|
"lint:md": "remark -f README.md",
|
13
13
|
"release": "standard-version",
|
@@ -33,13 +33,13 @@
|
|
33
33
|
},
|
34
34
|
"homepage": "https://github.com/CrowdStrike/eslint-config-crowdstrike#readme",
|
35
35
|
"devDependencies": {
|
36
|
-
"@crowdstrike/commitlint": "^
|
36
|
+
"@crowdstrike/commitlint": "^5.0.0",
|
37
37
|
"eslint": "^8.0.0",
|
38
38
|
"eslint-config-crowdstrike": "link:",
|
39
39
|
"eslint-config-crowdstrike-node": "^3.0.0",
|
40
40
|
"eslint-plugin-json-files": "^1.2.0",
|
41
41
|
"eslint-plugin-node": "^11.0.0",
|
42
|
-
"remark-cli": "^
|
42
|
+
"remark-cli": "^11.0.0",
|
43
43
|
"remark-preset-lint-crowdstrike": "^2.0.0",
|
44
44
|
"renovate-config-standard": "^2.0.0",
|
45
45
|
"standard-version": "^9.0.0"
|
package/CHANGELOG.md
DELETED
@@ -1,70 +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
|
-
### [4.0.1](https://github.com/CrowdStrike/eslint-config-crowdstrike/compare/v4.0.0...v4.0.1) (2021-10-12)
|
6
|
-
|
7
|
-
|
8
|
-
### Bug Fixes
|
9
|
-
|
10
|
-
* revert accidental eslint peer deps bump ([c1bfbef](https://github.com/CrowdStrike/eslint-config-crowdstrike/commit/c1bfbefdf5d1003fd657ec950acdb45aeb01e79d))
|
11
|
-
|
12
|
-
## [4.0.0](https://github.com/CrowdStrike/eslint-config-crowdstrike/compare/v3.1.0...v4.0.0) (2021-09-10)
|
13
|
-
|
14
|
-
|
15
|
-
### ⚠ BREAKING CHANGES
|
16
|
-
|
17
|
-
* add eol-last rule
|
18
|
-
|
19
|
-
### Features
|
20
|
-
|
21
|
-
* add eol-last rule ([d7d7e49](https://github.com/CrowdStrike/eslint-config-crowdstrike/commit/d7d7e498781ae147be10b09ab2f22b1fc1909977))
|
22
|
-
|
23
|
-
## [3.1.0](https://github.com/CrowdStrike/eslint-config-crowdstrike/compare/v3.0.2...v3.1.0) (2021-06-15)
|
24
|
-
|
25
|
-
|
26
|
-
### Features
|
27
|
-
|
28
|
-
* bump `ecmaVersion` to `2020` ([029945a](https://github.com/CrowdStrike/eslint-config-crowdstrike/commit/029945ad5b8f088918fed301f4aa409a0280da16))
|
29
|
-
|
30
|
-
### [3.0.2](https://github.com/CrowdStrike/eslint-config-crowdstrike/compare/v3.0.1...v3.0.2) (2021-06-15)
|
31
|
-
|
32
|
-
### [3.0.1](https://github.com/CrowdStrike/eslint-config-crowdstrike/compare/v3.0.0...v3.0.1) (2020-11-20)
|
33
|
-
|
34
|
-
|
35
|
-
### Bug Fixes
|
36
|
-
|
37
|
-
* remove `strict` ([3d6bb3d](https://github.com/CrowdStrike/eslint-config-crowdstrike/commit/3d6bb3dff7798a92f9b089afe1e89a5d0fe1a84c))
|
38
|
-
|
39
|
-
## [3.0.0](https://github.com/CrowdStrike/eslint-config-crowdstrike/compare/v2.0.0...v3.0.0) (2020-10-16)
|
40
|
-
|
41
|
-
|
42
|
-
### ⚠ BREAKING CHANGES
|
43
|
-
|
44
|
-
* bump to node 10
|
45
|
-
|
46
|
-
### Features
|
47
|
-
|
48
|
-
* bump to node 10 ([d0c4f30](https://github.com/CrowdStrike/eslint-config-crowdstrike/commit/d0c4f30741494fbdba7a817a4bfea9282253e944))
|
49
|
-
|
50
|
-
## [2.0.0](https://github.com/CrowdStrike/eslint-config-crowdstrike/compare/v1.0.0...v2.0.0) (2020-02-05)
|
51
|
-
|
52
|
-
|
53
|
-
### ⚠ BREAKING CHANGES
|
54
|
-
|
55
|
-
* Per [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window/event)
|
56
|
-
use of this property is not recommended in new code:
|
57
|
-
|
58
|
-
> You *should* avoid using this property in new code, and should instead
|
59
|
-
> use the `Event` passed into the event handler function. This property
|
60
|
-
> is not universally supported and even when supported introduces
|
61
|
-
> potential fragility to your code.
|
62
|
-
|
63
|
-
I just came across a usage of it which was I believe unintended (we
|
64
|
-
forgot to name the parameter which was being passed to the event
|
65
|
-
handling function) and I think we sholud enable this rule to clean up
|
66
|
-
other instances...
|
67
|
-
|
68
|
-
### Bug Fixes
|
69
|
-
|
70
|
-
* error on use of global `window.event` property ([1c05cc1](https://github.com/CrowdStrike/eslint-config-crowdstrike/commit/1c05cc13374ac6d040b9ca2fee2e159bedc14cc4))
|