@perfective/eslint-config-react 0.6.0-alpha.1 → 0.7.0-alpha
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/package.json +6 -6
- package/rules/react/index.js +3 -0
- package/rules.d.ts +3 -4
- package/rules.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perfective/eslint-config-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-alpha",
|
|
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,14 +11,14 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@perfective/eslint-config": "~0.
|
|
14
|
+
"@perfective/eslint-config": "~0.17.0-alpha"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
18
|
-
"eslint-plugin-react": "^7.
|
|
19
|
-
"eslint-plugin-react-hooks": "^4.
|
|
17
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
18
|
+
"eslint-plugin-react": "^7.28.0",
|
|
19
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
20
20
|
"eslint-plugin-react-hooks-ssr": "^0.1.5",
|
|
21
|
-
"eslint-plugin-react-perf": "^3.3.
|
|
21
|
+
"eslint-plugin-react-perf": "^3.3.1"
|
|
22
22
|
},
|
|
23
23
|
"main": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
package/rules/react/index.js
CHANGED
|
@@ -42,6 +42,7 @@ module.exports = {
|
|
|
42
42
|
'react/no-access-state-in-setstate': 'error',
|
|
43
43
|
'react/no-adjacent-inline-elements': 'error',
|
|
44
44
|
'react/no-array-index-key': 'error',
|
|
45
|
+
'react/no-arrow-function-lifecycle': 'warn',
|
|
45
46
|
'react/no-children-prop': ['error', {
|
|
46
47
|
allowFunctions: false,
|
|
47
48
|
}],
|
|
@@ -52,10 +53,12 @@ module.exports = {
|
|
|
52
53
|
'react/no-did-update-set-state': ['error', 'disallow-in-func'],
|
|
53
54
|
'react/no-direct-mutation-state': 'error',
|
|
54
55
|
'react/no-find-dom-node': 'error',
|
|
56
|
+
'react/no-invalid-html-attribute': 'warn',
|
|
55
57
|
'react/no-is-mounted': 'error',
|
|
56
58
|
'react/no-multi-comp': ['error', {
|
|
57
59
|
ignoreStateless: false,
|
|
58
60
|
}],
|
|
61
|
+
'react/no-namespace': 'error',
|
|
59
62
|
'react/no-redundant-should-component-update': 'error',
|
|
60
63
|
'react/no-render-return-value': 'error',
|
|
61
64
|
'react/no-set-state': 'off',
|
package/rules.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { cypressImportNoExtraneousDependencies, ImportNoExtraneousDependencies, importNoExtraneousDependencies, jestImportNoExtraneousDependencies, jsImportNoExtraneousDependencies, SimpleImportSortImports, simpleImportSortImports, TsLintRule, TsLintRules, TypescriptEslintNamingConvention, typescriptEslintNamingConvention, TypescriptEslintNamingConventionFormat, TypescriptEslintNamingConventionGroupSelector, TypescriptEslintNamingConventionIndividualSelector, TypescriptEslintNamingConventionSelector, TypescriptEslintNamingConventionUnderscore, TypescriptEslintTslintConfig, typescriptEslintTslintConfig, UnicornPreventAbbreviationReplacements, UnicornPreventAbbreviations, unicornPreventAbbreviations, };
|
|
1
|
+
export { typescriptEslintNamingConvention } from './rules/eslint-config/rules/typescript-eslint';
|
|
2
|
+
export { unicornPreventAbbreviations } from './rules/eslint-config/rules/unicorn';
|
|
3
|
+
export { cypressImportNoExtraneousDependencies, ImportNoExtraneousDependencies, importNoExtraneousDependencies, jestImportNoExtraneousDependencies, jsImportNoExtraneousDependencies, SimpleImportSortImports, simpleImportSortImports, TsLintRule, TsLintRules, TypescriptEslintNamingConvention, TypescriptEslintNamingConventionFormat, TypescriptEslintNamingConventionGroupSelector, TypescriptEslintNamingConventionIndividualSelector, TypescriptEslintNamingConventionSelector, TypescriptEslintNamingConventionUnderscore, TypescriptEslintTslintConfig, typescriptEslintTslintConfig, UnicornPreventAbbreviationReplacements, UnicornPreventAbbreviations, } from '@perfective/eslint-config/rules';
|
package/rules.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.typescriptEslintTslintConfig = exports.simpleImportSortImports = exports.jsImportNoExtraneousDependencies = exports.jestImportNoExtraneousDependencies = exports.importNoExtraneousDependencies = exports.cypressImportNoExtraneousDependencies = exports.unicornPreventAbbreviations = exports.typescriptEslintNamingConvention = void 0;
|
|
4
|
+
var typescript_eslint_1 = require("./rules/eslint-config/rules/typescript-eslint");
|
|
5
|
+
Object.defineProperty(exports, "typescriptEslintNamingConvention", { enumerable: true, get: function () { return typescript_eslint_1.typescriptEslintNamingConvention; } });
|
|
6
|
+
var unicorn_1 = require("./rules/eslint-config/rules/unicorn");
|
|
7
|
+
Object.defineProperty(exports, "unicornPreventAbbreviations", { enumerable: true, get: function () { return unicorn_1.unicornPreventAbbreviations; } });
|
|
8
|
+
var rules_1 = require("@perfective/eslint-config/rules");
|
|
5
9
|
Object.defineProperty(exports, "cypressImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.cypressImportNoExtraneousDependencies; } });
|
|
6
10
|
Object.defineProperty(exports, "importNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.importNoExtraneousDependencies; } });
|
|
7
11
|
Object.defineProperty(exports, "jestImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.jestImportNoExtraneousDependencies; } });
|
|
8
12
|
Object.defineProperty(exports, "jsImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.jsImportNoExtraneousDependencies; } });
|
|
9
13
|
Object.defineProperty(exports, "simpleImportSortImports", { enumerable: true, get: function () { return rules_1.simpleImportSortImports; } });
|
|
10
14
|
Object.defineProperty(exports, "typescriptEslintTslintConfig", { enumerable: true, get: function () { return rules_1.typescriptEslintTslintConfig; } });
|
|
11
|
-
const typescript_eslint_1 = require("./rules/eslint-config/rules/typescript-eslint");
|
|
12
|
-
Object.defineProperty(exports, "typescriptEslintNamingConvention", { enumerable: true, get: function () { return typescript_eslint_1.typescriptEslintNamingConvention; } });
|
|
13
|
-
const unicorn_1 = require("./rules/eslint-config/rules/unicorn");
|
|
14
|
-
Object.defineProperty(exports, "unicornPreventAbbreviations", { enumerable: true, get: function () { return unicorn_1.unicornPreventAbbreviations; } });
|