@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.
Files changed (44) hide show
  1. package/LICENSE +1 -1
  2. package/README.adoc +66 -46
  3. package/README.md +60 -52
  4. package/config/jsx-a11y/jsx-a11y-config.d.ts +2 -0
  5. package/config/jsx-a11y/jsx-a11y-config.js +81 -0
  6. package/config/perfective-eslint-react-config.d.ts +7 -0
  7. package/config/perfective-eslint-react-config.js +24 -0
  8. package/config/react/jsx.d.ts +1 -0
  9. package/config/react/jsx.js +88 -0
  10. package/config/react/react-config.d.ts +2 -0
  11. package/config/react/react-config.js +139 -0
  12. package/config/react-hooks/react-hooks-config.d.ts +2 -0
  13. package/config/react-hooks/react-hooks-config.js +14 -0
  14. package/config/react-perf/react-perf-config.d.ts +2 -0
  15. package/config/react-perf/react-perf-config.js +14 -0
  16. package/config/testing-library/index.d.ts +1 -0
  17. package/config/testing-library/index.js +1 -0
  18. package/config/testing-library/testing-library-config.d.ts +8 -0
  19. package/config/testing-library/testing-library-config.js +14 -0
  20. package/config/typescript-eslint/index.d.ts +1 -0
  21. package/config/typescript-eslint/index.js +1 -0
  22. package/{rules/eslint-config → config/typescript-eslint}/rules/typescript-eslint.d.ts +5 -1
  23. package/config/typescript-eslint/rules/typescript-eslint.js +11 -0
  24. package/config/unicorn/index.d.ts +1 -0
  25. package/config/unicorn/index.js +1 -0
  26. package/{rules/eslint-config → config/unicorn}/rules/unicorn.d.ts +4 -1
  27. package/config/unicorn/rules/unicorn.js +9 -0
  28. package/index.d.ts +1 -0
  29. package/index.js +1 -58
  30. package/package.json +30 -12
  31. package/testing-library/package.json +13 -0
  32. package/typescript-eslint/package.json +13 -0
  33. package/unicorn/package.json +13 -0
  34. package/rules/eslint-config/index.js +0 -15
  35. package/rules/eslint-config/rules/typescript-eslint.js +0 -17
  36. package/rules/eslint-config/rules/unicorn.js +0 -7
  37. package/rules/jsx-a11y/index.js +0 -79
  38. package/rules/react/index.js +0 -158
  39. package/rules/react/jsx.js +0 -90
  40. package/rules/react-hooks/index.js +0 -10
  41. package/rules/react-hooks-ssr/index.js +0 -9
  42. package/rules/react-perf/index.js +0 -12
  43. package/rules.d.ts +0 -3
  44. package/rules.js +0 -14
@@ -1,9 +0,0 @@
1
- "use strict";
2
- module.exports = {
3
- plugins: [
4
- 'react-hooks-ssr',
5
- ],
6
- rules: {
7
- 'react-hooks-ssr/react-hooks-global-ssr': 'error',
8
- },
9
- };
@@ -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; } });