@perfective/eslint-config-react 0.15.1 → 0.17.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/LICENSE +1 -1
- package/README.adoc +66 -46
- package/README.md +60 -52
- package/config/jsx-a11y/jsx-a11y-config.d.ts +2 -0
- package/config/jsx-a11y/jsx-a11y-config.js +81 -0
- package/config/perfective-eslint-react-config.d.ts +7 -0
- package/config/perfective-eslint-react-config.js +24 -0
- package/config/react/jsx.d.ts +1 -0
- package/config/react/jsx.js +88 -0
- package/config/react/react-config.d.ts +2 -0
- package/config/react/react-config.js +139 -0
- package/config/react-hooks/react-hooks-config.d.ts +2 -0
- package/config/react-hooks/react-hooks-config.js +14 -0
- package/config/react-perf/react-perf-config.d.ts +2 -0
- package/config/react-perf/react-perf-config.js +14 -0
- package/config/testing-library/index.d.ts +1 -0
- package/config/testing-library/index.js +1 -0
- package/config/testing-library/testing-library-config.d.ts +8 -0
- package/config/testing-library/testing-library-config.js +14 -0
- package/config/typescript-eslint/index.d.ts +1 -0
- package/config/typescript-eslint/index.js +1 -0
- package/{rules/eslint-config → config/typescript-eslint}/rules/typescript-eslint.d.ts +5 -1
- package/config/typescript-eslint/rules/typescript-eslint.js +11 -0
- package/config/unicorn/index.d.ts +1 -0
- package/config/unicorn/index.js +1 -0
- package/{rules/eslint-config → config/unicorn}/rules/unicorn.d.ts +4 -1
- package/config/unicorn/rules/unicorn.js +9 -0
- package/index.d.ts +1 -0
- package/index.js +1 -58
- package/package.json +30 -12
- package/testing-library/package.json +13 -0
- package/typescript-eslint/package.json +13 -0
- package/unicorn/package.json +13 -0
- package/rules/eslint-config/index.js +0 -15
- package/rules/eslint-config/rules/typescript-eslint.js +0 -17
- package/rules/eslint-config/rules/unicorn.js +0 -7
- package/rules/jsx-a11y/index.js +0 -79
- package/rules/react/index.js +0 -158
- package/rules/react/jsx.js +0 -90
- package/rules/react-hooks/index.js +0 -10
- package/rules/react-hooks-ssr/index.js +0 -9
- package/rules/react-perf/index.js +0 -12
- package/rules.d.ts +0 -3
- package/rules.js +0 -14
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = {
|
|
3
|
-
plugins: [
|
|
4
|
-
'react-perf',
|
|
5
|
-
],
|
|
6
|
-
rules: {
|
|
7
|
-
'react-perf/jsx-no-jsx-as-prop': 'error',
|
|
8
|
-
'react-perf/jsx-no-new-array-as-prop': 'error',
|
|
9
|
-
'react-perf/jsx-no-new-function-as-prop': 'error',
|
|
10
|
-
'react-perf/jsx-no-new-object-as-prop': 'error',
|
|
11
|
-
},
|
|
12
|
-
};
|
package/rules.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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");
|
|
9
|
-
Object.defineProperty(exports, "cypressImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.cypressImportNoExtraneousDependencies; } });
|
|
10
|
-
Object.defineProperty(exports, "importNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.importNoExtraneousDependencies; } });
|
|
11
|
-
Object.defineProperty(exports, "jestImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.jestImportNoExtraneousDependencies; } });
|
|
12
|
-
Object.defineProperty(exports, "jsImportNoExtraneousDependencies", { enumerable: true, get: function () { return rules_1.jsImportNoExtraneousDependencies; } });
|
|
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; } });
|