eslint-config-seekingalpha-react 6.9.0 → 7.0.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/CHANGELOG.md +685 -455
- package/LICENSE.md +1 -1
- package/README.md +4 -5
- package/package.json +3 -3
- package/prettier.js +24 -0
package/LICENSE.md
CHANGED
|
@@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
6
6
|
|
|
7
7
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
8
|
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/
|
|
|
6
6
|
|
|
7
7
|
Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):
|
|
8
8
|
|
|
9
|
-
npm install eslint@8.
|
|
9
|
+
npm install eslint@8.37.0 eslint-plugin-jsx-a11y@6.7.1 eslint-plugin-react@7.32.2 eslint-plugin-react-hooks@4.6.0 --save-dev
|
|
10
10
|
|
|
11
11
|
Install SeekingAlpha shareable ESLint:
|
|
12
12
|
|
|
@@ -16,9 +16,9 @@ Install SeekingAlpha shareable ESLint:
|
|
|
16
16
|
|
|
17
17
|
This shareable config includes all ESLint rules including ECMAScript 6 features, set of [legacy rules](https://eslint.org/docs/rules/#deprecated) and additional rules for `React` We also extend our configuration with following plugins:
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
- [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react)
|
|
20
|
+
- [eslint-plugin-jsx-a11y](https://github.com/evcohen/eslint-plugin-jsx-a11y)
|
|
21
|
+
- [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)
|
|
22
22
|
|
|
23
23
|
If you don't need configuration extended with `React` rules, check out our [base config](https://www.npmjs.com/package/eslint-config-seekingalpha-base).
|
|
24
24
|
|
|
@@ -35,4 +35,3 @@ Simply [extend](https://eslint.org/docs/user-guide/configuring#extending-configu
|
|
|
35
35
|
## License
|
|
36
36
|
|
|
37
37
|
MIT © [SeekingAlpha](https://seekingalpha.com/)
|
|
38
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seekingalpha-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable React.js ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"node": ">= 18"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"eslint": "8.
|
|
52
|
+
"eslint": "8.37.0",
|
|
53
53
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
54
54
|
"eslint-plugin-react": "7.32.2",
|
|
55
55
|
"eslint-plugin-react-hooks": "4.6.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"eslint": "8.
|
|
58
|
+
"eslint": "8.37.0",
|
|
59
59
|
"eslint-find-rules": "4.1.0",
|
|
60
60
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
61
61
|
"eslint-plugin-react": "7.32.2",
|
package/prettier.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
|
|
3
|
+
extends: [
|
|
4
|
+
'./index.js',
|
|
5
|
+
],
|
|
6
|
+
|
|
7
|
+
rules: {
|
|
8
|
+
'react/jsx-child-element-spacing': 'off',
|
|
9
|
+
'react/jsx-closing-bracket-location': 'off',
|
|
10
|
+
'react/jsx-closing-tag-location': 'off',
|
|
11
|
+
'react/jsx-curly-newline': 'off',
|
|
12
|
+
'react/jsx-curly-spacing': 'off',
|
|
13
|
+
'react/jsx-equals-spacing': 'off',
|
|
14
|
+
'react/jsx-first-prop-new-line': 'off',
|
|
15
|
+
'react/jsx-indent': 'off',
|
|
16
|
+
'react/jsx-indent-props': 'off',
|
|
17
|
+
'react/jsx-max-props-per-line': 'off',
|
|
18
|
+
'react/jsx-newline': 'off',
|
|
19
|
+
'react/jsx-one-expression-per-line': 'off',
|
|
20
|
+
'react/jsx-props-no-multi-spaces': 'off',
|
|
21
|
+
'react/jsx-tag-spacing': 'off',
|
|
22
|
+
'react/jsx-wrap-multilines': 'off',
|
|
23
|
+
},
|
|
24
|
+
};
|