@wistia/eslint-config 0.3.3 → 0.3.4-beta.a49e583c.80a45fe

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 CHANGED
@@ -2,8 +2,8 @@ const commonRules = require('./eslintRules/common');
2
2
 
3
3
  module.exports = {
4
4
  parser: '@babel/eslint-parser',
5
+ plugins: ['eslint-plugin-prettier'],
5
6
  extends: ['airbnb-base', 'prettier'],
6
- plugins: ['prettier'],
7
7
  rules: {
8
8
  ...commonRules,
9
9
  },
package/jest.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const testRules = require('./eslintRules/jest');
2
2
 
3
3
  module.exports = {
4
- plugins: ['jest', 'jest-formatting'],
4
+ plugins: ['eslint-plugin-jest', 'eslint-plugin-jest-formatting'],
5
5
  rules: {
6
6
  ...testRules,
7
7
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.3.3",
3
+ "version": "0.3.4-beta.a49e583c.80a45fe",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "main": "react.js",
6
6
  "scripts": {
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
+ plugins: ['eslint-plugin-prettier'],
7
8
  extends: ['airbnb', 'airbnb/hooks', 'prettier'],
8
- plugins: ['prettier'],
9
9
  rules: {
10
10
  ...commonRules,
11
11
  ...a11yRules,
@@ -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
@@ -1,7 +1,7 @@
1
1
  const commonRules = require('../stylelintRules/common');
2
2
 
3
3
  module.exports = {
4
- plugins: ['stylelint-prettier'],
4
+ plugins: ['eslint-plugin-stylelint-prettier'],
5
5
  extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
6
6
  rules: {
7
7
  ...commonRules,
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,
@@ -2,7 +2,10 @@ const commonRules = require('../stylelintRules/common');
2
2
  const styledComponentRules = require('../stylelintRules/styled-components');
3
3
 
4
4
  module.exports = {
5
- plugins: ['stylelint-prettier', 'stylelint-declaration-block-no-ignored-properties'],
5
+ plugins: [
6
+ 'eslint-plugin-stylelint-prettier',
7
+ 'eslint-plugin-stylelint-declaration-block-no-ignored-properties',
8
+ ],
6
9
  extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier'],
7
10
  customSyntax: 'postcss-scss',
8
11
  processors: ['stylelint-processor-styled-components'],
@@ -14,6 +14,7 @@ module.exports = {
14
14
  'selector-class-pattern': '^[a-zA-Z0-9-]+(-[a-zA-Z0-9]+)*$',
15
15
  'selector-id-pattern': '^[a-zA-Z0-9-]+(-[a-zA-Z0-9]+)*$',
16
16
  // these selectors are used as placeholders by styled-components preprocessor
17
+ 'selector-type-case': ['lower', { ignoreTypes: ['$dummyValue'] }],
17
18
  'selector-type-no-unknown': [true, { ignoreTypes: ['$dummyValue', '/^-styled-/'] }],
18
19
  'value-keyword-case': [
19
20
  'lower',
@@ -1,7 +1,7 @@
1
1
  const testRules = require('./eslintRules/testing-library');
2
2
 
3
3
  module.exports = {
4
- plugins: ['testing-library', 'jest-dom'],
4
+ plugins: ['eslint-plugin-testing-library', 'eslint-plugin-jest-dom'],
5
5
  rules: {
6
6
  ...testRules,
7
7
  },