@eclipse-glsp/eslint-config 0.10.0 → 1.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/configs/base.eslintrc.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
jsx: true
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
plugins: ['@typescript-eslint', 'header', 'import', 'no-null'],
|
|
10
|
+
plugins: ['@typescript-eslint', 'header', 'import', 'no-null', 'chai-friendly', 'deprecation'],
|
|
11
11
|
extends: [
|
|
12
12
|
'eslint:recommended',
|
|
13
13
|
'plugin:@typescript-eslint/recommended',
|
|
@@ -76,6 +76,9 @@ module.exports = {
|
|
|
76
76
|
'import/export': 'off', // we have multiple exports due to namespaces, enums and classes that share the same name
|
|
77
77
|
'import/no-deprecated': 'error',
|
|
78
78
|
// eslint-plugin-no-null
|
|
79
|
-
'no-null/no-null': 'error'
|
|
79
|
+
'no-null/no-null': 'error',
|
|
80
|
+
// chai friendly
|
|
81
|
+
'no-unused-expressions': 'off',
|
|
82
|
+
'chai-friendly/no-unused-expressions': 'error'
|
|
80
83
|
}
|
|
81
84
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
rules: {
|
|
3
3
|
// https://eslint.org/docs/rules/
|
|
4
|
-
'brace-style':
|
|
4
|
+
'brace-style': 'off',
|
|
5
5
|
'comma-dangle': 'warn',
|
|
6
6
|
curly: 'warn',
|
|
7
7
|
'eol-last': 'warn',
|
|
@@ -74,6 +74,10 @@ module.exports = {
|
|
|
74
74
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
75
75
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
76
76
|
'@typescript-eslint/type-annotation-spacing': 'warn',
|
|
77
|
-
'@typescript-eslint/no-explicit-any': 'off'
|
|
77
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
78
|
+
'@typescript-eslint/no-this-alias': 'off',
|
|
79
|
+
|
|
80
|
+
/// eslint-plugin-deprecation plugin
|
|
81
|
+
'deprecation/deprecation': 'warn'
|
|
78
82
|
}
|
|
79
83
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Shared ESLint configuration for GLSP projects",
|
|
5
5
|
"license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
|
|
6
6
|
"keywords": [
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
31
|
-
"@typescript-eslint/parser": "^
|
|
32
|
-
"eslint": "^
|
|
33
|
-
"eslint-config-prettier": "^8.
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
31
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
32
|
+
"eslint": "^8.10.0",
|
|
33
|
+
"eslint-config-prettier": "^8.5.0",
|
|
34
|
+
"eslint-plugin-chai-friendly": "^0.7.2",
|
|
35
|
+
"eslint-plugin-deprecation": "^1.3.2",
|
|
34
36
|
"eslint-plugin-header": "^3.1.1",
|
|
35
|
-
"eslint-plugin-import": "^2.
|
|
37
|
+
"eslint-plugin-import": "^2.25.4",
|
|
36
38
|
"eslint-plugin-no-null": "^1.0.2"
|
|
37
39
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
"gitHead": "1eea301641ea08bd45a5257be44214dcc84b367e"
|
|
40
|
+
"main": "index.js",
|
|
41
|
+
"gitHead": "fe535dbf865fafa4fa024d5874d76a115d6bb069"
|
|
42
42
|
}
|