eslint-config-crowdstrike 10.0.0 → 11.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/index.js +82 -72
- package/package.json +12 -11
package/index.js
CHANGED
@@ -1,77 +1,87 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
parserOptions: {
|
5
|
-
ecmaVersion: 2020,
|
6
|
-
},
|
7
|
-
env: {
|
8
|
-
es6: true,
|
9
|
-
},
|
10
|
-
extends: [
|
11
|
-
'eslint:recommended',
|
12
|
-
],
|
13
|
-
rules: {
|
14
|
-
'comma-dangle': ['error', 'always-multiline'],
|
15
|
-
'eol-last': 'error',
|
16
|
-
'eqeqeq': 'error',
|
17
|
-
'indent': ['error', 2, {
|
18
|
-
'MemberExpression': 1,
|
19
|
-
'SwitchCase': 1,
|
20
|
-
}],
|
21
|
-
'max-params': ['error', 3],
|
22
|
-
'no-constant-condition': 'off',
|
23
|
-
'no-empty': ['error', { allowEmptyCatch: true }],
|
24
|
-
'no-eval': 'error',
|
25
|
-
'no-restricted-globals': ['error', 'event'],
|
26
|
-
'object-shorthand': 'error',
|
27
|
-
'one-var': ['error', 'never'],
|
28
|
-
'quotes': ['error', 'single', {
|
29
|
-
'allowTemplateLiterals': true,
|
30
|
-
'avoidEscape': true,
|
31
|
-
}],
|
32
|
-
'require-await': 'error',
|
33
|
-
'semi': 'error',
|
3
|
+
const js = require('@eslint/js');
|
34
4
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
5
|
+
module.exports = [
|
6
|
+
js.configs.recommended,
|
7
|
+
{
|
8
|
+
languageOptions: {
|
9
|
+
globals: {},
|
10
|
+
ecmaVersion: 2022,
|
11
|
+
sourceType: 'commonjs',
|
12
|
+
},
|
13
|
+
|
14
|
+
rules: {
|
15
|
+
'comma-dangle': ['error', 'always-multiline'],
|
16
|
+
'eol-last': 'error',
|
17
|
+
eqeqeq: 'error',
|
18
|
+
|
19
|
+
indent: ['error', 2, {
|
20
|
+
MemberExpression: 1,
|
21
|
+
SwitchCase: 1,
|
22
|
+
}],
|
23
|
+
|
24
|
+
'max-params': ['error', 3],
|
25
|
+
'no-constant-condition': 'off',
|
26
|
+
|
27
|
+
'no-empty': ['error', {
|
28
|
+
allowEmptyCatch: true,
|
29
|
+
}],
|
30
|
+
|
31
|
+
'no-eval': 'error',
|
32
|
+
'no-restricted-globals': ['error', 'event'],
|
33
|
+
'object-shorthand': 'error',
|
34
|
+
'one-var': ['error', 'never'],
|
35
|
+
|
36
|
+
quotes: ['error', 'single', {
|
37
|
+
allowTemplateLiterals: true,
|
38
|
+
avoidEscape: true,
|
39
|
+
}],
|
40
|
+
|
41
|
+
'require-await': 'error',
|
42
|
+
semi: 'error',
|
43
|
+
'arrow-spacing': 'error',
|
44
|
+
'array-bracket-spacing': 'error',
|
45
|
+
'block-spacing': 'error',
|
46
|
+
'comma-spacing': 'error',
|
47
|
+
'computed-property-spacing': 'error',
|
48
|
+
'func-call-spacing': 'error',
|
49
|
+
|
50
|
+
'generator-star-spacing': ['error', {
|
45
51
|
named: 'after',
|
46
52
|
anonymous: 'after',
|
47
|
-
},
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
'
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
'
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
53
|
+
}],
|
54
|
+
|
55
|
+
'key-spacing': 'error',
|
56
|
+
'keyword-spacing': ['error', {}],
|
57
|
+
'no-multi-spaces': 'error',
|
58
|
+
'no-trailing-spaces': 'error',
|
59
|
+
'no-whitespace-before-property': 'error',
|
60
|
+
'object-curly-spacing': ['error', 'always'],
|
61
|
+
'rest-spread-spacing': 'error',
|
62
|
+
'semi-spacing': 'error',
|
63
|
+
'space-before-blocks': 'error',
|
64
|
+
|
65
|
+
'space-before-function-paren': ['error', {
|
66
|
+
anonymous: 'ignore',
|
67
|
+
named: 'never',
|
68
|
+
asyncArrow: 'always',
|
69
|
+
}],
|
70
|
+
|
71
|
+
'space-in-parens': 'error',
|
72
|
+
'space-infix-ops': 'error',
|
73
|
+
'space-unary-ops': 'error',
|
74
|
+
|
75
|
+
'spaced-comment': ['error', 'always', {
|
76
|
+
block: {
|
77
|
+
balanced: true,
|
78
|
+
exceptions: ['*'],
|
79
|
+
},
|
80
|
+
}],
|
81
|
+
|
82
|
+
'switch-colon-spacing': 'error',
|
83
|
+
'template-curly-spacing': ['error', 'never'],
|
84
|
+
'template-tag-spacing': 'error',
|
85
|
+
'yield-star-spacing': 'error',
|
86
|
+
},
|
87
|
+
}];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-config-crowdstrike",
|
3
|
-
"version": "
|
3
|
+
"version": "11.0.0-beta.0",
|
4
4
|
"description": "ESLint config for CrowdStrike",
|
5
5
|
"main": "index.js",
|
6
6
|
"files": [
|
@@ -8,7 +8,7 @@
|
|
8
8
|
],
|
9
9
|
"scripts": {
|
10
10
|
"lint:git": "commitlint --default-branch main",
|
11
|
-
"lint:js": "eslint .
|
11
|
+
"lint:js": "eslint .",
|
12
12
|
"lint:md": "remark -f README.md",
|
13
13
|
"release": "standard-version",
|
14
14
|
"test": "yarn lint:git && yarn lint:js && yarn lint:md"
|
@@ -32,19 +32,20 @@
|
|
32
32
|
"url": "https://github.com/CrowdStrike/eslint-config-crowdstrike/issues"
|
33
33
|
},
|
34
34
|
"homepage": "https://github.com/CrowdStrike/eslint-config-crowdstrike#readme",
|
35
|
+
"dependencies": {
|
36
|
+
"@eslint/js": "^9.0.0"
|
37
|
+
},
|
35
38
|
"devDependencies": {
|
36
|
-
"@crowdstrike/commitlint": "^
|
37
|
-
"eslint": "^
|
38
|
-
"eslint-config-crowdstrike": "
|
39
|
-
"eslint-config-crowdstrike-node": "
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"remark-cli": "^11.0.0",
|
43
|
-
"remark-preset-lint-crowdstrike": "^2.0.0",
|
39
|
+
"@crowdstrike/commitlint": "^8.0.0",
|
40
|
+
"eslint": "^9.0.0",
|
41
|
+
"eslint-config-crowdstrike": "10.1.0",
|
42
|
+
"eslint-config-crowdstrike-node": "4.0.0-beta.1",
|
43
|
+
"remark-cli": "^12.0.0",
|
44
|
+
"remark-preset-lint-crowdstrike": "^4.0.0",
|
44
45
|
"renovate-config-standard": "^2.0.0",
|
45
46
|
"standard-version": "^9.0.0"
|
46
47
|
},
|
47
48
|
"peerDependencies": {
|
48
|
-
"eslint": ">=
|
49
|
+
"eslint": ">=8.57.0"
|
49
50
|
}
|
50
51
|
}
|