eslint-config-brightspace 0.17.0 → 0.19.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/.github/CODEOWNERS +1 -0
- package/.github/workflows/release.yml +2 -2
- package/.releaserc.json +1 -1
- package/README.md +2 -8
- package/browser-config.js +19 -4
- package/lit-config.js +0 -16
- package/package.json +6 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @Brightspace/gaudi-dev
|
|
@@ -2,7 +2,7 @@ name: Release
|
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
branches:
|
|
5
|
-
-
|
|
5
|
+
- main
|
|
6
6
|
- '[0-9]+.x'
|
|
7
7
|
- '[0-9]+.[0-9]+.x'
|
|
8
8
|
jobs:
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
- name: Setup Node
|
|
19
19
|
uses: Brightspace/third-party-actions@actions/setup-node
|
|
20
20
|
- name: Semantic Release
|
|
21
|
-
uses: BrightspaceUI/actions/semantic-release@
|
|
21
|
+
uses: BrightspaceUI/actions/semantic-release@main
|
|
22
22
|
with:
|
|
23
23
|
GITHUB_TOKEN: ${{ secrets.D2L_GITHUB_TOKEN }}
|
|
24
24
|
NPM: true
|
package/.releaserc.json
CHANGED
package/README.md
CHANGED
|
@@ -44,12 +44,6 @@ Specify the desired config for the `extends` property:
|
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
To use `react-config`, consumers should install the [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) plugin to enable use of the rules it provides.
|
|
48
|
-
|
|
49
|
-
To use `polymer-config`, consumers should install the [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html) plugin to extract and lint JavaScript contained in `.html` web component files. [eslint-plugin-sort-class-members](https://github.com/bryanrsmith/eslint-plugin-sort-class-members) plugin is required to ensure consistency in class format
|
|
50
|
-
|
|
51
|
-
To use `lit-config`, consumers should install the [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html), [eslint-plugin-sort-class-members](https://github.com/bryanrsmith/eslint-plugin-sort-class-members) [eslint-plugin-lit](https://github.com/43081j/eslint-plugin-lit) and [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) plugins.
|
|
52
|
-
|
|
53
47
|
See the [eslint rules](http://eslint.org/docs/rules/) for more details on rule configuration. See the [eslint shareable configs](http://eslint.org/docs/developer-guide/shareable-configs.html) for more details on creating configs.
|
|
54
48
|
|
|
55
49
|
## Contributing
|
|
@@ -62,9 +56,9 @@ This repository is configured with [EditorConfig](http://editorconfig.org) rules
|
|
|
62
56
|
|
|
63
57
|
## Versioning & Releasing
|
|
64
58
|
|
|
65
|
-
> TL;DR: Commits prefixed with `fix:` and `feat:` will trigger patch and minor releases when merged to `
|
|
59
|
+
> TL;DR: Commits prefixed with `fix:` and `feat:` will trigger patch and minor releases when merged to `main`. Read on for more details...
|
|
66
60
|
|
|
67
|
-
The [
|
|
61
|
+
The [semantic-release GitHub Action](https://github.com/BrightspaceUI/actions/tree/main/semantic-release) is called from the `release.yml` GitHub Action workflow to handle version changes and releasing.
|
|
68
62
|
|
|
69
63
|
### Version Changes
|
|
70
64
|
|
package/browser-config.js
CHANGED
|
@@ -5,19 +5,34 @@ module.exports = {
|
|
|
5
5
|
"parser": "@babel/eslint-parser",
|
|
6
6
|
"parserOptions": {
|
|
7
7
|
"requireConfigFile": false
|
|
8
|
-
|
|
8
|
+
},
|
|
9
9
|
"env": {
|
|
10
|
-
"browser": true
|
|
10
|
+
"browser": true,
|
|
11
|
+
"es2021": true
|
|
11
12
|
},
|
|
12
13
|
"plugins": [
|
|
13
14
|
"html",
|
|
15
|
+
"import",
|
|
14
16
|
"sort-class-members"
|
|
15
17
|
],
|
|
16
18
|
"globals": {
|
|
17
|
-
"D2L": false
|
|
18
|
-
"Promise": false
|
|
19
|
+
"D2L": false
|
|
19
20
|
},
|
|
20
21
|
"rules": {
|
|
22
|
+
"arrow-spacing": 2,
|
|
23
|
+
"no-confusing-arrow": 2,
|
|
24
|
+
"no-duplicate-imports": 2,
|
|
25
|
+
"no-restricted-syntax": ["error", "CatchClause[param=null]"],
|
|
26
|
+
"no-useless-constructor": 2,
|
|
27
|
+
"no-var": 2,
|
|
28
|
+
"prefer-arrow-callback": 2,
|
|
29
|
+
"prefer-const": 2,
|
|
30
|
+
"prefer-spread": 2,
|
|
31
|
+
"prefer-template": 2,
|
|
32
|
+
"sort-imports": [2, { "ignoreCase": true }],
|
|
33
|
+
"strict": [2, "never"],
|
|
34
|
+
"import/extensions": ["error", "ignorePackages"],
|
|
35
|
+
"import/no-absolute-path": 2,
|
|
21
36
|
"no-console": ["error", { "allow": ["warn", "error"] }],
|
|
22
37
|
...getSortMemberRules()
|
|
23
38
|
}
|
package/lit-config.js
CHANGED
|
@@ -34,28 +34,12 @@ const sortMemberRules = getSortMemberRules([
|
|
|
34
34
|
|
|
35
35
|
module.exports = {
|
|
36
36
|
"extends": "./browser-config.js",
|
|
37
|
-
"env": {
|
|
38
|
-
"es6": true
|
|
39
|
-
},
|
|
40
37
|
"plugins": [
|
|
41
38
|
"import",
|
|
42
39
|
"lit",
|
|
43
40
|
"sort-class-members"
|
|
44
41
|
],
|
|
45
42
|
"rules": {
|
|
46
|
-
"arrow-spacing": 2,
|
|
47
|
-
"no-confusing-arrow": 2,
|
|
48
|
-
"no-duplicate-imports": 2,
|
|
49
|
-
"no-restricted-syntax": ["error", "CatchClause[param=null]"],
|
|
50
|
-
"no-useless-constructor": 2,
|
|
51
|
-
"no-var": 2,
|
|
52
|
-
"prefer-arrow-callback": 2,
|
|
53
|
-
"prefer-const": 2,
|
|
54
|
-
"prefer-spread": 2,
|
|
55
|
-
"prefer-template": 2,
|
|
56
|
-
"sort-imports": [2, { "ignoreCase": true }],
|
|
57
|
-
"strict": [2, "never"],
|
|
58
|
-
"import/extensions": ["error", "ignorePackages"],
|
|
59
43
|
"lit/attribute-value-entities": 2,
|
|
60
44
|
"lit/binding-positions": 2,
|
|
61
45
|
"lit/no-duplicate-template-bindings": 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-brightspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Common Brightspace eslint configs.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"homepage": "https://github.com/Brightspace/eslint-config-brightspace",
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@babel/eslint-parser": ">= 7",
|
|
26
|
-
"eslint": ">= 7"
|
|
26
|
+
"eslint": ">= 7",
|
|
27
|
+
"eslint-plugin-html": "^7",
|
|
28
|
+
"eslint-plugin-import": "^2",
|
|
29
|
+
"eslint-plugin-lit": "^1",
|
|
30
|
+
"eslint-plugin-sort-class-members": "^1"
|
|
27
31
|
}
|
|
28
32
|
}
|