@alexey-ryabov/style-guide 1.0.0-canary.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 (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +19 -0
  3. package/dist/eslint/configs/base.d.ts +5 -0
  4. package/dist/eslint/configs/base.js +25 -0
  5. package/dist/eslint/configs/react.d.ts +2 -0
  6. package/dist/eslint/configs/react.js +14 -0
  7. package/dist/eslint/configs/storybook.d.ts +2 -0
  8. package/dist/eslint/configs/storybook.js +5 -0
  9. package/dist/eslint/constants.d.ts +2 -0
  10. package/dist/eslint/constants.js +2 -0
  11. package/dist/eslint/rules/comments.d.ts +3 -0
  12. package/dist/eslint/rules/comments.js +19 -0
  13. package/dist/eslint/rules/react.d.ts +3 -0
  14. package/dist/eslint/rules/react.js +16 -0
  15. package/dist/eslint/utils.d.ts +1 -0
  16. package/dist/eslint/utils.js +1 -0
  17. package/dist/oxlint/configs/base.d.ts +24 -0
  18. package/dist/oxlint/configs/base.js +43 -0
  19. package/dist/oxlint/configs/browser.d.ts +29 -0
  20. package/dist/oxlint/configs/browser.js +8 -0
  21. package/dist/oxlint/configs/next.d.ts +17 -0
  22. package/dist/oxlint/configs/next.js +10 -0
  23. package/dist/oxlint/configs/node.d.ts +29 -0
  24. package/dist/oxlint/configs/node.js +8 -0
  25. package/dist/oxlint/configs/react.d.ts +11 -0
  26. package/dist/oxlint/configs/react.js +9 -0
  27. package/dist/oxlint/configs/vitest.d.ts +4 -0
  28. package/dist/oxlint/configs/vitest.js +4 -0
  29. package/dist/oxlint/constants.d.ts +2 -0
  30. package/dist/oxlint/constants.js +2 -0
  31. package/dist/oxlint/rules/import.d.ts +3 -0
  32. package/dist/oxlint/rules/import.js +11 -0
  33. package/dist/oxlint/rules/next.d.ts +3 -0
  34. package/dist/oxlint/rules/next.js +15 -0
  35. package/dist/oxlint/rules/oxc.d.ts +3 -0
  36. package/dist/oxlint/rules/oxc.js +4 -0
  37. package/dist/oxlint/rules/react.d.ts +3 -0
  38. package/dist/oxlint/rules/react.js +13 -0
  39. package/dist/oxlint/rules/standard.d.ts +3 -0
  40. package/dist/oxlint/rules/standard.js +77 -0
  41. package/dist/oxlint/rules/stylistic.d.ts +3 -0
  42. package/dist/oxlint/rules/stylistic.js +10 -0
  43. package/dist/oxlint/rules/tsdoc.d.ts +3 -0
  44. package/dist/oxlint/rules/tsdoc.js +3 -0
  45. package/dist/oxlint/rules/typescript.d.ts +3 -0
  46. package/dist/oxlint/rules/typescript.js +100 -0
  47. package/dist/oxlint/rules/unicorn.d.ts +3 -0
  48. package/dist/oxlint/rules/unicorn.js +102 -0
  49. package/oxlint/configs/base.ts +45 -0
  50. package/oxlint/configs/browser.ts +10 -0
  51. package/oxlint/configs/next.ts +12 -0
  52. package/oxlint/configs/node.ts +10 -0
  53. package/oxlint/configs/react.ts +11 -0
  54. package/oxlint/configs/vitest.ts +5 -0
  55. package/oxlint/constants.ts +3 -0
  56. package/oxlint/rules/import.ts +13 -0
  57. package/oxlint/rules/next.ts +18 -0
  58. package/oxlint/rules/oxc.ts +6 -0
  59. package/oxlint/rules/react.ts +15 -0
  60. package/oxlint/rules/standard.ts +79 -0
  61. package/oxlint/rules/stylistic.ts +12 -0
  62. package/oxlint/rules/tsdoc.ts +5 -0
  63. package/oxlint/rules/typescript.ts +103 -0
  64. package/oxlint/rules/unicorn.ts +104 -0
  65. package/package.json +105 -0
  66. package/prettier/index.d.ts +4 -0
  67. package/prettier/index.js +18 -0
  68. package/typescript/tsconfig.base.json +13 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 datarockets
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Style Guide
2
+
3
+ This repository is the home of my personal style guide, which includes configs
4
+ for popular linting and styling tools.
5
+
6
+ The following configs are available, and are designed to be used together.
7
+
8
+ - [Prettier](#prettier)
9
+ - [ESLint](#eslint)
10
+ - [TypeScript](#typescript-1)
11
+
12
+ ## Contributing
13
+
14
+ Please read [contributing](./CONTRIBUTING.md) guide before creating a pull
15
+ request.
16
+
17
+ ## Acknowledge
18
+
19
+ Inspired by https://github.com/vercel/style-guide.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The base ESLint config which is shared among all environments.
3
+ */
4
+ declare const _default: import("eslint/config").Config[];
5
+ export default _default;
@@ -0,0 +1,25 @@
1
+ // oxlint-disable typescript/no-unsafe-member-access, typescript/no-unsafe-argument
2
+ import { defineConfig } from 'eslint/config';
3
+ import globals from 'globals';
4
+ import * as tseslint from 'typescript-eslint';
5
+ import comments from '@eslint-community/eslint-plugin-eslint-comments/configs';
6
+ import commentsRules from '../rules/comments.js';
7
+ /**
8
+ * The base ESLint config which is shared among all environments.
9
+ */
10
+ export default defineConfig(tseslint.configs.base, comments.recommended, {
11
+ languageOptions: {
12
+ globals: { ...globals.es2026 },
13
+ ecmaVersion: 'latest',
14
+ sourceType: 'module',
15
+ parserOptions: {
16
+ projectService: true,
17
+ },
18
+ },
19
+ linterOptions: {
20
+ reportUnusedDisableDirectives: true,
21
+ },
22
+ rules: {
23
+ ...commentsRules,
24
+ },
25
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("eslint/config").Config[];
2
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import eslintReact from '@eslint-react/eslint-plugin';
2
+ import { defineConfig } from 'eslint/config';
3
+ import { TYPESCRIPT_FILES } from '../constants.js';
4
+ import { reactRules, reactTypeCheckedRules } from '../rules/react.js';
5
+ export default defineConfig(eslintReact.configs['recommended-typescript'], {
6
+ rules: {
7
+ ...reactRules,
8
+ },
9
+ }, {
10
+ files: TYPESCRIPT_FILES,
11
+ rules: {
12
+ ...reactTypeCheckedRules,
13
+ },
14
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: import("eslint/config").Config[];
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from 'eslint/config';
2
+ import storybook from 'eslint-plugin-storybook';
3
+ export default defineConfig(
4
+ // oxlint-disable-next-line import/no-named-as-default-member
5
+ storybook.configs['flat/recommended']);
@@ -0,0 +1,2 @@
1
+ export declare const JAVASCRIPT_FILES: string[];
2
+ export declare const TYPESCRIPT_FILES: string[];
@@ -0,0 +1,2 @@
1
+ export const JAVASCRIPT_FILES = ['**/*.{js,jsx,mjs}'];
2
+ export const TYPESCRIPT_FILES = ['**/*.{ts,tsx}'];
@@ -0,0 +1,3 @@
1
+ import type { Linter } from 'eslint';
2
+ declare const _default: Linter.RulesRecord;
3
+ export default _default;
@@ -0,0 +1,19 @@
1
+ export default {
2
+ /**
3
+ * `eslint-disable` directive-comments disable ESLint rules in all lines
4
+ * preceded by the comment. If you forget `eslint-enable` directive-comment,
5
+ * you may overlook ESLint warnings unintentionally.
6
+ *
7
+ * 🚫 Not fixable - https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
8
+ */
9
+ '@eslint-community/eslint-comments/disable-enable-pair': [
10
+ 'error',
11
+ { allowWholeFile: true },
12
+ ],
13
+ /**
14
+ * This rule warns directive comments without description.
15
+ *
16
+ * 🚫 Not fixable - https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/require-description.html
17
+ */
18
+ '@eslint-community/eslint-comments/require-description': 'error',
19
+ };
@@ -0,0 +1,3 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const reactRules: Linter.RulesRecord;
3
+ export declare const reactTypeCheckedRules: Linter.RulesRecord;
@@ -0,0 +1,16 @@
1
+ const disabledReactRules = {
2
+ '@eslint-react/dom/no-missing-button-type': 'off',
3
+ '@eslint-react/no-array-index-key': 'off',
4
+ '@eslint-react/set-state-in-effect': 'off',
5
+ };
6
+ export const reactRules = {
7
+ ...disabledReactRules,
8
+ };
9
+ const disabledReactTypeCheckedRules = {
10
+ '@eslint-react/dom/no-string-style-prop': 'off',
11
+ '@eslint-react/dom/no-unknown-property': 'off',
12
+ };
13
+ export const reactTypeCheckedRules = {
14
+ ...disabledReactTypeCheckedRules,
15
+ '@eslint-react/no-leaked-conditional-rendering': 'warn',
16
+ };
@@ -0,0 +1 @@
1
+ export { includeIgnoreFile } from '@eslint/compat';
@@ -0,0 +1 @@
1
+ export { includeIgnoreFile } from '@eslint/compat';
@@ -0,0 +1,24 @@
1
+ declare const _default: {
2
+ categories: {
3
+ correctness: "error";
4
+ };
5
+ plugins: ("eslint" | "unicorn" | "typescript" | "oxc" | "import")[];
6
+ jsPlugins: string[];
7
+ options: {
8
+ typeAware: true;
9
+ reportUnusedDisableDirectives: "warn";
10
+ };
11
+ env: {
12
+ es2026: true;
13
+ };
14
+ rules: {
15
+ [x: string]: import("oxlint").DummyRule;
16
+ };
17
+ overrides: {
18
+ files: string[];
19
+ rules: {
20
+ [k: string]: import("oxlint").DummyRule;
21
+ };
22
+ }[];
23
+ };
24
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import { defineConfig } from 'oxlint';
2
+ import importRules from '../rules/import.js';
3
+ import standardRules from '../rules/standard.js';
4
+ import stylisticRules from '../rules/stylistic.js';
5
+ import unicornRules from '../rules/unicorn.js';
6
+ import tsdocRules from '../rules/tsdoc.js';
7
+ import typescriptRules from '../rules/typescript.js';
8
+ import { TYPESCRIPT_FILES } from '../constants.js';
9
+ import oxcRules from '../rules/oxc.js';
10
+ export default defineConfig({
11
+ // There is no recommended configs in Oxlint for now and instead it has
12
+ // categories for rules so we can enable/disable all rules in a certain
13
+ // category at once. We only enable `correctness` category and configure
14
+ // all other rules manually.
15
+ categories: {
16
+ correctness: 'error',
17
+ },
18
+ plugins: ['oxc', 'eslint', 'unicorn', 'import', 'typescript'],
19
+ jsPlugins: ['@stylistic/eslint-plugin', 'eslint-plugin-tsdoc'],
20
+ options: {
21
+ typeAware: true,
22
+ reportUnusedDisableDirectives: 'warn',
23
+ },
24
+ env: {
25
+ es2026: true,
26
+ },
27
+ rules: {
28
+ ...oxcRules,
29
+ ...standardRules,
30
+ ...stylisticRules,
31
+ ...importRules,
32
+ ...unicornRules,
33
+ ...typescriptRules,
34
+ },
35
+ overrides: [
36
+ {
37
+ files: TYPESCRIPT_FILES,
38
+ rules: {
39
+ ...tsdocRules,
40
+ },
41
+ },
42
+ ],
43
+ });
@@ -0,0 +1,29 @@
1
+ declare const _default: {
2
+ extends: {
3
+ categories: {
4
+ correctness: "error";
5
+ };
6
+ plugins: ("eslint" | "unicorn" | "typescript" | "oxc" | "import")[];
7
+ jsPlugins: string[];
8
+ options: {
9
+ typeAware: true;
10
+ reportUnusedDisableDirectives: "warn";
11
+ };
12
+ env: {
13
+ es2026: true;
14
+ };
15
+ rules: {
16
+ [x: string]: import("oxlint").DummyRule;
17
+ };
18
+ overrides: {
19
+ files: string[];
20
+ rules: {
21
+ [k: string]: import("oxlint").DummyRule;
22
+ };
23
+ }[];
24
+ }[];
25
+ env: {
26
+ browser: true;
27
+ };
28
+ };
29
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'oxlint';
2
+ import baseConfig from './base.js';
3
+ export default defineConfig({
4
+ extends: [baseConfig],
5
+ env: {
6
+ browser: true,
7
+ },
8
+ });
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ extends: {
3
+ plugins: ("react" | "jsx-a11y")[];
4
+ jsPlugins: {
5
+ name: string;
6
+ specifier: string;
7
+ }[];
8
+ rules: {
9
+ [k: string]: import("oxlint").DummyRule;
10
+ };
11
+ }[];
12
+ plugins: "nextjs"[];
13
+ rules: {
14
+ [k: string]: import("oxlint").DummyRule;
15
+ };
16
+ };
17
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from 'oxlint';
2
+ import nextRules from '../rules/next.js';
3
+ import reactConfig from './react.js';
4
+ export default defineConfig({
5
+ extends: [reactConfig],
6
+ plugins: ['nextjs'],
7
+ rules: {
8
+ ...nextRules,
9
+ },
10
+ });
@@ -0,0 +1,29 @@
1
+ declare const _default: {
2
+ extends: {
3
+ categories: {
4
+ correctness: "error";
5
+ };
6
+ plugins: ("eslint" | "unicorn" | "typescript" | "oxc" | "import")[];
7
+ jsPlugins: string[];
8
+ options: {
9
+ typeAware: true;
10
+ reportUnusedDisableDirectives: "warn";
11
+ };
12
+ env: {
13
+ es2026: true;
14
+ };
15
+ rules: {
16
+ [x: string]: import("oxlint").DummyRule;
17
+ };
18
+ overrides: {
19
+ files: string[];
20
+ rules: {
21
+ [k: string]: import("oxlint").DummyRule;
22
+ };
23
+ }[];
24
+ }[];
25
+ env: {
26
+ node: true;
27
+ };
28
+ };
29
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'oxlint';
2
+ import baseConfig from './base.js';
3
+ export default defineConfig({
4
+ extends: [baseConfig],
5
+ env: {
6
+ node: true,
7
+ },
8
+ });
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ plugins: ("react" | "jsx-a11y")[];
3
+ jsPlugins: {
4
+ name: string;
5
+ specifier: string;
6
+ }[];
7
+ rules: {
8
+ [k: string]: import("oxlint").DummyRule;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from 'oxlint';
2
+ import reactRules from '../rules/react.js';
3
+ export default defineConfig({
4
+ plugins: ['react', 'jsx-a11y'],
5
+ jsPlugins: [{ name: 'react-js', specifier: 'eslint-plugin-react' }],
6
+ rules: {
7
+ ...reactRules,
8
+ },
9
+ });
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ plugins: "vitest"[];
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { defineConfig } from 'oxlint';
2
+ export default defineConfig({
3
+ plugins: ['vitest'],
4
+ });
@@ -0,0 +1,2 @@
1
+ export declare const JAVASCRIPT_FILES: string[];
2
+ export declare const TYPESCRIPT_FILES: string[];
@@ -0,0 +1,2 @@
1
+ export const JAVASCRIPT_FILES = ['**/*.{js,jsx,mjs}'];
2
+ export const TYPESCRIPT_FILES = ['**/*.{ts,tsx}'];
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;
@@ -0,0 +1,11 @@
1
+ export default {
2
+ 'import/consistent-type-specifier-style': ['warn', 'prefer-top-level'],
3
+ 'import/first': 'error',
4
+ 'import/no-absolute-path': 'error',
5
+ 'import/no-cycle': process.env.CI ? 'error' : 'off',
6
+ 'import/no-duplicates': 'warn',
7
+ 'import/no-mutable-exports': 'error',
8
+ 'import/no-named-as-default': 'warn',
9
+ 'import/no-named-as-default-member': 'warn',
10
+ 'import/no-self-import': 'error',
11
+ };
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * `jsx-a11y` rules configured for Next.js.
3
+ */
4
+ const a11yRules = {
5
+ 'jsx-a11y/alt-text': [
6
+ 'warn',
7
+ {
8
+ elements: ['img'],
9
+ img: ['Image'],
10
+ },
11
+ ],
12
+ };
13
+ export default {
14
+ ...a11yRules,
15
+ };
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export default {
2
+ 'oxc/approx-constant': 'error',
3
+ 'oxc/no-accumulating-spread': 'warn',
4
+ };
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;
@@ -0,0 +1,13 @@
1
+ export default {
2
+ 'react-js/function-component-definition': 'warn',
3
+ 'react-js/hook-use-state': 'warn',
4
+ 'react-js/jsx-sort-props': ['warn', { reservedFirst: true }],
5
+ 'react-js/no-unstable-nested-components': ['error', { allowAsProps: true }],
6
+ 'react/jsx-boolean-value': 'warn',
7
+ 'react/jsx-curly-brace-presence': 'warn',
8
+ 'react/jsx-fragments': 'warn',
9
+ 'react/jsx-no-constructed-context-values': 'error',
10
+ 'react/jsx-no-useless-fragment': ['warn', { allowExpressions: true }],
11
+ 'react/jsx-pascal-case': 'warn',
12
+ 'react/self-closing-comp': 'warn',
13
+ };
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;
@@ -0,0 +1,77 @@
1
+ // TODO: add `object-shorthand` once it's released https://github.com/oxc-project/oxc/commit/0f01fbdf7fd6e65fb7c4402d8214114d283ff7ea
2
+ export default {
3
+ curly: 'warn',
4
+ 'default-case-last': 'error',
5
+ 'default-param-last': 'error',
6
+ eqeqeq: 'error',
7
+ 'func-names': ['error', 'as-needed'],
8
+ 'grouped-accessor-pairs': 'error',
9
+ 'guard-for-in': 'error',
10
+ 'no-array-constructor': 'error',
11
+ 'no-await-in-loop': 'error',
12
+ 'no-bitwise': 'error',
13
+ 'no-case-declarations': 'error',
14
+ 'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
15
+ 'no-constant-binary-expression': 'error',
16
+ 'no-constructor-return': 'error',
17
+ 'no-else-return': 'warn',
18
+ 'no-empty': 'error',
19
+ 'no-empty-function': 'error',
20
+ 'no-eval': 'error',
21
+ 'no-extend-native': 'error',
22
+ 'no-extra-bind': 'error',
23
+ 'no-extra-label': 'error',
24
+ 'no-fallthrough': 'error',
25
+ 'no-implicit-coercion': ['warn', { allow: ['!!'] }],
26
+ 'no-implied-eval': 'error',
27
+ 'no-iterator': 'error',
28
+ 'no-label-var': 'error',
29
+ 'no-labels': 'error',
30
+ 'no-lone-blocks': 'error',
31
+ 'no-lonely-if': 'warn',
32
+ 'no-multi-assign': 'error',
33
+ 'no-new': 'error',
34
+ 'no-new-func': 'error',
35
+ 'no-new-wrappers': 'error',
36
+ 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
37
+ 'no-promise-executor-return': 'error',
38
+ 'no-proto': 'error',
39
+ 'no-prototype-builtins': 'error',
40
+ 'no-redeclare': 'error',
41
+ 'no-return-assign': 'error',
42
+ 'no-script-url': 'error',
43
+ 'no-self-compare': 'error',
44
+ 'no-sequences': 'error',
45
+ 'no-template-curly-in-string': 'error',
46
+ 'no-unmodified-loop-condition': 'error',
47
+ 'no-unneeded-ternary': 'error',
48
+ 'no-unused-vars': [
49
+ 'error',
50
+ {
51
+ args: 'after-used',
52
+ argsIgnorePattern: '^_',
53
+ ignoreRestSiblings: false,
54
+ vars: 'all',
55
+ varsIgnorePattern: '^_',
56
+ },
57
+ ],
58
+ 'no-useless-call': 'error',
59
+ 'no-useless-computed-key': 'warn',
60
+ 'no-useless-concat': 'error',
61
+ 'no-useless-constructor': 'error',
62
+ 'no-useless-rename': 'warn',
63
+ 'no-useless-return': 'warn',
64
+ 'no-var': 'error',
65
+ 'operator-assignment': 'warn',
66
+ 'prefer-const': 'warn',
67
+ 'prefer-exponentiation-operator': 'warn',
68
+ 'prefer-numeric-literals': 'error',
69
+ 'prefer-object-has-own': 'error',
70
+ 'prefer-object-spread': 'warn',
71
+ 'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],
72
+ 'prefer-rest-params': 'error',
73
+ 'prefer-spread': 'error',
74
+ 'prefer-template': 'warn',
75
+ 'symbol-description': 'error',
76
+ yoda: 'warn',
77
+ };
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;
@@ -0,0 +1,10 @@
1
+ export default {
2
+ '@stylistic/padding-line-between-statements': [
3
+ 'warn',
4
+ // Blank line before `return`
5
+ { blankLine: 'always', next: 'return', prev: '*' },
6
+ // Blank line after all directives (e.g. `use strict`)
7
+ { blankLine: 'always', next: '*', prev: 'directive' },
8
+ { blankLine: 'any', next: 'directive', prev: 'directive' },
9
+ ],
10
+ };
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default {
2
+ 'tsdoc/syntax': 'error',
3
+ };
@@ -0,0 +1,3 @@
1
+ import type { DummyRuleMap } from 'oxlint';
2
+ declare const _default: DummyRuleMap;
3
+ export default _default;