@paratco/eslint-config 1.0.15 → 2.1.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 (54) hide show
  1. package/dist/configs/base.d.ts +124 -0
  2. package/dist/configs/base.d.ts.map +1 -0
  3. package/dist/configs/base.js +21 -0
  4. package/dist/configs/import.d.ts +83 -0
  5. package/dist/configs/import.d.ts.map +1 -0
  6. package/dist/configs/import.js +41 -0
  7. package/dist/configs/node.d.ts +203 -0
  8. package/dist/configs/node.d.ts.map +1 -0
  9. package/{src → dist}/configs/node.js +3 -5
  10. package/dist/configs/prettierFormatter.d.ts +4 -0
  11. package/dist/configs/prettierFormatter.d.ts.map +1 -0
  12. package/{src → dist}/configs/prettierFormatter.js +0 -1
  13. package/dist/configs/react.d.ts +2863 -0
  14. package/dist/configs/react.d.ts.map +1 -0
  15. package/dist/configs/react.js +51 -0
  16. package/dist/configs/stylisticFormatter.d.ts +218 -0
  17. package/dist/configs/stylisticFormatter.d.ts.map +1 -0
  18. package/dist/configs/stylisticFormatter.js +29 -0
  19. package/dist/index.d.ts +3484 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +14 -0
  22. package/dist/rules/import.d.ts +59 -0
  23. package/dist/rules/import.d.ts.map +1 -0
  24. package/dist/rules/import.js +139 -0
  25. package/dist/rules/javascript.d.ts +23 -0
  26. package/dist/rules/javascript.d.ts.map +1 -0
  27. package/dist/rules/javascript.js +42 -0
  28. package/dist/rules/react.d.ts +112 -0
  29. package/dist/rules/react.d.ts.map +1 -0
  30. package/dist/rules/react.js +330 -0
  31. package/dist/rules/stylistic.d.ts +208 -0
  32. package/dist/rules/stylistic.d.ts.map +1 -0
  33. package/dist/rules/stylistic.js +439 -0
  34. package/dist/rules/typescript.d.ts +96 -0
  35. package/dist/rules/typescript.d.ts.map +1 -0
  36. package/dist/rules/typescript.js +254 -0
  37. package/package.json +25 -12
  38. package/.github/dependabot.yml +0 -14
  39. package/.github/workflows/publish.yml +0 -52
  40. package/.prettierrc.json +0 -22
  41. package/.yarnrc.yml +0 -1
  42. package/index.js +0 -15
  43. package/prettier/README.md +0 -22
  44. package/prettier/index.json +0 -22
  45. package/prettier/package.json +0 -20
  46. package/src/configs/base.js +0 -25
  47. package/src/configs/import.js +0 -43
  48. package/src/configs/react.js +0 -58
  49. package/src/configs/stylisticFormatter.js +0 -33
  50. package/src/lints/import/index.js +0 -175
  51. package/src/lints/javascript/index.js +0 -37
  52. package/src/lints/react/index.js +0 -425
  53. package/src/lints/stylistic/index.js +0 -529
  54. package/src/lints/typescript/index.js +0 -295
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAOE"}
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import baseConfig from "./configs/base.js";
2
+ import reactConfig from "./configs/react.js";
3
+ import nodeConfig from "./configs/node.js";
4
+ import importConfig from "./configs/import.js";
5
+ import prettierFormatter from "./configs/prettierFormatter.js";
6
+ import stylisticFormatter from "./configs/stylisticFormatter.js";
7
+ export default {
8
+ base: baseConfig,
9
+ react: reactConfig,
10
+ node: nodeConfig,
11
+ import: importConfig,
12
+ prettierFormatter,
13
+ stylisticFormatter
14
+ };
@@ -0,0 +1,59 @@
1
+ declare const _default: {
2
+ readonly "import-x/no-deprecated": readonly ["error"];
3
+ readonly "import-x/no-empty-named-blocks": readonly ["warn"];
4
+ readonly "import-x/no-extraneous-dependencies": readonly ["error", {
5
+ readonly devDependencies: false;
6
+ readonly optionalDependencies: false;
7
+ readonly peerDependencies: false;
8
+ }];
9
+ readonly "import-x/no-mutable-exports": readonly ["error"];
10
+ readonly "import-x/no-rename-default": readonly ["off"];
11
+ readonly "import-x/no-unused-modules": readonly ["off", {
12
+ readonly missingExports: true;
13
+ }];
14
+ readonly "import-x/no-amd": readonly ["error"];
15
+ readonly "import-x/no-commonjs": readonly ["error"];
16
+ readonly "import-x/no-import-module-exports": readonly ["warn"];
17
+ readonly "import-x/no-nodejs-modules": readonly ["off"];
18
+ readonly "import-x/unambiguous": readonly ["error"];
19
+ readonly "import-x/no-absolute-path": readonly ["warn"];
20
+ readonly "import-x/no-cycle": readonly ["error"];
21
+ readonly "import-x/no-dynamic-require": readonly ["off"];
22
+ readonly "import-x/no-internal-modules": readonly ["off"];
23
+ readonly "import-x/no-relative-packages": readonly ["warn"];
24
+ readonly "import-x/no-relative-parent-imports": readonly ["off"];
25
+ readonly "import-x/no-self-import": readonly ["error"];
26
+ readonly "import-x/no-useless-path-segments": readonly ["warn", {
27
+ readonly noUselessIndex: true;
28
+ }];
29
+ readonly "import-x/no-webpack-loader-syntax": readonly ["error"];
30
+ readonly "import-x/consistent-type-specifier-style": readonly ["warn", "prefer-top-level"];
31
+ readonly "import-x/dynamic-import-chunkname": readonly ["off"];
32
+ readonly "import-x/exports-last": readonly ["off"];
33
+ readonly "import-x/extensions": readonly ["error", "never"];
34
+ readonly "import-x/first": readonly ["warn"];
35
+ readonly "import-x/group-exports": readonly ["off"];
36
+ readonly "import-x/max-dependencies": readonly ["off"];
37
+ readonly "import-x/newline-after-import": readonly ["warn"];
38
+ readonly "import-x/no-anonymous-default-export": readonly ["error", {
39
+ readonly allowArray: false;
40
+ readonly allowArrowFunction: true;
41
+ readonly allowAnonymousClass: false;
42
+ readonly allowAnonymousFunction: false;
43
+ readonly allowCallExpression: true;
44
+ readonly allowNew: false;
45
+ readonly allowLiteral: false;
46
+ readonly allowObject: false;
47
+ }];
48
+ readonly "import-x/no-default-export": readonly ["off"];
49
+ readonly "import-x/no-named-default": readonly ["off"];
50
+ readonly "import-x/no-named-export": readonly ["off"];
51
+ readonly "import-x/no-namespace": readonly ["warn"];
52
+ readonly "import-x/no-unassigned-import": readonly ["error", {
53
+ readonly allow: readonly ["**/*.css"];
54
+ }];
55
+ readonly "import-x/order": readonly ["warn"];
56
+ readonly "import-x/prefer-default-export": readonly ["off"];
57
+ };
58
+ export default _default;
59
+ //# sourceMappingURL=import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../src/rules/import.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA8KW"}
@@ -0,0 +1,139 @@
1
+ export default {
2
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md
3
+ // Forbid imported names marked with @deprecated documentation tag.
4
+ "import-x/no-deprecated": ["error"],
5
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-empty-named-blocks.md
6
+ // Forbid empty named import blocks.
7
+ "import-x/no-empty-named-blocks": ["warn"],
8
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md
9
+ // Forbid the use of extraneous packages.
10
+ "import-x/no-extraneous-dependencies": [
11
+ "error",
12
+ { devDependencies: false, optionalDependencies: false, peerDependencies: false }
13
+ ],
14
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-mutable-exports.md
15
+ // Forbid the use of mutable exports with var or let.
16
+ "import-x/no-mutable-exports": ["error"],
17
+ // https://github.com/un-ts/eslint-plugin-import-x/blob/HEAD/docs/rules/no-rename-default.md
18
+ // Prohibit importing a default export by another name.
19
+ "import-x/no-rename-default": ["off"],
20
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md
21
+ // Forbid modules without exports, or exports without matching import in another module.
22
+ // TODO: Can be enabled
23
+ "import-x/no-unused-modules": ["off", { missingExports: true }],
24
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-amd.md
25
+ // Forbid AMD require and define calls.
26
+ "import-x/no-amd": ["error"],
27
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-commonjs.md
28
+ // Forbid CommonJS require calls and module.exports or exports.*.
29
+ "import-x/no-commonjs": ["error"],
30
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-import-module-exports.md
31
+ // Forbid import statements with CommonJS module.exports.
32
+ "import-x/no-import-module-exports": ["warn"],
33
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-nodejs-modules.md
34
+ // Forbid Node.js builtin modules.
35
+ // TODO: Can enable for front-end
36
+ "import-x/no-nodejs-modules": ["off"],
37
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/unambiguous.md
38
+ // Forbid potentially ambiguous parse goal (script vs. module).
39
+ "import-x/unambiguous": ["error"],
40
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-absolute-path.md
41
+ // Forbid import of modules using absolute paths.
42
+ "import-x/no-absolute-path": ["warn"],
43
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md
44
+ // Forbid a module from importing a module with a dependency path back to itself.
45
+ "import-x/no-cycle": ["error"],
46
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-dynamic-require.md
47
+ // Forbid require() calls with expressions.
48
+ "import-x/no-dynamic-require": ["off"],
49
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-internal-modules.md
50
+ // Forbid importing the submodules of other modules.
51
+ // TODO: Must define in the project
52
+ "import-x/no-internal-modules": ["off"],
53
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-packages.md
54
+ // Forbid importing packages through relative paths.
55
+ "import-x/no-relative-packages": ["warn"],
56
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-relative-parent-imports.md
57
+ // Forbid importing modules from parent directories.
58
+ "import-x/no-relative-parent-imports": ["off"],
59
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-restricted-paths.md
60
+ // Enforce which files can be imported in a given folder.
61
+ // TODO: Can be customized
62
+ // "import-x/no-restricted-paths": ["off"],
63
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-self-import.md
64
+ // Forbid a module from importing itself.
65
+ "import-x/no-self-import": ["error"],
66
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-useless-path-segments.md
67
+ // Forbid unnecessary path segments in import and require statements.
68
+ "import-x/no-useless-path-segments": [
69
+ "warn",
70
+ {
71
+ noUselessIndex: true
72
+ }
73
+ ],
74
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-webpack-loader-syntax.md
75
+ // Forbid webpack loader syntax in imports.
76
+ "import-x/no-webpack-loader-syntax": ["error"],
77
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md
78
+ // Enforce or ban the use of inline type-only markers for named imports.
79
+ "import-x/consistent-type-specifier-style": ["warn", "prefer-top-level"],
80
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/dynamic-import-chunkname.md
81
+ // Enforce a leading comment with the webpackChunkName for dynamic imports.
82
+ "import-x/dynamic-import-chunkname": ["off"],
83
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/exports-last.md
84
+ // Ensure all exports appear after other statements.
85
+ // TODO: Can be enabled
86
+ "import-x/exports-last": ["off"],
87
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md
88
+ // Ensure consistent use of file extension within the import path.
89
+ "import-x/extensions": ["error", "never"],
90
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
91
+ // Ensure all imports appear before other statements.
92
+ "import-x/first": ["warn"],
93
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/group-exports.md
94
+ // Prefer named exports to be grouped together in a single export declaration
95
+ // TODO: Can be enabled
96
+ "import-x/group-exports": ["off"],
97
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/max-dependencies.md
98
+ // Enforce the maximum number of dependencies a module can have.
99
+ "import-x/max-dependencies": ["off"],
100
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md
101
+ // Enforce a newline after import statements.
102
+ "import-x/newline-after-import": ["warn"],
103
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-anonymous-default-export.md
104
+ // Forbid anonymous values as default exports.
105
+ "import-x/no-anonymous-default-export": [
106
+ "error",
107
+ {
108
+ allowArray: false,
109
+ allowArrowFunction: true,
110
+ allowAnonymousClass: false,
111
+ allowAnonymousFunction: false,
112
+ allowCallExpression: true, // The true value here is for backward compatibility
113
+ allowNew: false,
114
+ allowLiteral: false,
115
+ allowObject: false
116
+ }
117
+ ],
118
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md
119
+ // Forbid default exports.
120
+ "import-x/no-default-export": ["off"],
121
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-default.md
122
+ // Forbid named default exports.
123
+ "import-x/no-named-default": ["off"],
124
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-export.md
125
+ // Forbid named exports.
126
+ "import-x/no-named-export": ["off"],
127
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-namespace.md
128
+ // Forbid namespace (a.k.a. "wildcard" *) imports.
129
+ "import-x/no-namespace": ["warn"],
130
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unassigned-import.md
131
+ // Forbid unassigned imports
132
+ "import-x/no-unassigned-import": ["error", { allow: ["**/*.css"] }],
133
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
134
+ // Enforce a convention in module import order.
135
+ "import-x/order": ["warn"],
136
+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/prefer-default-export.md
137
+ // Prefer a default export if module exports a single name or multiple names.
138
+ "import-x/prefer-default-export": ["off"]
139
+ };
@@ -0,0 +1,23 @@
1
+ declare const _default: {
2
+ readonly eqeqeq: readonly ["warn"];
3
+ readonly curly: readonly ["warn", "all"];
4
+ readonly "no-restricted-imports": readonly ["error", {
5
+ readonly patterns: readonly [{
6
+ readonly regex: "^(node:)?process$";
7
+ readonly message: "Please dont import node:process.";
8
+ }];
9
+ }];
10
+ readonly "no-unused-vars": readonly ["error", {
11
+ readonly args: "all";
12
+ readonly argsIgnorePattern: "^_";
13
+ readonly caughtErrors: "all";
14
+ readonly caughtErrorsIgnorePattern: "^_";
15
+ readonly destructuredArrayIgnorePattern: "^_";
16
+ readonly ignoreRestSiblings: true;
17
+ }];
18
+ readonly "no-fallthrough": readonly ["error", {
19
+ readonly allowEmptyCase: true;
20
+ }];
21
+ };
22
+ export default _default;
23
+ //# sourceMappingURL=javascript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../src/rules/javascript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wBA6CW"}
@@ -0,0 +1,42 @@
1
+ export default {
2
+ // https://eslint.org/docs/latest/rules/eqeqeq
3
+ // Require the use of === and !==
4
+ eqeqeq: ["warn"],
5
+ // https://eslint.org/docs/latest/rules/curly
6
+ // Enforce consistent brace style for all control statements
7
+ curly: ["warn", "all"],
8
+ // https://eslint.org/docs/latest/rules/no-restricted-imports
9
+ // Disallow specified modules when loaded by import
10
+ "no-restricted-imports": [
11
+ "error",
12
+ {
13
+ patterns: [
14
+ {
15
+ regex: "^(node:)?process$",
16
+ message: "Please dont import node:process."
17
+ }
18
+ ]
19
+ }
20
+ ],
21
+ // https://eslint.org/docs/latest/rules/no-unused-vars
22
+ // Disallow unused variables
23
+ "no-unused-vars": [
24
+ "error",
25
+ {
26
+ args: "all",
27
+ argsIgnorePattern: "^_",
28
+ caughtErrors: "all",
29
+ caughtErrorsIgnorePattern: "^_",
30
+ destructuredArrayIgnorePattern: "^_",
31
+ ignoreRestSiblings: true
32
+ }
33
+ ],
34
+ // https://eslint.org/docs/latest/rules/no-fallthrough
35
+ // Disallow fallthrough of case statements
36
+ "no-fallthrough": [
37
+ "error",
38
+ {
39
+ allowEmptyCase: true
40
+ }
41
+ ]
42
+ };
@@ -0,0 +1,112 @@
1
+ declare const _default: {
2
+ readonly "react/boolean-prop-naming": readonly ["error"];
3
+ readonly "react/button-has-type": readonly ["error"];
4
+ readonly "react/checked-requires-onchange-or-readonly": readonly ["off"];
5
+ readonly "react/default-props-match-prop-types": readonly ["error"];
6
+ readonly "react/destructuring-assignment": readonly ["warn"];
7
+ readonly "react/display-name": readonly ["error"];
8
+ readonly "react/forbid-component-props": readonly ["off"];
9
+ readonly "react/forbid-dom-props": readonly ["off"];
10
+ readonly "react/forbid-elements": readonly ["off"];
11
+ readonly "react/forbid-foreign-prop-types": readonly ["error"];
12
+ readonly "react/forbid-prop-types": readonly ["error"];
13
+ readonly "react/forward-ref-uses-ref": readonly ["off"];
14
+ readonly "react/function-component-definition": readonly ["warn"];
15
+ readonly "react/hook-use-state": readonly ["error"];
16
+ readonly "react/iframe-missing-sandbox": readonly ["error"];
17
+ readonly "react/jsx-boolean-value": readonly ["warn", "always"];
18
+ readonly "react/jsx-child-element-spacing": readonly ["error"];
19
+ readonly "react/jsx-closing-bracket-location": readonly ["off"];
20
+ readonly "react/jsx-closing-tag-location": readonly ["off"];
21
+ readonly "react/jsx-curly-brace-presence": readonly ["off"];
22
+ readonly "react/jsx-curly-newline": readonly ["off"];
23
+ readonly "react/jsx-curly-spacing": readonly ["off"];
24
+ readonly "react/jsx-equals-spacing": readonly ["off"];
25
+ readonly "react/jsx-filename-extension": readonly ["error", {
26
+ readonly allow: "always";
27
+ readonly extensions: readonly [".tsx"];
28
+ }];
29
+ readonly "react/jsx-first-prop-new-line": readonly ["off"];
30
+ readonly "react/jsx-fragments": readonly ["warn"];
31
+ readonly "react/jsx-handler-names": readonly ["error"];
32
+ readonly "react/jsx-indent": readonly ["off"];
33
+ readonly "react/jsx-indent-props": readonly ["off"];
34
+ readonly "react/jsx-key": readonly ["error"];
35
+ readonly "react/jsx-max-depth": readonly ["off"];
36
+ readonly "react/jsx-max-props-per-line": readonly ["off"];
37
+ readonly "react/jsx-newline": readonly ["off"];
38
+ readonly "react/jsx-no-bind": readonly ["error", {
39
+ readonly allowArrowFunctions: true;
40
+ }];
41
+ readonly "react/jsx-no-comment-textnodes": readonly ["error"];
42
+ readonly "react/jsx-no-constructed-context-values": readonly ["error"];
43
+ readonly "react/jsx-no-duplicate-props": readonly ["error"];
44
+ readonly "react/jsx-no-leaked-render": readonly ["warn"];
45
+ readonly "react/jsx-no-literals": readonly ["off"];
46
+ readonly "react/jsx-no-script-url": readonly ["error"];
47
+ readonly "react/jsx-no-target-blank": readonly ["warn"];
48
+ readonly "react/jsx-no-undef": readonly ["error"];
49
+ readonly "react/jsx-no-useless-fragment": readonly ["warn"];
50
+ readonly "react/jsx-one-expression-per-line": readonly ["off"];
51
+ readonly "react/jsx-pascal-case": readonly ["off"];
52
+ readonly "react/jsx-props-no-multi-spaces": readonly ["off"];
53
+ readonly "react/jsx-props-no-spread-multi": readonly ["off"];
54
+ readonly "react/jsx-props-no-spreading": readonly ["off"];
55
+ readonly "react/jsx-sort-props": readonly ["off"];
56
+ readonly "react/jsx-tag-spacing": readonly ["off"];
57
+ readonly "react/jsx-uses-react": readonly ["error"];
58
+ readonly "react/jsx-uses-vars": readonly ["error"];
59
+ readonly "react/jsx-wrap-multilines": readonly ["off"];
60
+ readonly "react/no-access-state-in-setstate": readonly ["error"];
61
+ readonly "react/no-adjacent-inline-elements": readonly ["error"];
62
+ readonly "react/no-array-index-key": readonly ["error"];
63
+ readonly "react/no-arrow-function-lifecycle": readonly ["warn"];
64
+ readonly "react/no-children-prop": readonly ["error"];
65
+ readonly "react/no-danger": readonly ["error"];
66
+ readonly "react/no-danger-with-children": readonly ["error"];
67
+ readonly "react/no-deprecated": readonly ["error"];
68
+ readonly "react/no-did-mount-set-state": readonly ["error", "disallow-in-func"];
69
+ readonly "react/no-did-update-set-state": readonly ["error", "disallow-in-func"];
70
+ readonly "react/no-direct-mutation-state": readonly ["error"];
71
+ readonly "react/no-find-dom-node": readonly ["error"];
72
+ readonly "react/no-invalid-html-attribute": readonly ["error"];
73
+ readonly "react/no-is-mounted": readonly ["error"];
74
+ readonly "react/no-multi-comp": readonly ["off"];
75
+ readonly "react/no-namespace": readonly ["error"];
76
+ readonly "react/no-object-type-as-default-prop": readonly ["error"];
77
+ readonly "react/no-redundant-should-component-update": readonly ["error"];
78
+ readonly "react/no-render-return-value": readonly ["error"];
79
+ readonly "react/no-set-state": readonly ["error"];
80
+ readonly "react/no-string-refs": readonly ["error", {
81
+ readonly noTemplateLiterals: true;
82
+ }];
83
+ readonly "react/no-this-in-sfc": readonly ["error"];
84
+ readonly "react/no-typos": readonly ["error"];
85
+ readonly "react/no-unescaped-entities": readonly ["error"];
86
+ readonly "react/no-unknown-property": readonly ["warn"];
87
+ readonly "react/no-unsafe": readonly ["off"];
88
+ readonly "react/no-unstable-nested-components": readonly ["error"];
89
+ readonly "react/no-unused-class-component-methods": readonly ["error"];
90
+ readonly "react/no-unused-prop-types": readonly ["error"];
91
+ readonly "react/no-unused-state": readonly ["error"];
92
+ readonly "react/no-will-update-set-state": readonly ["error", "disallow-in-func"];
93
+ readonly "react/prefer-es6-class": readonly ["error"];
94
+ readonly "react/prefer-exact-props": readonly ["error"];
95
+ readonly "react/prefer-read-only-props": readonly ["warn"];
96
+ readonly "react/prefer-stateless-function": readonly ["error"];
97
+ readonly "react/prop-types": readonly ["error"];
98
+ readonly "react/react-in-jsx-scope": readonly ["off"];
99
+ readonly "react/require-default-props": readonly ["off"];
100
+ readonly "react/require-optimization": readonly ["error"];
101
+ readonly "react/require-render-return": readonly ["error"];
102
+ readonly "react/self-closing-comp": readonly ["warn"];
103
+ readonly "react/sort-comp": readonly ["error"];
104
+ readonly "react/sort-default-props": readonly ["off"];
105
+ readonly "react/sort-prop-types": readonly ["off"];
106
+ readonly "react/state-in-constructor": readonly ["error"];
107
+ readonly "react/static-property-placement": readonly ["error"];
108
+ readonly "react/style-prop-object": readonly ["error"];
109
+ readonly "react/void-dom-elements-no-children": readonly ["error"];
110
+ };
111
+ export default _default;
112
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/rules/react.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA6aW"}