@aliexme/eslint-config 1.2.7 → 2.0.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.
- package/configs/base.js +135 -0
- package/configs/import.js +61 -0
- package/configs/prettier.js +49 -0
- package/configs/react-native.js +18 -0
- package/configs/react.js +50 -0
- package/configs/recommended.js +7 -0
- package/configs/stylistic.js +68 -0
- package/configs/typescript.js +41 -0
- package/configs/vue.js +19 -0
- package/index.js +4 -0
- package/package.json +22 -24
- package/dist/compat.d.ts +0 -3
- package/dist/compat.js +0 -11
- package/dist/compat.js.map +0 -1
- package/dist/configs/base.d.ts +0 -1342
- package/dist/configs/base.js +0 -134
- package/dist/configs/base.js.map +0 -1
- package/dist/configs/import.d.ts +0 -2
- package/dist/configs/import.js +0 -59
- package/dist/configs/import.js.map +0 -1
- package/dist/configs/prettier.d.ts +0 -3
- package/dist/configs/prettier.js +0 -47
- package/dist/configs/prettier.js.map +0 -1
- package/dist/configs/react-native.d.ts +0 -14
- package/dist/configs/react-native.js +0 -17
- package/dist/configs/react-native.js.map +0 -1
- package/dist/configs/react.d.ts +0 -2
- package/dist/configs/react.js +0 -50
- package/dist/configs/react.js.map +0 -1
- package/dist/configs/recommended.d.ts +0 -1342
- package/dist/configs/recommended.js +0 -11
- package/dist/configs/recommended.js.map +0 -1
- package/dist/configs/stylistic.d.ts +0 -3
- package/dist/configs/stylistic.js +0 -66
- package/dist/configs/stylistic.js.map +0 -1
- package/dist/configs/typescript.d.ts +0 -3
- package/dist/configs/typescript.js +0 -39
- package/dist/configs/typescript.js.map +0 -1
- package/dist/configs/vue.d.ts +0 -2
- package/dist/configs/vue.js +0 -18
- package/dist/configs/vue.js.map +0 -1
- package/dist/index.d.ts +0 -1342
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
- package/dist/utils/compat.d.ts +0 -2
- package/dist/utils/compat.js +0 -3
- package/dist/utils/compat.js.map +0 -1
package/dist/configs/base.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import eslintJs from '@eslint/js';
|
|
2
|
-
import globals from 'globals';
|
|
3
|
-
export default [
|
|
4
|
-
eslintJs.configs.recommended,
|
|
5
|
-
{
|
|
6
|
-
name: '@aliexme/eslint-config/base',
|
|
7
|
-
languageOptions: {
|
|
8
|
-
ecmaVersion: 'latest',
|
|
9
|
-
sourceType: 'module',
|
|
10
|
-
globals: {
|
|
11
|
-
...globals.node,
|
|
12
|
-
...globals.browser,
|
|
13
|
-
...globals.es2025,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
rules: {
|
|
17
|
-
quotes: ['error', 'single'],
|
|
18
|
-
'jsx-quotes': ['error', 'prefer-single'],
|
|
19
|
-
'quote-props': ['error', 'as-needed'],
|
|
20
|
-
semi: ['error', 'never'],
|
|
21
|
-
indent: ['error', 2, { SwitchCase: 1, offsetTernaryExpressions: true }],
|
|
22
|
-
'max-len': ['error', 120],
|
|
23
|
-
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0, maxBOF: 0 }],
|
|
24
|
-
'comma-dangle': ['error', 'always-multiline'],
|
|
25
|
-
'comma-spacing': ['error', { before: false, after: true }],
|
|
26
|
-
'comma-style': ['error', 'last'],
|
|
27
|
-
'key-spacing': 'error',
|
|
28
|
-
'keyword-spacing': ['error', { before: true, after: true }],
|
|
29
|
-
'object-curly-spacing': ['error', 'always'],
|
|
30
|
-
'array-bracket-spacing': ['error', 'never'],
|
|
31
|
-
'computed-property-spacing': ['error', 'never', { enforceForClassMembers: true }],
|
|
32
|
-
'arrow-spacing': 'error',
|
|
33
|
-
'switch-colon-spacing': ['error', { after: true, before: false }],
|
|
34
|
-
'space-in-parens': ['error', 'never'],
|
|
35
|
-
'space-before-function-paren': [
|
|
36
|
-
'error',
|
|
37
|
-
{
|
|
38
|
-
anonymous: 'never',
|
|
39
|
-
named: 'never',
|
|
40
|
-
asyncArrow: 'always',
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
'space-before-blocks': ['error', 'always'],
|
|
44
|
-
'no-constant-condition': ['error', { checkLoops: false }],
|
|
45
|
-
'no-trailing-spaces': 'error',
|
|
46
|
-
'no-multi-spaces': 'error',
|
|
47
|
-
'eol-last': 'error',
|
|
48
|
-
'arrow-parens': 'error',
|
|
49
|
-
'no-useless-rename': 'error',
|
|
50
|
-
'no-var': 'error',
|
|
51
|
-
'prefer-const': 'error',
|
|
52
|
-
'no-new-object': 'error',
|
|
53
|
-
'object-shorthand': 'error',
|
|
54
|
-
'prefer-object-spread': 'error',
|
|
55
|
-
'no-array-constructor': 'error',
|
|
56
|
-
'array-callback-return': ['error', { checkForEach: true }],
|
|
57
|
-
'prefer-destructuring': ['error', { array: false, object: true }, { enforceForRenamedProperties: false }],
|
|
58
|
-
'prefer-template': 'error',
|
|
59
|
-
'template-curly-spacing': ['error', 'never'],
|
|
60
|
-
'no-eval': 'error',
|
|
61
|
-
'wrap-iife': ['error', 'inside', { functionPrototypeMethods: true }],
|
|
62
|
-
'no-loop-func': 'error',
|
|
63
|
-
'prefer-rest-params': 'error',
|
|
64
|
-
'default-param-last': 'error',
|
|
65
|
-
'no-new-func': 'error',
|
|
66
|
-
'no-param-reassign': ['error', { props: true }],
|
|
67
|
-
'prefer-spread': 'error',
|
|
68
|
-
'space-infix-ops': ['error', { int32Hint: true }],
|
|
69
|
-
'function-paren-newline': ['error', 'multiline-arguments'],
|
|
70
|
-
'object-curly-newline': ['error', { consistent: true }],
|
|
71
|
-
'prefer-arrow-callback': 'error',
|
|
72
|
-
'no-empty-function': 'error',
|
|
73
|
-
'no-useless-constructor': 'error',
|
|
74
|
-
'dot-notation': 'error',
|
|
75
|
-
'one-var': ['error', 'never'],
|
|
76
|
-
'no-multi-assign': 'error',
|
|
77
|
-
'operator-linebreak': [
|
|
78
|
-
'error',
|
|
79
|
-
'before',
|
|
80
|
-
{
|
|
81
|
-
overrides: { '=': 'after' },
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
eqeqeq: 'error',
|
|
85
|
-
'no-unneeded-ternary': ['error', { defaultAssignment: false }],
|
|
86
|
-
'no-nested-ternary': 'error',
|
|
87
|
-
'no-mixed-operators': 'error',
|
|
88
|
-
'brace-style': ['error', '1tbs'],
|
|
89
|
-
'spaced-comment': [
|
|
90
|
-
'error',
|
|
91
|
-
'always',
|
|
92
|
-
{
|
|
93
|
-
markers: ['/', '!', '?'],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 2 }],
|
|
97
|
-
'no-whitespace-before-property': 'error',
|
|
98
|
-
'padded-blocks': ['error', 'never'],
|
|
99
|
-
'block-spacing': ['error', 'always'],
|
|
100
|
-
'func-call-spacing': ['error', 'never'],
|
|
101
|
-
'no-new-wrappers': 'error',
|
|
102
|
-
radix: ['error', 'as-needed'],
|
|
103
|
-
'id-length': [
|
|
104
|
-
'error',
|
|
105
|
-
{
|
|
106
|
-
min: 2,
|
|
107
|
-
exceptions: ['_', 'i', 'e'],
|
|
108
|
-
exceptionPatterns: ['[x-z]'],
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
'new-cap': 'error',
|
|
112
|
-
'no-restricted-globals': [
|
|
113
|
-
'error',
|
|
114
|
-
{
|
|
115
|
-
name: 'isNaN',
|
|
116
|
-
message: 'Use Number.isNaN instead.',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'isFinite',
|
|
120
|
-
message: 'Use Number.isFinite instead.',
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
'sort-imports': [
|
|
124
|
-
'error',
|
|
125
|
-
{
|
|
126
|
-
ignoreCase: true,
|
|
127
|
-
ignoreDeclarationSort: true,
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
'no-console': 'warn',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
];
|
|
134
|
-
//# sourceMappingURL=base.js.map
|
package/dist/configs/base.js.map
DELETED
|
@@ -1 +0,0 @@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CAAC,OAAO,EAAE,OAAO,CAAC;YACnC,eAAe,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YACpC,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YACvC,iBAAiB,EAAE,OAAO;YAC1B,KAAK,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;YAC7B,WAAW,EAAE;gBACX,OAAO;gBACP;oBACE,GAAG,EAAE,CAAC;oBACN,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;oBAC3B,iBAAiB,EAAE,CAAC,OAAO,CAAC;iBAC7B;aACF;YACD,SAAS,EAAE,OAAO;YAClB,uBAAuB,EAAE;gBACvB,OAAO;gBACP;oBACE,IAAI,EAAE,OAAO;oBACb,OAAO,EAAE,2BAA2B;iBACrC;gBACD;oBACE,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE,8BAA8B;iBACxC;aACF;YACD,cAAc,EAAE;gBACd,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;oBAChB,qBAAqB,EAAE,IAAI;iBAC5B;aACF;YACD,YAAY,EAAE,MAAM;SACrB;KACF;CACwB,CAAA"}
|
package/dist/configs/import.d.ts
DELETED
package/dist/configs/import.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { fixupPluginRules } from '@eslint/compat';
|
|
2
|
-
// @ts-expect-error Could not find a declaration file for module 'eslint-plugin-import'
|
|
3
|
-
import eslintPluginImport from 'eslint-plugin-import';
|
|
4
|
-
import { compat } from '../utils/compat.js';
|
|
5
|
-
export default [
|
|
6
|
-
...compat.extends('plugin:import/typescript'),
|
|
7
|
-
{
|
|
8
|
-
name: '@aliexme/eslint-config/import',
|
|
9
|
-
plugins: {
|
|
10
|
-
import: fixupPluginRules(eslintPluginImport),
|
|
11
|
-
},
|
|
12
|
-
settings: {
|
|
13
|
-
'import/resolver': {
|
|
14
|
-
node: {
|
|
15
|
-
extensions: ['.js', '.cjs', '.mjs', '.jsx', '.ts', '.tsx', '.vue'],
|
|
16
|
-
moduleDirectory: ['src/', 'node_modules'],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
'import/ignore': ['node_modules'],
|
|
20
|
-
},
|
|
21
|
-
rules: {
|
|
22
|
-
'import/no-useless-path-segments': ['error', { noUselessIndex: false }],
|
|
23
|
-
'import/order': [
|
|
24
|
-
'error',
|
|
25
|
-
{
|
|
26
|
-
groups: [['builtin', 'external'], 'internal', ['parent', 'sibling'], 'index', 'object'],
|
|
27
|
-
pathGroups: [
|
|
28
|
-
{
|
|
29
|
-
pattern: '@aliexme/**',
|
|
30
|
-
group: 'external',
|
|
31
|
-
position: 'after',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
// Nuxt imports
|
|
35
|
-
pattern: '#{app,components,imports}',
|
|
36
|
-
group: 'external',
|
|
37
|
-
position: 'after',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
pattern: './{styles,*.styles,*.css,*.scss}',
|
|
41
|
-
group: 'internal',
|
|
42
|
-
position: 'before',
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
pathGroupsExcludedImportTypes: ['@aliexme'],
|
|
46
|
-
'newlines-between': 'always',
|
|
47
|
-
warnOnUnassignedImports: true,
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
'import/no-duplicates': ['error', { 'prefer-inline': true }],
|
|
51
|
-
'import/no-self-import': 'error',
|
|
52
|
-
'import/no-mutable-exports': 'error',
|
|
53
|
-
'import/first': 'error',
|
|
54
|
-
'import/newline-after-import': 'error',
|
|
55
|
-
'import/namespace': 'off',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
//# sourceMappingURL=import.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../src/configs/import.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,uFAA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,CAAC,OAAO,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;YAC5D,uBAAuB,EAAE,OAAO;YAChC,2BAA2B,EAAE,OAAO;YACpC,cAAc,EAAE,OAAO;YACvB,6BAA6B,EAAE,OAAO;YACtC,kBAAkB,EAAE,KAAK;SAC1B;KACF;CACwB,CAAA"}
|
package/dist/configs/prettier.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
2
|
-
export default [
|
|
3
|
-
eslintPluginPrettierRecommended,
|
|
4
|
-
{
|
|
5
|
-
rules: {
|
|
6
|
-
// Disable @stylistic rules
|
|
7
|
-
'@stylistic/block-spacing': 'off',
|
|
8
|
-
'@stylistic/brace-style': 'off',
|
|
9
|
-
'@stylistic/comma-dangle': 'off',
|
|
10
|
-
'@stylistic/comma-spacing': 'off',
|
|
11
|
-
'@stylistic/func-call-spacing': 'off',
|
|
12
|
-
'@stylistic/function-paren-newline': 'off',
|
|
13
|
-
'@stylistic/indent': 'off',
|
|
14
|
-
'@stylistic/jsx-child-element-spacing': 'off',
|
|
15
|
-
'@stylistic/jsx-closing-bracket-location': 'off',
|
|
16
|
-
'@stylistic/jsx-closing-tag-location': 'off',
|
|
17
|
-
'@stylistic/jsx-curly-newline': 'off',
|
|
18
|
-
'@stylistic/jsx-curly-spacing': 'off',
|
|
19
|
-
'@stylistic/jsx-equals-spacing': 'off',
|
|
20
|
-
'@stylistic/jsx-first-prop-new-line': 'off',
|
|
21
|
-
'@stylistic/jsx-indent': 'off',
|
|
22
|
-
'@stylistic/jsx-indent-props': 'off',
|
|
23
|
-
'@stylistic/jsx-max-props-per-line': 'off',
|
|
24
|
-
'@stylistic/jsx-newline': 'off',
|
|
25
|
-
'@stylistic/jsx-one-expression-per-line': 'off',
|
|
26
|
-
'@stylistic/jsx-props-no-multi-spaces': 'off',
|
|
27
|
-
'@stylistic/jsx-tag-spacing': 'off',
|
|
28
|
-
'@stylistic/jsx-wrap-multilines': 'off',
|
|
29
|
-
'@stylistic/key-spacing': 'off',
|
|
30
|
-
'@stylistic/keyword-spacing': 'off',
|
|
31
|
-
'@stylistic/lines-around-comment': 'off',
|
|
32
|
-
'@stylistic/max-len': 'off',
|
|
33
|
-
'@stylistic/member-delimiter-style': 'off',
|
|
34
|
-
'@stylistic/no-extra-parens': 'off',
|
|
35
|
-
'@stylistic/no-extra-semi': 'off',
|
|
36
|
-
'@stylistic/object-curly-spacing': 'off',
|
|
37
|
-
'@stylistic/operator-linebreak': 'off',
|
|
38
|
-
'@stylistic/quotes': 'off',
|
|
39
|
-
'@stylistic/semi': 'off',
|
|
40
|
-
'@stylistic/space-before-blocks': 'off',
|
|
41
|
-
'@stylistic/space-before-function-paren': 'off',
|
|
42
|
-
'@stylistic/space-infix-ops': 'off',
|
|
43
|
-
'@stylistic/type-annotation-spacing': 'off',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
];
|
|
47
|
-
//# sourceMappingURL=prettier.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.js","sourceRoot":"","sources":["../../src/configs/prettier.ts"],"names":[],"mappings":"AACA,OAAO,+BAA+B,MAAM,oCAAoC,CAAA;AAEhF,eAAe;IACb,+BAA+B;IAC/B;QACE,KAAK,EAAE;YACL,2BAA2B;YAC3B,0BAA0B,EAAE,KAAK;YACjC,wBAAwB,EAAE,KAAK;YAC/B,yBAAyB,EAAE,KAAK;YAChC,0BAA0B,EAAE,KAAK;YACjC,8BAA8B,EAAE,KAAK;YACrC,mCAAmC,EAAE,KAAK;YAC1C,mBAAmB,EAAE,KAAK;YAC1B,sCAAsC,EAAE,KAAK;YAC7C,yCAAyC,EAAE,KAAK;YAChD,qCAAqC,EAAE,KAAK;YAC5C,8BAA8B,EAAE,KAAK;YACrC,8BAA8B,EAAE,KAAK;YACrC,+BAA+B,EAAE,KAAK;YACtC,oCAAoC,EAAE,KAAK;YAC3C,uBAAuB,EAAE,KAAK;YAC9B,6BAA6B,EAAE,KAAK;YACpC,mCAAmC,EAAE,KAAK;YAC1C,wBAAwB,EAAE,KAAK;YAC/B,wCAAwC,EAAE,KAAK;YAC/C,sCAAsC,EAAE,KAAK;YAC7C,4BAA4B,EAAE,KAAK;YACnC,gCAAgC,EAAE,KAAK;YACvC,wBAAwB,EAAE,KAAK;YAC/B,4BAA4B,EAAE,KAAK;YACnC,iCAAiC,EAAE,KAAK;YACxC,oBAAoB,EAAE,KAAK;YAC3B,mCAAmC,EAAE,KAAK;YAC1C,4BAA4B,EAAE,KAAK;YACnC,0BAA0B,EAAE,KAAK;YACjC,iCAAiC,EAAE,KAAK;YACxC,+BAA+B,EAAE,KAAK;YACtC,mBAAmB,EAAE,KAAK;YAC1B,iBAAiB,EAAE,KAAK;YACxB,gCAAgC,EAAE,KAAK;YACvC,wCAAwC,EAAE,KAAK;YAC/C,4BAA4B,EAAE,KAAK;YACnC,oCAAoC,EAAE,KAAK;SAC5C;KACF;CACwB,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
plugins: {
|
|
3
|
-
'react-native': import("eslint").ESLint.Plugin;
|
|
4
|
-
};
|
|
5
|
-
rules: {
|
|
6
|
-
'react-native/no-unused-styles': "error";
|
|
7
|
-
'react-native/no-inline-styles': "error";
|
|
8
|
-
'react-native/no-raw-text': ["error", {
|
|
9
|
-
skip: string[];
|
|
10
|
-
}];
|
|
11
|
-
'react-native/no-single-element-style-arrays': "error";
|
|
12
|
-
};
|
|
13
|
-
}[];
|
|
14
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { fixupPluginRules } from '@eslint/compat';
|
|
2
|
-
// @ts-expect-error Could not find a declaration file for module 'eslint-plugin-react-native'
|
|
3
|
-
import eslintPluginReactNative from 'eslint-plugin-react-native';
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
plugins: {
|
|
7
|
-
'react-native': fixupPluginRules(eslintPluginReactNative),
|
|
8
|
-
},
|
|
9
|
-
rules: {
|
|
10
|
-
'react-native/no-unused-styles': 'error',
|
|
11
|
-
'react-native/no-inline-styles': 'error',
|
|
12
|
-
'react-native/no-raw-text': ['error', { skip: ['Text', 'Button'] }],
|
|
13
|
-
'react-native/no-single-element-style-arrays': 'error',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
//# sourceMappingURL=react-native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-native.js","sourceRoot":"","sources":["../../src/configs/react-native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,6FAA6F;AAC7F,OAAO,uBAAuB,MAAM,4BAA4B,CAAA;AAEhE,eAAe;IACb;QACE,OAAO,EAAE;YACP,cAAc,EAAE,gBAAgB,CAAC,uBAAuB,CAAC;SAC1D;QACD,KAAK,EAAE;YACL,+BAA+B,EAAE,OAAO;YACxC,+BAA+B,EAAE,OAAO;YACxC,0BAA0B,EAAE,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC;YACnE,6CAA6C,EAAE,OAAO;SACvD;KACF;CACwB,CAAA"}
|
package/dist/configs/react.d.ts
DELETED
package/dist/configs/react.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { fixupPluginRules } from '@eslint/compat';
|
|
2
|
-
// @ts-expect-error Could not find a declaration file for module 'eslint-plugin-react/configs/recommended.js'
|
|
3
|
-
import eslintPluginReactRecommended from 'eslint-plugin-react/configs/recommended.js';
|
|
4
|
-
// @ts-expect-error Could not find a declaration file for module 'eslint-plugin-react/configs/jsx-runtime.js'
|
|
5
|
-
import eslintPluginReactJsxRuntime from 'eslint-plugin-react/configs/jsx-runtime.js';
|
|
6
|
-
// @ts-expect-error Could not find a declaration file for module 'eslint-plugin-react-hooks'
|
|
7
|
-
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
|
8
|
-
export default [
|
|
9
|
-
eslintPluginReactRecommended,
|
|
10
|
-
eslintPluginReactJsxRuntime,
|
|
11
|
-
{
|
|
12
|
-
settings: {
|
|
13
|
-
react: {
|
|
14
|
-
version: 'detect',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
rules: {
|
|
18
|
-
'react/jsx-tag-spacing': [
|
|
19
|
-
'error',
|
|
20
|
-
{
|
|
21
|
-
closingSlash: 'never',
|
|
22
|
-
beforeSelfClosing: 'proportional-always',
|
|
23
|
-
afterOpening: 'never',
|
|
24
|
-
beforeClosing: 'never',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
'react/jsx-max-props-per-line': ['error', { when: 'multiline' }],
|
|
28
|
-
'react/jsx-curly-spacing': ['error', { when: 'never', children: true }],
|
|
29
|
-
'react/jsx-curly-brace-presence': ['error', 'never'],
|
|
30
|
-
'react/jsx-closing-bracket-location': 'error',
|
|
31
|
-
'react/self-closing-comp': 'error',
|
|
32
|
-
'react/no-unused-prop-types': 'error',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
files: ['**/*.{tsx}'],
|
|
37
|
-
rules: {
|
|
38
|
-
'react/prop-types': 'off',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
plugins: {
|
|
43
|
-
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
|
|
44
|
-
},
|
|
45
|
-
rules: {
|
|
46
|
-
...eslintPluginReactHooks.configs.recommended.rules,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
//# sourceMappingURL=react.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,6GAA6G;AAC7G,OAAO,4BAA4B,MAAM,4CAA4C,CAAA;AACrF,6GAA6G;AAC7G,OAAO,2BAA2B,MAAM,4CAA4C,CAAA;AACpF,4FAA4F;AAC5F,OAAO,sBAAsB,MAAM,2BAA2B,CAAA;AAE9D,eAAe;IACb,4BAA4B;IAC5B,2BAA2B;IAC3B;QACE,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,OAAO,EAAE,QAAQ;aAClB;SACF;QACD,KAAK,EAAE;YACL,uBAAuB,EAAE;gBACvB,OAAO;gBACP;oBACE,YAAY,EAAE,OAAO;oBACrB,iBAAiB,EAAE,qBAAqB;oBACxC,YAAY,EAAE,OAAO;oBACrB,aAAa,EAAE,OAAO;iBACvB;aACF;YACD,8BAA8B,EAAE,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;YAChE,yBAAyB,EAAE,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACvE,gCAAgC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YACpD,oCAAoC,EAAE,OAAO;YAC7C,yBAAyB,EAAE,OAAO;YAClC,4BAA4B,EAAE,OAAO;SACtC;KACF;IACD;QACE,KAAK,EAAE,CAAC,YAAY,CAAC;QACrB,KAAK,EAAE;YACL,kBAAkB,EAAE,KAAK;SAC1B;KACF;IACD;QACE,OAAO,EAAE;YACP,aAAa,EAAE,gBAAgB,CAAC,sBAAsB,CAAC;SACxD;QACD,KAAK,EAAE;YACL,GAAG,sBAAsB,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK;SACpD;KACF;CACwB,CAAA"}
|