@perfective/eslint-config-react 0.15.1 → 0.16.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.adoc +1 -5
- package/README.md +1 -5
- package/package.json +5 -8
- package/rules/react/index.js +1 -0
- package/rules/react/jsx.js +1 -0
- package/rules.d.ts +1 -1
- package/rules.js +1 -2
package/README.adoc
CHANGED
|
@@ -25,18 +25,15 @@ npm install --save-dev \
|
|
|
25
25
|
@perfective/eslint-config-react \
|
|
26
26
|
@babel/eslint-parser \
|
|
27
27
|
@typescript-eslint/eslint-plugin \
|
|
28
|
-
@typescript-eslint/eslint-plugin-tslint \
|
|
29
28
|
@typescript-eslint/parser \
|
|
30
29
|
eslint \
|
|
31
30
|
eslint-import-resolver-typescript \
|
|
32
31
|
eslint-plugin-array-func \
|
|
33
32
|
eslint-plugin-cypress \
|
|
34
|
-
eslint-plugin-deprecation \
|
|
35
33
|
eslint-plugin-eslint-comments \
|
|
36
34
|
eslint-plugin-import \
|
|
37
35
|
eslint-plugin-jest \
|
|
38
36
|
eslint-plugin-jest-dom \
|
|
39
|
-
eslint-plugin-jest-formatting \
|
|
40
37
|
eslint-plugin-jsdoc \
|
|
41
38
|
eslint-plugin-jsx-a11y \
|
|
42
39
|
eslint-plugin-n \
|
|
@@ -51,8 +48,7 @@ npm install --save-dev \
|
|
|
51
48
|
eslint-plugin-simple-import-sort \
|
|
52
49
|
eslint-plugin-sonarjs \
|
|
53
50
|
eslint-plugin-testing-library \
|
|
54
|
-
eslint-plugin-unicorn
|
|
55
|
-
tslint
|
|
51
|
+
eslint-plugin-unicorn
|
|
56
52
|
----
|
|
57
53
|
+
|
|
58
54
|
. Require the configuration in your root `.eslintrc.js`.
|
package/README.md
CHANGED
|
@@ -23,18 +23,15 @@ npm install --save-dev \
|
|
|
23
23
|
@perfective/eslint-config-react \
|
|
24
24
|
@babel/eslint-parser \
|
|
25
25
|
@typescript-eslint/eslint-plugin \
|
|
26
|
-
@typescript-eslint/eslint-plugin-tslint \
|
|
27
26
|
@typescript-eslint/parser \
|
|
28
27
|
eslint \
|
|
29
28
|
eslint-import-resolver-typescript \
|
|
30
29
|
eslint-plugin-array-func \
|
|
31
30
|
eslint-plugin-cypress \
|
|
32
|
-
eslint-plugin-deprecation \
|
|
33
31
|
eslint-plugin-eslint-comments \
|
|
34
32
|
eslint-plugin-import \
|
|
35
33
|
eslint-plugin-jest \
|
|
36
34
|
eslint-plugin-jest-dom \
|
|
37
|
-
eslint-plugin-jest-formatting \
|
|
38
35
|
eslint-plugin-jsdoc \
|
|
39
36
|
eslint-plugin-jsx-a11y \
|
|
40
37
|
eslint-plugin-n \
|
|
@@ -49,8 +46,7 @@ npm install --save-dev \
|
|
|
49
46
|
eslint-plugin-simple-import-sort \
|
|
50
47
|
eslint-plugin-sonarjs \
|
|
51
48
|
eslint-plugin-testing-library \
|
|
52
|
-
eslint-plugin-unicorn
|
|
53
|
-
tslint
|
|
49
|
+
eslint-plugin-unicorn
|
|
54
50
|
```
|
|
55
51
|
|
|
56
52
|
2. Require the configuration in your root `.eslintrc.js`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perfective/eslint-config-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "ESLint shareable rules configuration for React",
|
|
5
5
|
"keywords": ["react", "code quality", "code standard", "code style", "eslint", "eslint-config", "lint", "perfective", "typescript"],
|
|
6
6
|
"author": "Andrey Mikheychik <a.mikheychik@gmail.com>",
|
|
@@ -11,18 +11,15 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@perfective/eslint-config": "~0.
|
|
14
|
+
"@perfective/eslint-config": "~0.27.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
18
|
-
"eslint-plugin-react": "^7.
|
|
19
|
-
"eslint-plugin-react-hooks": "^
|
|
17
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
18
|
+
"eslint-plugin-react": "^7.37.2",
|
|
19
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
20
20
|
"eslint-plugin-react-hooks-ssr": "^0.1.5",
|
|
21
21
|
"eslint-plugin-react-perf": "^3.3.2"
|
|
22
22
|
},
|
|
23
|
-
"overrides": {
|
|
24
|
-
"glob-parent": "^5.1.2"
|
|
25
|
-
},
|
|
26
23
|
"main": "./index.js",
|
|
27
24
|
"directories": {
|
|
28
25
|
"lib": "./"
|
package/rules/react/index.js
CHANGED
|
@@ -37,6 +37,7 @@ module.exports = {
|
|
|
37
37
|
checkContextTypes: true,
|
|
38
38
|
checkChildContextTypes: true,
|
|
39
39
|
}],
|
|
40
|
+
'react/forward-ref-uses-ref': 'error',
|
|
40
41
|
'react/function-component-definition': ['warn', {
|
|
41
42
|
namedComponents: 'function-declaration',
|
|
42
43
|
unnamedComponents: 'function-expression',
|
package/rules/react/jsx.js
CHANGED
package/rules.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { typescriptEslintNamingConvention } from './rules/eslint-config/rules/typescript-eslint';
|
|
2
2
|
export { unicornPreventAbbreviations } from './rules/eslint-config/rules/unicorn';
|
|
3
|
-
export { cypressImportNoExtraneousDependencies, ImportNoExtraneousDependencies, importNoExtraneousDependencies, jestImportNoExtraneousDependencies, jsImportNoExtraneousDependencies, SimpleImportSortImports, simpleImportSortImports,
|
|
3
|
+
export { cypressImportNoExtraneousDependencies, ImportNoExtraneousDependencies, importNoExtraneousDependencies, jestImportNoExtraneousDependencies, jsImportNoExtraneousDependencies, SimpleImportSortImports, simpleImportSortImports, TypescriptEslintNamingConvention, TypescriptEslintNamingConventionFormat, TypescriptEslintNamingConventionGroupSelector, TypescriptEslintNamingConventionIndividualSelector, TypescriptEslintNamingConventionSelector, TypescriptEslintNamingConventionUnderscore, UnicornPreventAbbreviationReplacements, UnicornPreventAbbreviations, } from '@perfective/eslint-config/rules';
|
package/rules.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.simpleImportSortImports = exports.jsImportNoExtraneousDependencies = exports.jestImportNoExtraneousDependencies = exports.importNoExtraneousDependencies = exports.cypressImportNoExtraneousDependencies = exports.unicornPreventAbbreviations = exports.typescriptEslintNamingConvention = void 0;
|
|
4
4
|
var typescript_eslint_1 = require("./rules/eslint-config/rules/typescript-eslint");
|
|
5
5
|
Object.defineProperty(exports, "typescriptEslintNamingConvention", { enumerable: true, get: function () { return typescript_eslint_1.typescriptEslintNamingConvention; } });
|
|
6
6
|
var unicorn_1 = require("./rules/eslint-config/rules/unicorn");
|
|
@@ -11,4 +11,3 @@ Object.defineProperty(exports, "importNoExtraneousDependencies", { enumerable: t
|
|
|
11
11
|
Object.defineProperty(exports, "jestImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.jestImportNoExtraneousDependencies; } });
|
|
12
12
|
Object.defineProperty(exports, "jsImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.jsImportNoExtraneousDependencies; } });
|
|
13
13
|
Object.defineProperty(exports, "simpleImportSortImports", { enumerable: true, get: function () { return rules_1.simpleImportSortImports; } });
|
|
14
|
-
Object.defineProperty(exports, "typescriptEslintTslintConfig", { enumerable: true, get: function () { return rules_1.typescriptEslintTslintConfig; } });
|