@wistia/eslint-config 0.7.2 → 0.8.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/README.md CHANGED
@@ -12,7 +12,3 @@ Wistia's ESLint configuration. This repo is "pseudo-public" - private on our org
12
12
  2. should not contradict existing rules
13
13
  3. person/team adding new rules handles upgrading consumers and fixing violations
14
14
  4. rules should always be set to `error`, never `warn` (the latter are never fixed)
15
-
16
- ## Publishing
17
-
18
- TODO!
@@ -4,7 +4,6 @@ module.exports = {
4
4
  ecmaVersion: 2018,
5
5
  sourceType: 'module',
6
6
  },
7
- plugins: ['eslint-plugin-prettier'],
8
7
  extends: [
9
8
  '../../rules/eslint/best-practices',
10
9
  '../../rules/eslint/errors',
@@ -14,7 +13,5 @@ module.exports = {
14
13
  '../../rules/eslint/node',
15
14
  '../../rules/eslint/style',
16
15
  '../../rules/eslint/variables',
17
- '../../rules/eslint/prettier',
18
- 'eslint-config-prettier',
19
16
  ].map(require.resolve),
20
17
  };
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ plugins: ['eslint-plugin-prettier'],
3
+ extends: ['../../rules/eslint/prettier', 'eslint-config-prettier'].map(require.resolve),
4
+ };
@@ -3,7 +3,6 @@ module.exports = {
3
3
  browser: true,
4
4
  },
5
5
  parser: '@babel/eslint-parser',
6
- plugins: ['eslint-plugin-prettier'],
7
6
  extends: [
8
7
  // base
9
8
  '../../rules/eslint/best-practices',
@@ -18,7 +17,5 @@ module.exports = {
18
17
  '../../rules/eslint/react',
19
18
  '../../rules/eslint/react-a11y',
20
19
  '../../rules/eslint/react-hooks.js',
21
- '../../rules/eslint/prettier',
22
- 'eslint-config-prettier',
23
20
  ].map(require.resolve),
24
21
  };
File without changes
package/package.json CHANGED
@@ -1,25 +1,28 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "Wistia's ESLint configurations",
5
5
  "main": "react.js",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
8
8
  ".": "./configs/eslint/default.js",
9
- "./react": "./configs/eslint/react.js",
10
9
  "./cypress": "./configs/eslint/cypress.js",
11
10
  "./jest": "./configs/eslint/jest.js",
12
- "./sonar": "./configs/eslint/sonar.js",
11
+ "./prettier": "./configs/eslint/prettier.js",
12
+ "./react": "./configs/eslint/react.js",
13
+ "./strict": "./configs/eslint/strict.js",
13
14
  "./styled-components": "./configs/eslint/styled-components.js",
14
- "./testing-library": "./configs/eslint/testing-library.js",
15
15
  "./stylelint": "./configs/stylelint/default.js",
16
16
  "./stylelint/scss": "./configs/stylelint/scss.js",
17
- "./stylelint/styled-components": "./configs/stylelint/styled-components.js"
17
+ "./stylelint/styled-components": "./configs/stylelint/styled-components.js",
18
+ "./testing-library": "./configs/eslint/testing-library.js"
18
19
  },
19
20
  "scripts": {
20
21
  "lint": "eslint --fix --ignore-path test/.eslintignore .",
21
22
  "prepare": "husky install",
22
- "test": "check-export-map && eslint --print-config ./test/index.js"
23
+ "test": "check-export-map && yarn run test:eslint && yarn run test:stylelint",
24
+ "test:eslint": "eslint --print-config ./test/index.js",
25
+ "test:stylelint": "stylelint --print-config ./test/index.js"
23
26
  },
24
27
  "dependencies": {
25
28
  "@babel/core": "^7.18.9",
@@ -1,3 +1,5 @@
1
+ // note: many of these rules will be disabled with the inclusion of the prettier config
2
+
1
3
  module.exports = {
2
4
  rules: {
3
5
  // enforce line breaks after opening and before closing array brackets
@@ -1 +0,0 @@
1
- test/
package/test/index.js DELETED
@@ -1 +0,0 @@
1
- console.log('hello world');