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