@wistia/eslint-config 0.22.0 → 0.22.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.
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  plugins: ['stylelint-prettier'],
3
- extends: ['../../rules/stylelint/css', 'stylelint-config-prettier'].map(require.resolve),
3
+ extends: ['../../rules/stylelint/css'].map(require.resolve),
4
4
  rules: {
5
5
  // prettier configuration
6
6
  'prettier/prettier': true,
@@ -1,10 +1,6 @@
1
1
  module.exports = {
2
2
  plugins: ['stylelint-prettier', 'stylelint-scss'],
3
- extends: [
4
- '../../rules/stylelint/css',
5
- '../../rules/stylelint/scss',
6
- 'stylelint-config-prettier',
7
- ].map(require.resolve),
3
+ extends: ['../../rules/stylelint/css', '../../rules/stylelint/scss'].map(require.resolve),
8
4
  customSyntax: require('postcss-scss'),
9
5
  rules: {
10
6
  // prettier configuration
@@ -1,10 +1,8 @@
1
1
  module.exports = {
2
2
  plugins: ['stylelint-prettier', 'stylelint-declaration-block-no-ignored-properties'],
3
- extends: [
4
- '../../rules/stylelint/css',
5
- '../../rules/stylelint/styled-components',
6
- 'stylelint-config-prettier',
7
- ].map(require.resolve),
3
+ extends: ['../../rules/stylelint/css', '../../rules/stylelint/styled-components'].map(
4
+ require.resolve,
5
+ ),
8
6
  customSyntax: require('postcss-styled-syntax'),
9
7
  rules: {
10
8
  // prettier configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.22.0",
3
+ "version": "0.22.2",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "main": "react.js",
6
6
  "exports": {
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-promise": "^6.1.1",
58
58
  "eslint-plugin-react": "^7.32.2",
59
59
  "eslint-plugin-react-hooks": "^4.6.0",
60
- "eslint-plugin-sonarjs": "^0.20.0",
60
+ "eslint-plugin-sonarjs": "^0.21.0",
61
61
  "eslint-plugin-storybook": "^0.6.12",
62
62
  "eslint-plugin-styled-components-a11y": "^2.1.3",
63
63
  "eslint-plugin-testing-library": "^6.0.0",
@@ -66,7 +66,6 @@
66
66
  "postcss-styled-syntax": "^0.4.0",
67
67
  "prettier": "^3.0.0",
68
68
  "stylelint": "^15.10.1",
69
- "stylelint-config-prettier": "^9.0.5",
70
69
  "stylelint-declaration-block-no-ignored-properties": "^2.7.0",
71
70
  "stylelint-prettier": "^4.0.0",
72
71
  "stylelint-scss": "^5.0.1"
@@ -18,12 +18,6 @@ module.exports = {
18
18
  ignoreAtRules: ['else'],
19
19
  },
20
20
  ],
21
- 'block-closing-brace-newline-after': [
22
- 'always',
23
- {
24
- ignoreAtRules: ['if', 'else'],
25
- },
26
- ],
27
21
  'function-no-unknown': null,
28
22
  'import-notation': 'string',
29
23
  'no-invalid-position-at-import-rule': [
@@ -16,7 +16,5 @@ module.exports = {
16
16
  // prevent snake case from being used for class/id selectors but be otherwise flexible
17
17
  'selector-class-pattern': '^[a-zA-Z0-9-]+(-[a-zA-Z0-9]+)*$',
18
18
  'selector-id-pattern': '^[a-zA-Z0-9-]+(-[a-zA-Z0-9]+)*$',
19
- // prefer single to double quotes for better js compat
20
- 'string-quotes': 'single',
21
19
  },
22
20
  };