@aliexme/eslint-config 1.2.7 → 2.0.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 (47) hide show
  1. package/configs/base.js +135 -0
  2. package/configs/import.js +61 -0
  3. package/configs/prettier.js +48 -0
  4. package/configs/react-native.js +18 -0
  5. package/configs/react.js +51 -0
  6. package/configs/recommended.js +7 -0
  7. package/configs/stylistic.js +68 -0
  8. package/configs/typescript.js +41 -0
  9. package/configs/vue.js +19 -0
  10. package/index.js +4 -0
  11. package/package.json +21 -23
  12. package/dist/compat.d.ts +0 -3
  13. package/dist/compat.js +0 -11
  14. package/dist/compat.js.map +0 -1
  15. package/dist/configs/base.d.ts +0 -1342
  16. package/dist/configs/base.js +0 -134
  17. package/dist/configs/base.js.map +0 -1
  18. package/dist/configs/import.d.ts +0 -2
  19. package/dist/configs/import.js +0 -59
  20. package/dist/configs/import.js.map +0 -1
  21. package/dist/configs/prettier.d.ts +0 -3
  22. package/dist/configs/prettier.js +0 -47
  23. package/dist/configs/prettier.js.map +0 -1
  24. package/dist/configs/react-native.d.ts +0 -14
  25. package/dist/configs/react-native.js +0 -17
  26. package/dist/configs/react-native.js.map +0 -1
  27. package/dist/configs/react.d.ts +0 -2
  28. package/dist/configs/react.js +0 -50
  29. package/dist/configs/react.js.map +0 -1
  30. package/dist/configs/recommended.d.ts +0 -1342
  31. package/dist/configs/recommended.js +0 -11
  32. package/dist/configs/recommended.js.map +0 -1
  33. package/dist/configs/stylistic.d.ts +0 -3
  34. package/dist/configs/stylistic.js +0 -66
  35. package/dist/configs/stylistic.js.map +0 -1
  36. package/dist/configs/typescript.d.ts +0 -3
  37. package/dist/configs/typescript.js +0 -39
  38. package/dist/configs/typescript.js.map +0 -1
  39. package/dist/configs/vue.d.ts +0 -2
  40. package/dist/configs/vue.js +0 -18
  41. package/dist/configs/vue.js.map +0 -1
  42. package/dist/index.d.ts +0 -1342
  43. package/dist/index.js +0 -3
  44. package/dist/index.js.map +0 -1
  45. package/dist/utils/compat.d.ts +0 -2
  46. package/dist/utils/compat.js +0 -3
  47. package/dist/utils/compat.js.map +0 -1
@@ -0,0 +1,135 @@
1
+ import eslintJs from '@eslint/js'
2
+ import globals from 'globals'
3
+
4
+ /** @type {import('eslint').Linter.Config[]} */
5
+ export default [
6
+ eslintJs.configs.recommended,
7
+ {
8
+ name: '@aliexme/eslint-config-base',
9
+ languageOptions: {
10
+ ecmaVersion: 'latest',
11
+ sourceType: 'module',
12
+ globals: {
13
+ ...globals.node,
14
+ ...globals.browser,
15
+ ...globals.es2025,
16
+ },
17
+ },
18
+ rules: {
19
+ quotes: ['error', 'single'],
20
+ 'jsx-quotes': ['error', 'prefer-single'],
21
+ 'quote-props': ['error', 'as-needed'],
22
+ semi: ['error', 'never'],
23
+ indent: ['error', 2, { SwitchCase: 1, offsetTernaryExpressions: true }],
24
+ 'max-len': ['error', 120],
25
+ 'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0, maxBOF: 0 }],
26
+ 'comma-dangle': ['error', 'always-multiline'],
27
+ 'comma-spacing': ['error', { before: false, after: true }],
28
+ 'comma-style': ['error', 'last'],
29
+ 'key-spacing': 'error',
30
+ 'keyword-spacing': ['error', { before: true, after: true }],
31
+ 'object-curly-spacing': ['error', 'always'],
32
+ 'array-bracket-spacing': ['error', 'never'],
33
+ 'computed-property-spacing': ['error', 'never', { enforceForClassMembers: true }],
34
+ 'arrow-spacing': 'error',
35
+ 'switch-colon-spacing': ['error', { after: true, before: false }],
36
+ 'space-in-parens': ['error', 'never'],
37
+ 'space-before-function-paren': [
38
+ 'error',
39
+ {
40
+ anonymous: 'never',
41
+ named: 'never',
42
+ asyncArrow: 'always',
43
+ },
44
+ ],
45
+ 'space-before-blocks': ['error', 'always'],
46
+ 'no-constant-condition': ['error', { checkLoops: false }],
47
+ 'no-trailing-spaces': 'error',
48
+ 'no-multi-spaces': 'error',
49
+ 'eol-last': 'error',
50
+ 'arrow-parens': 'error',
51
+ 'no-useless-rename': 'error',
52
+ 'no-var': 'error',
53
+ 'prefer-const': 'error',
54
+ 'no-new-object': 'error',
55
+ 'object-shorthand': 'error',
56
+ 'prefer-object-spread': 'error',
57
+ 'no-array-constructor': 'error',
58
+ 'array-callback-return': ['error', { checkForEach: true }],
59
+ 'prefer-destructuring': ['error', { array: false, object: true }, { enforceForRenamedProperties: false }],
60
+ 'prefer-template': 'error',
61
+ 'template-curly-spacing': ['error', 'never'],
62
+ 'no-eval': 'error',
63
+ 'wrap-iife': ['error', 'inside', { functionPrototypeMethods: true }],
64
+ 'no-loop-func': 'error',
65
+ 'prefer-rest-params': 'error',
66
+ 'default-param-last': 'error',
67
+ 'no-new-func': 'error',
68
+ 'no-param-reassign': ['error', { props: true }],
69
+ 'prefer-spread': 'error',
70
+ 'space-infix-ops': ['error', { int32Hint: true }],
71
+ 'function-paren-newline': ['error', 'multiline-arguments'],
72
+ 'object-curly-newline': ['error', { consistent: true }],
73
+ 'prefer-arrow-callback': 'error',
74
+ 'no-empty-function': 'error',
75
+ 'no-useless-constructor': 'error',
76
+ 'dot-notation': 'error',
77
+ 'one-var': ['error', 'never'],
78
+ 'no-multi-assign': 'error',
79
+ 'operator-linebreak': [
80
+ 'error',
81
+ 'before',
82
+ {
83
+ overrides: { '=': 'after' },
84
+ },
85
+ ],
86
+ eqeqeq: 'error',
87
+ 'no-unneeded-ternary': ['error', { defaultAssignment: false }],
88
+ 'no-nested-ternary': 'error',
89
+ 'no-mixed-operators': 'error',
90
+ 'brace-style': ['error', '1tbs'],
91
+ 'spaced-comment': [
92
+ 'error',
93
+ 'always',
94
+ {
95
+ markers: ['/', '!', '?'],
96
+ },
97
+ ],
98
+ 'newline-per-chained-call': ['error', { ignoreChainWithDepth: 2 }],
99
+ 'no-whitespace-before-property': 'error',
100
+ 'padded-blocks': ['error', 'never'],
101
+ 'block-spacing': ['error', 'always'],
102
+ 'func-call-spacing': ['error', 'never'],
103
+ 'no-new-wrappers': 'error',
104
+ radix: ['error', 'as-needed'],
105
+ 'id-length': [
106
+ 'error',
107
+ {
108
+ min: 2,
109
+ exceptions: ['_', 'i', 'e'],
110
+ exceptionPatterns: ['[x-z]'],
111
+ },
112
+ ],
113
+ 'new-cap': 'error',
114
+ 'no-restricted-globals': [
115
+ 'error',
116
+ {
117
+ name: 'isNaN',
118
+ message: 'Use Number.isNaN instead.',
119
+ },
120
+ {
121
+ name: 'isFinite',
122
+ message: 'Use Number.isFinite instead.',
123
+ },
124
+ ],
125
+ 'sort-imports': [
126
+ 'error',
127
+ {
128
+ ignoreCase: true,
129
+ ignoreDeclarationSort: true,
130
+ },
131
+ ],
132
+ 'no-console': 'warn',
133
+ },
134
+ },
135
+ ]
@@ -0,0 +1,61 @@
1
+ import { FlatCompat } from '@eslint/eslintrc'
2
+ import { fixupPluginRules } from '@eslint/compat'
3
+ // @ts-expect-error Could not find a declaration file for module 'eslint-plugin-import'
4
+ import eslintPluginImport from 'eslint-plugin-import'
5
+
6
+ const compat = new FlatCompat()
7
+
8
+ /** @type {import('eslint').Linter.Config[]} */
9
+ export default [
10
+ ...compat.extends('plugin:import/typescript'),
11
+ {
12
+ plugins: {
13
+ import: fixupPluginRules(eslintPluginImport),
14
+ },
15
+ settings: {
16
+ 'import/resolver': {
17
+ node: {
18
+ extensions: ['.js', '.cjs', '.mjs', '.jsx', '.ts', '.tsx', '.vue'],
19
+ moduleDirectory: ['src/', 'node_modules'],
20
+ },
21
+ },
22
+ 'import/ignore': ['node_modules'],
23
+ },
24
+ rules: {
25
+ 'import/no-useless-path-segments': ['error', { noUselessIndex: false }],
26
+ 'import/order': [
27
+ 'error',
28
+ {
29
+ groups: [['builtin', 'external'], 'internal', ['parent', 'sibling'], 'index', 'object'],
30
+ pathGroups: [
31
+ {
32
+ pattern: '@aliexme/**',
33
+ group: 'external',
34
+ position: 'after',
35
+ },
36
+ {
37
+ // Nuxt imports
38
+ pattern: '#{app,components,imports}',
39
+ group: 'external',
40
+ position: 'after',
41
+ },
42
+ {
43
+ pattern: './{styles,*.styles,*.css,*.scss}',
44
+ group: 'internal',
45
+ position: 'before',
46
+ },
47
+ ],
48
+ pathGroupsExcludedImportTypes: ['@aliexme'],
49
+ 'newlines-between': 'always',
50
+ warnOnUnassignedImports: true,
51
+ },
52
+ ],
53
+ 'import/no-duplicates': ['error', { 'prefer-inline': true }],
54
+ 'import/no-self-import': 'error',
55
+ 'import/no-mutable-exports': 'error',
56
+ 'import/first': 'error',
57
+ 'import/newline-after-import': 'error',
58
+ 'import/namespace': 'off',
59
+ },
60
+ },
61
+ ]
@@ -0,0 +1,48 @@
1
+ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
2
+
3
+ /** @type {import('eslint').Linter.Config[]} */
4
+ export default [
5
+ eslintPluginPrettierRecommended,
6
+ {
7
+ rules: {
8
+ // Disable @stylistic rules
9
+ '@stylistic/block-spacing': 'off',
10
+ '@stylistic/brace-style': 'off',
11
+ '@stylistic/comma-dangle': 'off',
12
+ '@stylistic/comma-spacing': 'off',
13
+ '@stylistic/func-call-spacing': 'off',
14
+ '@stylistic/function-paren-newline': 'off',
15
+ '@stylistic/indent': 'off',
16
+ '@stylistic/jsx-child-element-spacing': 'off',
17
+ '@stylistic/jsx-closing-bracket-location': 'off',
18
+ '@stylistic/jsx-closing-tag-location': 'off',
19
+ '@stylistic/jsx-curly-newline': 'off',
20
+ '@stylistic/jsx-curly-spacing': 'off',
21
+ '@stylistic/jsx-equals-spacing': 'off',
22
+ '@stylistic/jsx-first-prop-new-line': 'off',
23
+ '@stylistic/jsx-indent': 'off',
24
+ '@stylistic/jsx-indent-props': 'off',
25
+ '@stylistic/jsx-max-props-per-line': 'off',
26
+ '@stylistic/jsx-newline': 'off',
27
+ '@stylistic/jsx-one-expression-per-line': 'off',
28
+ '@stylistic/jsx-props-no-multi-spaces': 'off',
29
+ '@stylistic/jsx-tag-spacing': 'off',
30
+ '@stylistic/jsx-wrap-multilines': 'off',
31
+ '@stylistic/key-spacing': 'off',
32
+ '@stylistic/keyword-spacing': 'off',
33
+ '@stylistic/lines-around-comment': 'off',
34
+ '@stylistic/max-len': 'off',
35
+ '@stylistic/member-delimiter-style': 'off',
36
+ '@stylistic/no-extra-parens': 'off',
37
+ '@stylistic/no-extra-semi': 'off',
38
+ '@stylistic/object-curly-spacing': 'off',
39
+ '@stylistic/operator-linebreak': 'off',
40
+ '@stylistic/quotes': 'off',
41
+ '@stylistic/semi': 'off',
42
+ '@stylistic/space-before-blocks': 'off',
43
+ '@stylistic/space-before-function-paren': 'off',
44
+ '@stylistic/space-infix-ops': 'off',
45
+ '@stylistic/type-annotation-spacing': 'off',
46
+ },
47
+ },
48
+ ]
@@ -0,0 +1,18 @@
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
+
5
+ /** @type {import('eslint').Linter.Config[]} */
6
+ export default [
7
+ {
8
+ plugins: {
9
+ 'react-native': fixupPluginRules(eslintPluginReactNative),
10
+ },
11
+ rules: {
12
+ 'react-native/no-unused-styles': 'error',
13
+ 'react-native/no-inline-styles': 'error',
14
+ 'react-native/no-raw-text': ['error', { skip: ['Text', 'Button'] }],
15
+ 'react-native/no-single-element-style-arrays': 'error',
16
+ },
17
+ },
18
+ ]
@@ -0,0 +1,51 @@
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
+
9
+ /** @type {import('eslint').Linter.Config[]} */
10
+ export default [
11
+ eslintPluginReactRecommended,
12
+ eslintPluginReactJsxRuntime,
13
+ {
14
+ settings: {
15
+ react: {
16
+ version: 'detect',
17
+ },
18
+ },
19
+ rules: {
20
+ 'react/jsx-tag-spacing': [
21
+ 'error',
22
+ {
23
+ closingSlash: 'never',
24
+ beforeSelfClosing: 'proportional-always',
25
+ afterOpening: 'never',
26
+ beforeClosing: 'never',
27
+ },
28
+ ],
29
+ 'react/jsx-max-props-per-line': ['error', { when: 'multiline' }],
30
+ 'react/jsx-curly-spacing': ['error', { when: 'never', children: true }],
31
+ 'react/jsx-curly-brace-presence': ['error', 'never'],
32
+ 'react/jsx-closing-bracket-location': 'error',
33
+ 'react/self-closing-comp': 'error',
34
+ 'react/no-unused-prop-types': 'error',
35
+ },
36
+ },
37
+ {
38
+ files: ['**/*.{tsx}'],
39
+ rules: {
40
+ 'react/prop-types': 'off',
41
+ },
42
+ },
43
+ {
44
+ plugins: {
45
+ 'react-hooks': fixupPluginRules(eslintPluginReactHooks),
46
+ },
47
+ rules: {
48
+ ...eslintPluginReactHooks.configs.recommended.rules,
49
+ },
50
+ },
51
+ ]
@@ -0,0 +1,7 @@
1
+ import baseConfigArray from './base.js'
2
+ import typescriptConfigArray from './typescript.js'
3
+ import stylisticConfigArray from './stylistic.js'
4
+ import importConfigArray from './import.js'
5
+
6
+ /** @type {import('eslint').Linter.Config[]} */
7
+ export default [...baseConfigArray, ...typescriptConfigArray, ...stylisticConfigArray, ...importConfigArray]
@@ -0,0 +1,68 @@
1
+ import stylistic from '@stylistic/eslint-plugin'
2
+
3
+ /** @type {import('eslint').Linter.Config[]} */
4
+ export default [
5
+ stylistic.configs.customize({
6
+ flat: true,
7
+ jsx: true,
8
+ arrowParens: true,
9
+ blockSpacing: true,
10
+ braceStyle: '1tbs',
11
+ commaDangle: 'always-multiline',
12
+ indent: 2,
13
+ quoteProps: 'as-needed',
14
+ quotes: 'single',
15
+ semi: false,
16
+ }),
17
+ {
18
+ rules: {
19
+ '@stylistic/array-bracket-newline': ['error', { multiline: true }],
20
+ '@stylistic/array-element-newline': [
21
+ 'error',
22
+ {
23
+ consistent: true,
24
+ multiline: true,
25
+ },
26
+ ],
27
+ '@stylistic/function-paren-newline': ['error', 'multiline-arguments'],
28
+ '@stylistic/max-len': [
29
+ 'error',
30
+ {
31
+ code: 120,
32
+ ignoreComments: true,
33
+ ignoreUrls: true,
34
+ ignoreStrings: true,
35
+ ignoreTemplateLiterals: true,
36
+ ignoreRegExpLiterals: true,
37
+ },
38
+ ],
39
+ '@stylistic/member-delimiter-style': [
40
+ 'error',
41
+ {
42
+ multiline: { delimiter: 'none' },
43
+ singleline: { delimiter: 'semi' },
44
+ },
45
+ ],
46
+ '@stylistic/object-curly-newline': [
47
+ 'error',
48
+ {
49
+ consistent: true,
50
+ multiline: true,
51
+ },
52
+ ],
53
+ '@stylistic/object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
54
+
55
+ // JSX
56
+ '@stylistic/jsx-curly-spacing': ['error', { when: 'never', children: true }],
57
+ '@stylistic/jsx-tag-spacing': [
58
+ 'error',
59
+ {
60
+ closingSlash: 'never',
61
+ beforeSelfClosing: 'proportional-always',
62
+ afterOpening: 'never',
63
+ beforeClosing: 'never',
64
+ },
65
+ ],
66
+ },
67
+ },
68
+ ]
@@ -0,0 +1,41 @@
1
+ import tseslint from 'typescript-eslint'
2
+
3
+ export default /** @type {import('eslint').Linter.Config[]} */ (
4
+ tseslint.config(...tseslint.configs.strict, ...tseslint.configs.stylistic, {
5
+ name: '@aliexme/eslint-config/typescript',
6
+ languageOptions: {
7
+ parserOptions: {
8
+ parser: tseslint.parser,
9
+ projectService: true,
10
+ },
11
+ },
12
+ rules: {
13
+ '@typescript-eslint/naming-convention': [
14
+ 'error',
15
+ {
16
+ selector: 'enumMember',
17
+ format: ['UPPER_CASE', 'PascalCase'],
18
+ },
19
+ ],
20
+ '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
21
+ '@typescript-eslint/member-delimiter-style': [
22
+ 'error',
23
+ {
24
+ multiline: { delimiter: 'none' },
25
+ singleline: { delimiter: 'semi' },
26
+ },
27
+ ],
28
+ '@typescript-eslint/no-empty-object-type': [
29
+ 'error',
30
+ {
31
+ allowInterfaces: 'with-single-extends',
32
+ },
33
+ ],
34
+ '@typescript-eslint/consistent-type-imports': [
35
+ 'error',
36
+ { prefer: 'type-imports', fixStyle: 'inline-type-imports' },
37
+ ],
38
+ '@typescript-eslint/type-annotation-spacing': 'error',
39
+ },
40
+ })
41
+ )
package/configs/vue.js ADDED
@@ -0,0 +1,19 @@
1
+ // @ts-expect-error Could not find a declaration file for module 'eslint-plugin-vue'
2
+ import eslintPluginVue from 'eslint-plugin-vue'
3
+
4
+ /** @type {import('eslint').Linter.Config[]} */
5
+ export default [
6
+ ...eslintPluginVue.configs['flat/recommended'],
7
+ {
8
+ languageOptions: {
9
+ parserOptions: {
10
+ extraFileExtensions: ['.vue'],
11
+ },
12
+ },
13
+ rules: {
14
+ 'vue/no-undef-components': 'error',
15
+ 'vue/prop-name-casing': 'off',
16
+ 'vue/no-reserved-props': 'off',
17
+ },
18
+ },
19
+ ]
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import recommendedConfigArray from './configs/recommended.js'
2
+
3
+ /** @type {import('eslint').Linter.Config[]} */
4
+ export default recommendedConfigArray
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliexme/eslint-config",
3
- "version": "1.2.7",
3
+ "version": "2.0.0",
4
4
  "description": "Set of configs for ESLint",
5
5
  "private": false,
6
6
  "author": "Alexander Smirnov <al.smirnov996@gmail.com>",
@@ -17,35 +17,33 @@
17
17
  ],
18
18
  "type": "module",
19
19
  "files": [
20
- "dist"
20
+ "index.js",
21
+ "configs"
21
22
  ],
22
23
  "exports": {
23
- ".": "./dist/index.js",
24
- "./base": "./dist/configs/base.js",
25
- "./typescript": "./dist/configs/typescript.js",
26
- "./stylistic": "./dist/configs/stylistic.js",
27
- "./import": "./dist/configs/import.js",
28
- "./react": "./dist/configs/react.js",
29
- "./react-native": "./dist/configs/react-native.js",
30
- "./vue": "./dist/configs/vue.js",
31
- "./prettier": "./dist/configs/prettier.js",
32
- "./recommended": "./dist/configs/recommended.js"
24
+ ".": "./index.js",
25
+ "./base": "./configs/base.js",
26
+ "./typescript": "./configs/typescript.js",
27
+ "./stylistic": "./configs/stylistic.js",
28
+ "./import": "./configs/import.js",
29
+ "./react": "./configs/react.js",
30
+ "./react-native": "./configs/react-native.js",
31
+ "./vue": "./configs/vue.js",
32
+ "./prettier": "./configs/prettier.js",
33
+ "./recommended": "./configs/recommended.js"
33
34
  },
35
+ "sideEffects": false,
34
36
  "publishConfig": {
35
37
  "access": "public"
36
38
  },
37
- "scripts": {
38
- "build": "tsc -p ./tsconfig.build.json",
39
- "ts:check": "tsc --noEmit"
40
- },
41
39
  "dependencies": {
42
- "@eslint/compat": "^1.1.1",
40
+ "@eslint/compat": "^1.2.0",
43
41
  "@eslint/eslintrc": "^3.1.0",
44
- "@eslint/js": "^9.11.1",
45
- "@stylistic/eslint-plugin": "^2.8.0",
46
- "eslint-plugin-import": "^2.30.0",
47
- "globals": "^15.9.0",
48
- "typescript-eslint": "^8.7.0"
42
+ "@eslint/js": "^9.12.0",
43
+ "@stylistic/eslint-plugin": "^2.9.0",
44
+ "eslint-plugin-import": "^2.31.0",
45
+ "globals": "^15.10.0",
46
+ "typescript-eslint": "^8.8.0"
49
47
  },
50
48
  "peerDependencies": {
51
49
  "eslint": "^9.0.0",
@@ -80,5 +78,5 @@
80
78
  "optional": true
81
79
  }
82
80
  },
83
- "gitHead": "2106876d0d328dd81f7ff58c6e558465d2ca8804"
81
+ "gitHead": "b8a504e726d4d9ee140e45a422168e491bf6f984"
84
82
  }
package/dist/compat.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { FlatCompat } from '@eslint/eslintrc';
2
- export declare const compat: FlatCompat;
3
- export declare const legacyPlugin: (name: string, alias?: string) => import("eslint").ESLint.Plugin;
package/dist/compat.js DELETED
@@ -1,11 +0,0 @@
1
- import { FlatCompat } from '@eslint/eslintrc';
2
- import { fixupPluginRules } from '@eslint/compat';
3
- export const compat = new FlatCompat();
4
- export const legacyPlugin = (name, alias = name) => {
5
- const plugin = compat.plugins(name)[0]?.plugins?.[alias];
6
- if (!plugin) {
7
- throw new Error(`Unable to resolve plugin ${name} and/or alias ${alias}`);
8
- }
9
- return fixupPluginRules(plugin);
10
- };
11
- //# sourceMappingURL=compat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compat.js","sourceRoot":"","sources":["../src/compat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAA;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,KAAK,GAAG,IAAI,EAAE,EAAE;IACzD,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;IAExD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAI,iBAAiB,KAAK,EAAE,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAA;AACjC,CAAC,CAAA"}