@wistia/eslint-config 0.3.4 → 0.3.5
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/base.js +2 -2
- package/jest.js +1 -1
- package/package.json +13 -13
- package/react.js +2 -2
- package/styled-components.js +1 -1
- package/stylelint/base.js +1 -1
- package/stylelint/scss.js +1 -1
- package/testing-library.js +1 -1
package/base.js
CHANGED
|
@@ -2,8 +2,8 @@ const commonRules = require('./eslintRules/common');
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
parser: '@babel/eslint-parser',
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
plugins: ['eslint-plugin-prettier'],
|
|
6
|
+
extends: ['eslint-config-airbnb-base', 'eslint-config-prettier'],
|
|
7
7
|
rules: {
|
|
8
8
|
...commonRules,
|
|
9
9
|
},
|
package/jest.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"main": "react.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@babel/core": "^7.17.
|
|
12
|
+
"@babel/core": "^7.17.10",
|
|
13
13
|
"@babel/eslint-parser": "^7.17.0",
|
|
14
|
-
"eslint": "^8.
|
|
14
|
+
"eslint": "^8.14.0",
|
|
15
15
|
"eslint-config-airbnb": "^19.0.4",
|
|
16
16
|
"eslint-config-prettier": "^8.5.0",
|
|
17
17
|
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
18
|
-
"eslint-plugin-import": "^2.
|
|
19
|
-
"eslint-plugin-jest": "^26.1.
|
|
18
|
+
"eslint-plugin-import": "^2.26.0",
|
|
19
|
+
"eslint-plugin-jest": "^26.1.5",
|
|
20
20
|
"eslint-plugin-jest-dom": "^4.0.1",
|
|
21
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
24
|
"eslint-plugin-react": "^7.29.4",
|
|
25
|
-
"eslint-plugin-react-hooks": "^4.
|
|
25
|
+
"eslint-plugin-react-hooks": "^4.5.0",
|
|
26
26
|
"eslint-plugin-styled-components-a11y": "^0.0.34",
|
|
27
|
-
"eslint-plugin-testing-library": "^5.1
|
|
28
|
-
"postcss": "^8.4.
|
|
29
|
-
"postcss-scss": "^4.0.
|
|
30
|
-
"prettier": "^2.6.
|
|
31
|
-
"stylelint": "^14.
|
|
27
|
+
"eslint-plugin-testing-library": "^5.3.1",
|
|
28
|
+
"postcss": "^8.4.13",
|
|
29
|
+
"postcss-scss": "^4.0.4",
|
|
30
|
+
"prettier": "^2.6.2",
|
|
31
|
+
"stylelint": "^14.8.1",
|
|
32
32
|
"stylelint-config-prettier": "^9.0.3",
|
|
33
33
|
"stylelint-config-standard": "^25.0.0",
|
|
34
34
|
"stylelint-config-standard-scss": "^3.0.0",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"stylelint-scss": "^4.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@commitlint/cli": "^16.2.
|
|
42
|
-
"@commitlint/config-conventional": "^16.2.
|
|
41
|
+
"@commitlint/cli": "^16.2.4",
|
|
42
|
+
"@commitlint/config-conventional": "^16.2.4",
|
|
43
43
|
"husky": "^7.0.4"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
package/react.js
CHANGED
|
@@ -4,8 +4,8 @@ const reactRules = require('./eslintRules/react');
|
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
parser: '@babel/eslint-parser',
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
plugins: ['eslint-plugin-prettier'],
|
|
8
|
+
extends: ['eslint-config-airbnb', 'eslint-config-airbnb/hooks', 'eslint-config-prettier'],
|
|
9
9
|
rules: {
|
|
10
10
|
...commonRules,
|
|
11
11
|
...a11yRules,
|
package/styled-components.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const styledComponentsRules = require('./eslintRules/styled-components');
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
plugins: ['better-styled-components', 'styled-components-a11y'],
|
|
4
|
+
plugins: ['eslint-plugin-better-styled-components', 'eslint-plugin-styled-components-a11y'],
|
|
5
5
|
extends: ['plugin:styled-components-a11y/strict'],
|
|
6
6
|
rules: {
|
|
7
7
|
...styledComponentsRules,
|
package/stylelint/base.js
CHANGED
package/stylelint/scss.js
CHANGED
|
@@ -2,7 +2,7 @@ const commonRules = require('../stylelintRules/common');
|
|
|
2
2
|
const scssRules = require('../stylelintRules/scss');
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
|
-
plugins: ['stylelint-prettier', 'stylelint-scss'],
|
|
5
|
+
plugins: ['eslint-plugin-stylelint-prettier', 'eslint-plugin-stylelint-scss'],
|
|
6
6
|
extends: ['stylelint-config-standard-scss'], // see: https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/main/index.js
|
|
7
7
|
rules: {
|
|
8
8
|
...commonRules,
|