@paratco/eslint-config 1.0.16 → 2.1.1

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 -46
  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":"react.d.ts","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMzD,wBA+CE"}
@@ -0,0 +1,51 @@
1
+ import globals from "globals";
2
+ import baseConfig from "./base.js";
3
+ // Plugins
4
+ import reactPlugin from "eslint-plugin-react";
5
+ import reactHooksPlugin from "eslint-plugin-react-hooks";
6
+ import reactRefreshPlugin from "eslint-plugin-react-refresh";
7
+ // Custom Rules
8
+ import reactRules from "../rules/react.js";
9
+ export default [
10
+ ...baseConfig,
11
+ // Browser Only
12
+ { languageOptions: { globals: globals.browser } },
13
+ // Enable JSX
14
+ { files: ["**/*.tsx"], languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
15
+ // React Plugin
16
+ {
17
+ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
18
+ plugins: {
19
+ react: reactPlugin,
20
+ "react-hooks": reactHooksPlugin,
21
+ "react-refresh": reactRefreshPlugin
22
+ },
23
+ settings: {
24
+ react: {
25
+ version: "detect"
26
+ }
27
+ },
28
+ languageOptions: {
29
+ parserOptions: {
30
+ ecmaFeatures: {
31
+ jsx: true
32
+ }
33
+ },
34
+ globals: {
35
+ ...globals.serviceworker,
36
+ ...globals.browser
37
+ }
38
+ },
39
+ rules: {
40
+ ...reactRules,
41
+ // ...react.configs.recommended.rules,
42
+ ...reactHooksPlugin.configs.recommended.rules,
43
+ // Enforce Rules of Hooks
44
+ "react-hooks/rules-of-hooks": ["error"],
45
+ // Verify the list of the dependencies for Hooks like useEffect and similar
46
+ "react-hooks/exhaustive-deps": ["error"],
47
+ // React Refresh
48
+ "react-refresh/only-export-components": ["warn", { allowConstantExport: true }]
49
+ }
50
+ }
51
+ ];
@@ -0,0 +1,218 @@
1
+ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
2
+ files: string[];
3
+ languageOptions: {
4
+ parserOptions: {
5
+ ecmaFeatures: {
6
+ jsx: boolean;
7
+ };
8
+ };
9
+ };
10
+ rules: {
11
+ readonly "@stylistic/array-bracket-newline": readonly ["warn"];
12
+ readonly "@stylistic/array-bracket-spacing": readonly ["warn"];
13
+ readonly "@stylistic/array-element-newline": readonly ["warn", "consistent"];
14
+ readonly "@stylistic/arrow-parens": readonly ["warn", "always"];
15
+ readonly "@stylistic/arrow-spacing": readonly ["warn"];
16
+ readonly "@stylistic/block-spacing": readonly ["warn"];
17
+ readonly "@stylistic/brace-style": readonly ["warn", "1tbs"];
18
+ readonly "@stylistic/comma-dangle": readonly ["warn"];
19
+ readonly "@stylistic/comma-spacing": readonly ["warn"];
20
+ readonly "@stylistic/comma-style": readonly ["warn"];
21
+ readonly "@stylistic/computed-property-spacing": readonly ["warn"];
22
+ readonly "@stylistic/curly-newline": readonly ["warn", "always"];
23
+ readonly "@stylistic/dot-location": readonly ["warn", "property"];
24
+ readonly "@stylistic/eol-last": readonly ["warn"];
25
+ readonly "@stylistic/function-call-spacing": readonly ["warn"];
26
+ readonly "@stylistic/function-call-argument-newline": readonly ["warn", "consistent"];
27
+ readonly "@stylistic/function-paren-newline": readonly ["warn", "consistent"];
28
+ readonly "@stylistic/generator-star-spacing": readonly ["warn"];
29
+ readonly "@stylistic/implicit-arrow-linebreak": readonly ["warn"];
30
+ readonly "@stylistic/indent": readonly ["warn", 2];
31
+ readonly "@stylistic/indent-binary-ops": readonly ["warn", 2];
32
+ readonly "@stylistic/jsx-child-element-spacing": readonly ["error"];
33
+ readonly "@stylistic/jsx-closing-bracket-location": readonly ["warn"];
34
+ readonly "@stylistic/jsx-closing-tag-location": readonly ["warn"];
35
+ readonly "@stylistic/jsx-curly-brace-presence": readonly ["warn"];
36
+ readonly "@stylistic/jsx-curly-newline": readonly ["warn"];
37
+ readonly "@stylistic/jsx-curly-spacing": readonly ["warn"];
38
+ readonly "@stylistic/jsx-equals-spacing": readonly ["warn"];
39
+ readonly "@stylistic/jsx-first-prop-new-line": readonly ["warn"];
40
+ readonly "@stylistic/jsx-function-call-newline": readonly ["warn"];
41
+ readonly "@stylistic/jsx-indent": readonly ["warn", 2, {
42
+ readonly checkAttributes: true;
43
+ readonly indentLogicalExpressions: true;
44
+ }];
45
+ readonly "@stylistic/jsx-indent-props": readonly ["warn", 2];
46
+ readonly "@stylistic/jsx/jsx-max-props-per-line": readonly ["off"];
47
+ readonly "@stylistic/jsx-newline": readonly ["off"];
48
+ readonly "@stylistic/jsx-one-expression-per-line": readonly ["warn", {
49
+ readonly allow: "single-child";
50
+ }];
51
+ readonly "@stylistic/jsx-pascal-case": readonly ["error"];
52
+ readonly "@stylistic/jsx-props-no-multi-spaces": readonly ["warn"];
53
+ readonly "@stylistic/jsx-quotes": readonly ["warn"];
54
+ readonly "@stylistic/jsx-self-closing-comp": readonly ["warn"];
55
+ readonly "@stylistic/jsx-sort-props": readonly ["warn", {
56
+ readonly callbacksLast: true;
57
+ readonly shorthandFirst: true;
58
+ readonly multiline: "last";
59
+ readonly noSortAlphabetically: true;
60
+ }];
61
+ readonly "@stylistic/jsx-tag-spacing": readonly ["warn", {
62
+ readonly closingSlash: "never";
63
+ readonly beforeSelfClosing: "always";
64
+ readonly afterOpening: "never";
65
+ readonly beforeClosing: "never";
66
+ }];
67
+ readonly "@stylistic/jsx-wrap-multilines": readonly ["warn", {
68
+ readonly declaration: "parens-new-line";
69
+ readonly assignment: "parens-new-line";
70
+ readonly return: "parens-new-line";
71
+ readonly arrow: "parens-new-line";
72
+ readonly condition: "parens-new-line";
73
+ readonly logical: "parens-new-line";
74
+ readonly prop: "parens-new-line";
75
+ }];
76
+ readonly "@stylistic/key-spacing": "warn";
77
+ readonly "@stylistic/keyword-spacing": "warn";
78
+ readonly "@stylistic/line-comment-position": "warn";
79
+ readonly "@stylistic/linebreak-style": "warn";
80
+ readonly "@stylistic/lines-around-comment": readonly ["warn", {
81
+ readonly beforeBlockComment: true;
82
+ readonly afterBlockComment: false;
83
+ readonly beforeLineComment: true;
84
+ readonly afterLineComment: false;
85
+ readonly allowBlockStart: true;
86
+ readonly allowBlockEnd: true;
87
+ readonly allowObjectStart: true;
88
+ readonly allowObjectEnd: true;
89
+ readonly allowArrayStart: true;
90
+ readonly allowArrayEnd: true;
91
+ readonly allowClassStart: true;
92
+ readonly allowClassEnd: true;
93
+ readonly afterHashbangComment: true;
94
+ }];
95
+ readonly "@stylistic/lines-between-class-members": readonly ["warn", {
96
+ readonly enforce: readonly [{
97
+ readonly blankLine: "never";
98
+ readonly prev: "field";
99
+ readonly next: "field";
100
+ }, {
101
+ readonly blankLine: "always";
102
+ readonly prev: "*";
103
+ readonly next: "method";
104
+ }, {
105
+ readonly blankLine: "always";
106
+ readonly prev: "method";
107
+ readonly next: "*";
108
+ }];
109
+ }];
110
+ readonly "@stylistic/max-len": readonly ["error", {
111
+ readonly code: 120;
112
+ readonly tabWidth: 2;
113
+ readonly comments: 120;
114
+ readonly ignoreComments: true;
115
+ readonly ignoreTrailingComments: true;
116
+ readonly ignoreUrls: true;
117
+ readonly ignoreStrings: true;
118
+ readonly ignoreTemplateLiterals: true;
119
+ readonly ignoreRegExpLiterals: true;
120
+ }];
121
+ readonly "@stylistic/max-statements-per-line": readonly ["error"];
122
+ readonly "@stylistic/member-delimiter-style": readonly ["warn"];
123
+ readonly "@stylistic/multiline-comment-style": readonly ["off"];
124
+ readonly "@stylistic/multiline-ternary": readonly ["warn", "always-multiline"];
125
+ readonly "@stylistic/new-parens": readonly ["warn"];
126
+ readonly "@stylistic/newline-per-chained-call": readonly ["warn"];
127
+ readonly "@stylistic/no-confusing-arrow": readonly ["warn"];
128
+ readonly "@stylistic/no-extra-parens": readonly ["warn"];
129
+ readonly "@stylistic/no-extra-semi": readonly ["warn"];
130
+ readonly "@stylistic/no-floating-decimal": readonly ["warn"];
131
+ readonly "@stylistic/no-mixed-operators": readonly ["error"];
132
+ readonly "@stylistic/no-mixed-spaces-and-tabs": readonly ["error"];
133
+ readonly "@stylistic/no-multi-spaces": readonly ["warn"];
134
+ readonly "@stylistic/no-multiple-empty-lines": readonly ["warn"];
135
+ readonly "@stylistic/no-tabs": readonly ["error"];
136
+ readonly "@stylistic/no-trailing-spaces": readonly ["warn"];
137
+ readonly "@stylistic/no-whitespace-before-property": readonly ["warn"];
138
+ readonly "@stylistic/nonblock-statement-body-position": readonly ["warn"];
139
+ readonly "@stylistic/object-curly-newline": readonly ["warn", {
140
+ readonly consistent: true;
141
+ }];
142
+ readonly "@stylistic/object-curly-spacing": readonly ["warn"];
143
+ readonly "@stylistic/object-property-newline": readonly ["warn", {
144
+ readonly allowAllPropertiesOnSameLine: true;
145
+ }];
146
+ readonly "@stylistic/one-var-declaration-per-line": readonly ["warn"];
147
+ readonly "@stylistic/operator-linebreak": readonly ["warn"];
148
+ readonly "@stylistic/padded-blocks": readonly ["warn", "never"];
149
+ readonly "@stylistic/padding-line-between-statements": readonly ["warn", {
150
+ readonly blankLine: "always";
151
+ readonly prev: "*";
152
+ readonly next: "return";
153
+ }, {
154
+ readonly blankLine: "always";
155
+ readonly prev: "*";
156
+ readonly next: "block-like";
157
+ }, {
158
+ readonly blankLine: "always";
159
+ readonly prev: "block-like";
160
+ readonly next: "*";
161
+ }, {
162
+ readonly blankLine: "always";
163
+ readonly prev: "case";
164
+ readonly next: "case";
165
+ }, {
166
+ readonly blankLine: "never";
167
+ readonly prev: "*";
168
+ readonly next: "break";
169
+ }, {
170
+ readonly blankLine: "always";
171
+ readonly prev: "*";
172
+ readonly next: "export";
173
+ }, {
174
+ readonly blankLine: "always";
175
+ readonly prev: "*";
176
+ readonly next: "interface";
177
+ }, {
178
+ readonly blankLine: "always";
179
+ readonly prev: "interface";
180
+ readonly next: "*";
181
+ }, {
182
+ readonly blankLine: "always";
183
+ readonly prev: "*";
184
+ readonly next: "class";
185
+ }, {
186
+ readonly blankLine: "always";
187
+ readonly prev: "class";
188
+ readonly next: "*";
189
+ }];
190
+ readonly "@stylistic/quote-props": readonly ["warn", "as-needed"];
191
+ readonly "@stylistic/quotes": readonly ["warn"];
192
+ readonly "@stylistic/rest-spread-spacing": readonly ["warn"];
193
+ readonly "@stylistic/semi": readonly ["warn"];
194
+ readonly "@stylistic/semi-spacing": readonly ["warn"];
195
+ readonly "@stylistic/semi-style": readonly ["warn"];
196
+ readonly "@stylistic/space-before-blocks": readonly ["warn"];
197
+ readonly "@stylistic/space-before-function-paren": readonly ["warn", {
198
+ readonly anonymous: "always";
199
+ readonly named: "never";
200
+ readonly asyncArrow: "always";
201
+ }];
202
+ readonly "@stylistic/space-in-parens": readonly ["warn"];
203
+ readonly "@stylistic/space-infix-ops": readonly ["warn"];
204
+ readonly "@stylistic/space-unary-ops": readonly ["warn"];
205
+ readonly "@stylistic/spaced-comment": readonly ["warn"];
206
+ readonly "@stylistic/switch-colon-spacing": readonly ["warn"];
207
+ readonly "@stylistic/template-curly-spacing": readonly ["warn"];
208
+ readonly "@stylistic/template-tag-spacing": readonly ["warn"];
209
+ readonly "@stylistic/type-annotation-spacing": readonly ["warn"];
210
+ readonly "@stylistic/type-generic-spacing": readonly ["warn"];
211
+ readonly "@stylistic/type-named-tuple-spacing": readonly ["warn"];
212
+ readonly "@stylistic/wrap-iife": readonly ["warn", "inside"];
213
+ readonly "@stylistic/wrap-regex": readonly ["warn"];
214
+ readonly "@stylistic/yield-star-spacing": readonly ["warn", "after"];
215
+ };
216
+ })[];
217
+ export default _default;
218
+ //# sourceMappingURL=stylisticFormatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stylisticFormatter.d.ts","sourceRoot":"","sources":["../../src/configs/stylisticFormatter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBA0BE"}
@@ -0,0 +1,29 @@
1
+ import stylistic from "@stylistic/eslint-plugin";
2
+ // Custom Rules
3
+ import stylisticRules from "../rules/stylistic.js";
4
+ export default [
5
+ // Stylistic Configs
6
+ stylistic.configs.customize({
7
+ jsx: true,
8
+ arrowParens: true,
9
+ blockSpacing: true,
10
+ braceStyle: "stroustrup",
11
+ commaDangle: "never",
12
+ indent: 2,
13
+ semi: true,
14
+ quotes: "double",
15
+ quoteProps: "always"
16
+ }),
17
+ // Stylistic Rules
18
+ {
19
+ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
20
+ languageOptions: {
21
+ parserOptions: {
22
+ ecmaFeatures: {
23
+ jsx: true
24
+ }
25
+ }
26
+ },
27
+ rules: stylisticRules
28
+ }
29
+ ];