@wistia/eslint-config 0.3.1 → 0.3.2
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/catalog-info.yaml +17 -0
- package/mkdocs.yaml +10 -0
- package/package.json +21 -19
- package/stylelint/styled-components.js +2 -5
- package/stylelintRules/styled-components.js +3 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# this is a catalog entity descriptor file for our Backstage instance (https://backstage.wistia.cloud)
|
|
2
|
+
|
|
3
|
+
apiVersion: backstage.io/v1alpha1
|
|
4
|
+
kind: Component
|
|
5
|
+
metadata:
|
|
6
|
+
name: ESLint-Config
|
|
7
|
+
description: Wistia's ESLint configurations
|
|
8
|
+
annotations:
|
|
9
|
+
github.com/project-slug: wistia/eslint-config
|
|
10
|
+
backstage.io/techdocs-ref: dir:.
|
|
11
|
+
tags:
|
|
12
|
+
- lang#javascript
|
|
13
|
+
- pkg#npm
|
|
14
|
+
spec:
|
|
15
|
+
type: configuration
|
|
16
|
+
owner: app-platform
|
|
17
|
+
lifecycle: production
|
package/mkdocs.yaml
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"main": "react.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,35 +9,37 @@
|
|
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@babel/core": "^7.
|
|
13
|
-
"@babel/eslint-parser": "^7.
|
|
14
|
-
"eslint": "^8.
|
|
15
|
-
"eslint-config-airbnb": "^19.0.
|
|
16
|
-
"eslint-config-prettier": "^8.
|
|
12
|
+
"@babel/core": "^7.17.7",
|
|
13
|
+
"@babel/eslint-parser": "^7.17.0",
|
|
14
|
+
"eslint": "^8.11.0",
|
|
15
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
16
|
+
"eslint-config-prettier": "^8.5.0",
|
|
17
17
|
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
18
|
-
"eslint-plugin-import": "^2.25.
|
|
19
|
-
"eslint-plugin-jest": "^26.
|
|
18
|
+
"eslint-plugin-import": "^2.25.4",
|
|
19
|
+
"eslint-plugin-jest": "^26.1.1",
|
|
20
20
|
"eslint-plugin-jest-dom": "^4.0.1",
|
|
21
|
-
"eslint-plugin-jest-formatting": "^3.
|
|
21
|
+
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
22
22
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
23
23
|
"eslint-plugin-prettier": "^4.0.0",
|
|
24
|
-
"eslint-plugin-react": "^7.
|
|
24
|
+
"eslint-plugin-react": "^7.29.4",
|
|
25
25
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
26
26
|
"eslint-plugin-styled-components-a11y": "^0.0.34",
|
|
27
|
-
"eslint-plugin-testing-library": "^5.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
27
|
+
"eslint-plugin-testing-library": "^5.1.0",
|
|
28
|
+
"postcss": "^8.4.12",
|
|
29
|
+
"postcss-scss": "^4.0.3",
|
|
30
|
+
"prettier": "^2.6.0",
|
|
31
|
+
"stylelint": "^14.6.0",
|
|
32
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
31
33
|
"stylelint-config-standard": "^25.0.0",
|
|
32
|
-
"stylelint-config-
|
|
33
|
-
"stylelint-declaration-block-no-ignored-properties": "^2.
|
|
34
|
+
"stylelint-config-standard-scss": "^3.0.0",
|
|
35
|
+
"stylelint-declaration-block-no-ignored-properties": "^2.5.0",
|
|
34
36
|
"stylelint-prettier": "^2.0.0",
|
|
35
37
|
"stylelint-processor-styled-components": "^1.10.0"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
|
-
"@commitlint/cli": "^16.
|
|
39
|
-
"@commitlint/config-conventional": "^16.
|
|
40
|
-
"husky": "^7.0.
|
|
40
|
+
"@commitlint/cli": "^16.2.3",
|
|
41
|
+
"@commitlint/config-conventional": "^16.2.1",
|
|
42
|
+
"husky": "^7.0.4"
|
|
41
43
|
},
|
|
42
44
|
"engines": {
|
|
43
45
|
"node": "^10.12.0 || >=12.0.0"
|
|
@@ -3,12 +3,9 @@ const styledComponentRules = require('../stylelintRules/styled-components');
|
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
5
|
plugins: ['stylelint-prettier', 'stylelint-declaration-block-no-ignored-properties'],
|
|
6
|
+
extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier'],
|
|
7
|
+
customSyntax: 'postcss-scss',
|
|
6
8
|
processors: ['stylelint-processor-styled-components'],
|
|
7
|
-
extends: [
|
|
8
|
-
'stylelint-config-standard',
|
|
9
|
-
'stylelint-config-styled-components',
|
|
10
|
-
'stylelint-config-prettier',
|
|
11
|
-
],
|
|
12
9
|
rules: {
|
|
13
10
|
...commonRules,
|
|
14
11
|
...styledComponentRules,
|
|
@@ -19,4 +19,7 @@ module.exports = {
|
|
|
19
19
|
'lower',
|
|
20
20
|
{ ignoreKeywords: [/dummyValue/], ignoreProperties: [/dummyValue/] },
|
|
21
21
|
],
|
|
22
|
+
// styled-components adds vendor prefixes if necessary so we should avoid adding them in code
|
|
23
|
+
'value-no-vendor-prefix': true,
|
|
24
|
+
'property-no-vendor-prefix': true,
|
|
22
25
|
};
|