@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 +0 -4
- package/configs/eslint/default.js +0 -3
- package/configs/eslint/prettier.js +4 -0
- package/configs/eslint/react.js +0 -3
- package/configs/eslint/{sonar.js → strict.js} +0 -0
- package/package.json +9 -6
- package/rules/eslint/style.js +2 -0
- package/test/.eslintignore +0 -1
- package/test/index.js +0 -1
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
|
};
|
package/configs/eslint/react.js
CHANGED
|
@@ -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.
|
|
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
|
-
"./
|
|
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
|
|
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",
|
package/rules/eslint/style.js
CHANGED
package/test/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
test/
|
package/test/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log('hello world');
|