eslint-plugin-spellbookx 0.3.3 → 0.7.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.
- package/.turbo/turbo-build.log +12 -0
- package/LICENSE +1 -1
- package/README.md +11 -52
- package/dist/configs/cspell.d.ts +2 -3
- package/dist/configs/cspell.d.ts.map +1 -1
- package/dist/configs/javascript.d.ts +1 -2
- package/dist/configs/javascript.d.ts.map +1 -1
- package/dist/configs/json.d.ts +2 -3
- package/dist/configs/json.d.ts.map +1 -1
- package/dist/configs/markdown.d.ts +2 -3
- package/dist/configs/markdown.d.ts.map +1 -1
- package/dist/configs/recommended.d.ts +3 -0
- package/dist/configs/recommended.d.ts.map +1 -0
- package/dist/configs/vuoto.d.ts +3 -0
- package/dist/configs/vuoto.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +484 -43
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +10 -1
- package/package.json +27 -33
- package/rolldown.config.ts +31 -0
- package/src/configs/cspell.ts +9 -0
- package/src/configs/ignores.ts +96 -0
- package/src/configs/javascript.ts +322 -0
- package/src/configs/json.ts +57 -0
- package/src/configs/markdown.ts +15 -0
- package/src/configs/recommended.ts +20 -0
- package/src/configs/vuoto.ts +12 -0
- package/{dist/helpers.js → src/helpers.ts} +6 -1
- package/src/index.ts +38 -0
- package/src/types.ts +8 -0
- package/tsconfig.json +10 -0
- package/dist/configs/astro.d.ts +0 -4
- package/dist/configs/astro.d.ts.map +0 -1
- package/dist/configs/astro.js +0 -67
- package/dist/configs/cspell.js +0 -10
- package/dist/configs/ignores.js +0 -88
- package/dist/configs/index.d.ts +0 -15
- package/dist/configs/index.d.ts.map +0 -1
- package/dist/configs/index.js +0 -14
- package/dist/configs/javascript.js +0 -79
- package/dist/configs/json.js +0 -57
- package/dist/configs/markdown.js +0 -21
- package/dist/configs/prettier.d.ts +0 -4
- package/dist/configs/prettier.d.ts.map +0 -1
- package/dist/configs/prettier.js +0 -19
- package/dist/configs/react.d.ts +0 -4
- package/dist/configs/react.d.ts.map +0 -1
- package/dist/configs/react.js +0 -61
- package/dist/configs/recommended/astro.d.ts +0 -4
- package/dist/configs/recommended/astro.d.ts.map +0 -1
- package/dist/configs/recommended/astro.js +0 -18
- package/dist/configs/recommended/index.d.ts +0 -7
- package/dist/configs/recommended/index.d.ts.map +0 -1
- package/dist/configs/recommended/index.js +0 -6
- package/dist/configs/recommended/no-spellcheck-astro.d.ts +0 -4
- package/dist/configs/recommended/no-spellcheck-astro.d.ts.map +0 -1
- package/dist/configs/recommended/no-spellcheck-astro.js +0 -16
- package/dist/configs/recommended/no-spellcheck-react.d.ts +0 -4
- package/dist/configs/recommended/no-spellcheck-react.d.ts.map +0 -1
- package/dist/configs/recommended/no-spellcheck-react.js +0 -14
- package/dist/configs/recommended/no-spellcheck.d.ts +0 -4
- package/dist/configs/recommended/no-spellcheck.d.ts.map +0 -1
- package/dist/configs/recommended/no-spellcheck.js +0 -14
- package/dist/configs/recommended/react.d.ts +0 -4
- package/dist/configs/recommended/react.d.ts.map +0 -1
- package/dist/configs/recommended/react.js +0 -16
- package/dist/configs/recommended/recommended.d.ts +0 -4
- package/dist/configs/recommended/recommended.d.ts.map +0 -1
- package/dist/configs/recommended/recommended.js +0 -22
- package/dist/dependencies.d.ts +0 -3
- package/dist/dependencies.d.ts.map +0 -1
- package/dist/dependencies.js +0 -4
- package/dist/shared-rules/index.d.ts +0 -4
- package/dist/shared-rules/index.d.ts.map +0 -1
- package/dist/shared-rules/index.js +0 -3
- package/dist/shared-rules/js-common.d.ts +0 -25
- package/dist/shared-rules/js-common.d.ts.map +0 -1
- package/dist/shared-rules/js-common.js +0 -50
- package/dist/shared-rules/js-imports-exports.d.ts +0 -16
- package/dist/shared-rules/js-imports-exports.d.ts.map +0 -1
- package/dist/shared-rules/js-imports-exports.js +0 -191
- package/dist/shared-rules/jsdoc.d.ts +0 -23
- package/dist/shared-rules/jsdoc.d.ts.map +0 -1
- package/dist/shared-rules/jsdoc.js +0 -62
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
package/dist/configs/cspell.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import cspell from '@cspell/eslint-plugin/configs';
|
|
3
|
-
import configIgnores from './ignores.js';
|
|
4
|
-
import configPrettier from './prettier.js';
|
|
5
|
-
const configCSpell = defineConfig([
|
|
6
|
-
configIgnores,
|
|
7
|
-
cspell.recommended,
|
|
8
|
-
configPrettier,
|
|
9
|
-
]);
|
|
10
|
-
export default configCSpell;
|
package/dist/configs/ignores.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
2
|
-
const configIgnores = defineConfig([
|
|
3
|
-
globalIgnores([
|
|
4
|
-
// Node / JS / TS build & lock files
|
|
5
|
-
'**/node_modules/**',
|
|
6
|
-
'**/dist/**',
|
|
7
|
-
'**/build/**',
|
|
8
|
-
'**/out/**',
|
|
9
|
-
'**/out-tsc/**',
|
|
10
|
-
'**/coverage/**',
|
|
11
|
-
'**/.astro/**',
|
|
12
|
-
'**/.next/**',
|
|
13
|
-
'**/.nuxt/**',
|
|
14
|
-
'**/.svelte-kit/**',
|
|
15
|
-
'**/.turbo/**',
|
|
16
|
-
'**/.pnpm/**',
|
|
17
|
-
'**/.npm/**',
|
|
18
|
-
'**/.yarn/**',
|
|
19
|
-
'**/.pnp/**',
|
|
20
|
-
'**/package-lock.json',
|
|
21
|
-
'**/pnpm-lock.yaml',
|
|
22
|
-
'**/yarn.lock',
|
|
23
|
-
'**/bun.lockb',
|
|
24
|
-
// Python environments and cache
|
|
25
|
-
'**/__pycache__/**',
|
|
26
|
-
'**/*.pyc',
|
|
27
|
-
'**/*.pyo',
|
|
28
|
-
'**/.mypy_cache/**',
|
|
29
|
-
'**/.pytest_cache/**',
|
|
30
|
-
'**/.tox/**',
|
|
31
|
-
'**/.ruff_cache/**',
|
|
32
|
-
'**/.venv/**',
|
|
33
|
-
'**/venv/**',
|
|
34
|
-
'**/env/**',
|
|
35
|
-
'**/.ipynb_checkpoints/**',
|
|
36
|
-
// Rust build artifacts
|
|
37
|
-
'**/target/**',
|
|
38
|
-
'**/.cargo/**',
|
|
39
|
-
'**/Cargo.lock',
|
|
40
|
-
// Go dependencies and cache
|
|
41
|
-
'**/go.sum',
|
|
42
|
-
'**/go.work',
|
|
43
|
-
'**/go.work.sum',
|
|
44
|
-
'**/vendor/**',
|
|
45
|
-
'**/.gopath/**',
|
|
46
|
-
'**/.cache/go-build/**',
|
|
47
|
-
// Miscellaneous project artifacts
|
|
48
|
-
'**/*LICENSE*',
|
|
49
|
-
'**/*.log',
|
|
50
|
-
'**/.cache/**',
|
|
51
|
-
'**/.temp/**',
|
|
52
|
-
'**/.tmp/**',
|
|
53
|
-
'**/.DS_Store',
|
|
54
|
-
'**/.idea/**',
|
|
55
|
-
'**/.vscode/**',
|
|
56
|
-
'**/.nx/**',
|
|
57
|
-
'**/.cspell/**',
|
|
58
|
-
'**/.cursor/**',
|
|
59
|
-
'**/.history/**',
|
|
60
|
-
'**/.terraform/**',
|
|
61
|
-
'**/.devcontainer/**',
|
|
62
|
-
'**/.direnv/**',
|
|
63
|
-
'**/.editorconfig',
|
|
64
|
-
'**/.eslintcache',
|
|
65
|
-
'**/.babelrc',
|
|
66
|
-
'**/.prettier*',
|
|
67
|
-
'**/.sass-cache/**',
|
|
68
|
-
'**/.gradle/**',
|
|
69
|
-
'**/.docker/**',
|
|
70
|
-
'**/.kube/**',
|
|
71
|
-
'**/.git/**',
|
|
72
|
-
'**/.svn/**',
|
|
73
|
-
'**/.hg/**',
|
|
74
|
-
'**/.gemini/**',
|
|
75
|
-
'**/.codacy/**',
|
|
76
|
-
'.github/instructions/**',
|
|
77
|
-
// Windows system artifacts
|
|
78
|
-
'**/*:Zone.Identifier',
|
|
79
|
-
'**/Thumbs.db',
|
|
80
|
-
'**/desktop.ini',
|
|
81
|
-
'**/$RECYCLE.BIN/**',
|
|
82
|
-
'**/System Volume Information/**',
|
|
83
|
-
'**/pagefile.sys',
|
|
84
|
-
'**/swapfile.sys',
|
|
85
|
-
'**/hiberfil.sys',
|
|
86
|
-
]),
|
|
87
|
-
]);
|
|
88
|
-
export default configIgnores;
|
package/dist/configs/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { default as configAstro } from './astro.js';
|
|
2
|
-
export { default as configCSpell } from './cspell.js';
|
|
3
|
-
export { default as configIgnores } from './ignores.js';
|
|
4
|
-
export { default as configJavascript } from './javascript.js';
|
|
5
|
-
export { default as configJson } from './json.js';
|
|
6
|
-
export { default as configMarkdown } from './markdown.js';
|
|
7
|
-
export { default as configPrettier } from './prettier.js';
|
|
8
|
-
export { default as configReact } from './react.js';
|
|
9
|
-
export { default as configRecommendedAstro } from './recommended/astro.js';
|
|
10
|
-
export { default as configRecommendedNoSpellCheck } from './recommended/no-spellcheck.js';
|
|
11
|
-
export { default as configRecommendedNoSpellCheckAstro } from './recommended/no-spellcheck-astro.js';
|
|
12
|
-
export { default as configRecommendedNoSpellCheckReact } from './recommended/no-spellcheck-react.js';
|
|
13
|
-
export { default as configRecommendedReact } from './recommended/react.js';
|
|
14
|
-
export { default as configRecommended } from './recommended/recommended.js';
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AACrG,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/configs/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { default as configAstro } from './astro.js';
|
|
2
|
-
export { default as configCSpell } from './cspell.js';
|
|
3
|
-
export { default as configIgnores } from './ignores.js';
|
|
4
|
-
export { default as configJavascript } from './javascript.js';
|
|
5
|
-
export { default as configJson } from './json.js';
|
|
6
|
-
export { default as configMarkdown } from './markdown.js';
|
|
7
|
-
export { default as configPrettier } from './prettier.js';
|
|
8
|
-
export { default as configReact } from './react.js';
|
|
9
|
-
export { default as configRecommendedAstro } from './recommended/astro.js';
|
|
10
|
-
export { default as configRecommendedNoSpellCheck } from './recommended/no-spellcheck.js';
|
|
11
|
-
export { default as configRecommendedNoSpellCheckAstro } from './recommended/no-spellcheck-astro.js';
|
|
12
|
-
export { default as configRecommendedNoSpellCheckReact } from './recommended/no-spellcheck-react.js';
|
|
13
|
-
export { default as configRecommendedReact } from './recommended/react.js';
|
|
14
|
-
export { default as configRecommended } from './recommended/recommended.js';
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import importPlugin from 'eslint-plugin-import';
|
|
3
|
-
import jsdoc from 'eslint-plugin-jsdoc';
|
|
4
|
-
import nodeDependencies from 'eslint-plugin-node-dependencies';
|
|
5
|
-
import prettierPlugin from 'eslint-plugin-prettier';
|
|
6
|
-
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
7
|
-
import unicorn from 'eslint-plugin-unicorn';
|
|
8
|
-
import globals from 'globals';
|
|
9
|
-
import tseslint from 'typescript-eslint';
|
|
10
|
-
import js from '@eslint/js';
|
|
11
|
-
import { jsRulesCommon } from '../shared-rules/js-common.js';
|
|
12
|
-
import { jsRulesImportsExports } from '../shared-rules/js-imports-exports.js';
|
|
13
|
-
import { jsDocRules } from '../shared-rules/jsdoc.js';
|
|
14
|
-
import configIgnores from './ignores.js';
|
|
15
|
-
import configPrettier from './prettier.js';
|
|
16
|
-
const configJavascript = defineConfig([
|
|
17
|
-
configIgnores,
|
|
18
|
-
// --- Js/Ts base ---
|
|
19
|
-
{
|
|
20
|
-
files: ['**/*.{js,ts,cjs,cts,mjs,mts}'],
|
|
21
|
-
plugins: {
|
|
22
|
-
jsdoc,
|
|
23
|
-
import: importPlugin,
|
|
24
|
-
prettier: prettierPlugin,
|
|
25
|
-
'simple-import-sort': simpleImportSort,
|
|
26
|
-
},
|
|
27
|
-
extends: [
|
|
28
|
-
js.configs.recommended,
|
|
29
|
-
...tseslint.configs.recommended,
|
|
30
|
-
nodeDependencies.configs['flat/recommended'],
|
|
31
|
-
unicorn.configs.recommended,
|
|
32
|
-
jsdoc.configs['flat/contents-typescript-flavor'],
|
|
33
|
-
jsdoc.configs['flat/logical-typescript-flavor'],
|
|
34
|
-
jsdoc.configs['flat/requirements-typescript-flavor'],
|
|
35
|
-
jsdoc.configs['flat/stylistic-typescript-flavor'],
|
|
36
|
-
],
|
|
37
|
-
languageOptions: {
|
|
38
|
-
globals: {
|
|
39
|
-
...globals.node,
|
|
40
|
-
...globals.browser,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
rules: {
|
|
44
|
-
...jsRulesCommon,
|
|
45
|
-
...jsDocRules,
|
|
46
|
-
...jsRulesImportsExports,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
// --- CommonJS specifics ---
|
|
50
|
-
{
|
|
51
|
-
files: ['**/*.{cjs,cts}', '**/webpack.config.{js,cjs}'],
|
|
52
|
-
languageOptions: {
|
|
53
|
-
globals: { ...globals.commonjs },
|
|
54
|
-
},
|
|
55
|
-
rules: {
|
|
56
|
-
'@typescript-eslint/no-require-imports': 'off',
|
|
57
|
-
'unicorn/prefer-module': 'off',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
// --- Module specifics ---
|
|
61
|
-
{
|
|
62
|
-
files: ['**/*.{js,ts,mjs,mts}'],
|
|
63
|
-
languageOptions: {
|
|
64
|
-
sourceType: 'module',
|
|
65
|
-
globals: { ...globals.es2022 },
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
// --- Test files ---
|
|
69
|
-
{
|
|
70
|
-
files: ['**/*.test.{js,ts}', '**/*.spec.{js,ts}'],
|
|
71
|
-
rules: {
|
|
72
|
-
'no-console': 'off',
|
|
73
|
-
'@typescript-eslint/no-unused-vars': 'warn',
|
|
74
|
-
'unicorn/no-null': 'warn',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
configPrettier,
|
|
78
|
-
]);
|
|
79
|
-
export default configJavascript;
|
package/dist/configs/json.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import packageJson from 'eslint-plugin-package-json';
|
|
3
|
-
import jsoncParser from 'jsonc-eslint-parser';
|
|
4
|
-
import json from '@eslint/json';
|
|
5
|
-
import configIgnores from './ignores.js';
|
|
6
|
-
import configPrettier from './prettier.js';
|
|
7
|
-
const configJson = defineConfig([
|
|
8
|
-
configIgnores,
|
|
9
|
-
{
|
|
10
|
-
files: ['**/*.json'],
|
|
11
|
-
plugins: { json: json },
|
|
12
|
-
language: 'json/json',
|
|
13
|
-
extends: ['json/recommended'],
|
|
14
|
-
languageOptions: { parser: jsoncParser },
|
|
15
|
-
rules: {
|
|
16
|
-
'prettier/prettier': 'off',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
files: ['**/*.json5'],
|
|
21
|
-
plugins: { json: json },
|
|
22
|
-
language: 'json/json5',
|
|
23
|
-
extends: ['json/recommended'],
|
|
24
|
-
languageOptions: { parser: jsoncParser },
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
files: ['**/*.jsonc', '**/tsconfig*.json', '**/.vscode/**/*.json'],
|
|
28
|
-
plugins: { json: json },
|
|
29
|
-
language: 'json/jsonc',
|
|
30
|
-
extends: ['json/recommended'],
|
|
31
|
-
languageOptions: { parser: jsoncParser },
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
files: ['**/package.json'],
|
|
35
|
-
plugins: { json: json, 'package-json': packageJson },
|
|
36
|
-
language: 'json/json',
|
|
37
|
-
extends: [packageJson.configs.recommended],
|
|
38
|
-
languageOptions: { parser: jsoncParser },
|
|
39
|
-
rules: {
|
|
40
|
-
'package-json/order-properties': 'error',
|
|
41
|
-
'package-json/sort-collections': 'error',
|
|
42
|
-
'package-json/require-description': 'error',
|
|
43
|
-
'package-json/require-bugs': 'error',
|
|
44
|
-
'package-json/require-keywords': 'error',
|
|
45
|
-
'package-json/require-name': 'error',
|
|
46
|
-
'package-json/require-version': 'error',
|
|
47
|
-
'package-json/valid-description': 'error',
|
|
48
|
-
'package-json/valid-license': 'error',
|
|
49
|
-
'package-json/valid-name': 'error',
|
|
50
|
-
'package-json/valid-package-definition': 'error',
|
|
51
|
-
'package-json/valid-version': 'error',
|
|
52
|
-
'prettier/prettier': 'off',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
configPrettier,
|
|
56
|
-
]);
|
|
57
|
-
export default configJson;
|
package/dist/configs/markdown.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import markdown from '@eslint/markdown';
|
|
3
|
-
import { jsRulesCommon } from '../shared-rules/js-common.js';
|
|
4
|
-
import { jsRulesImportsExports } from '../shared-rules/js-imports-exports.js';
|
|
5
|
-
import configIgnores from './ignores.js';
|
|
6
|
-
import configPrettier from './prettier.js';
|
|
7
|
-
const configMarkdown = defineConfig([
|
|
8
|
-
configIgnores,
|
|
9
|
-
{
|
|
10
|
-
files: ['**/*.md'],
|
|
11
|
-
plugins: { markdown: markdown },
|
|
12
|
-
language: 'markdown/gfm',
|
|
13
|
-
extends: ['markdown/recommended'],
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
files: ['**/*.md/*.js', '**/*.md/*.ts', '**/*.md/*.jsx', '**/*.md/*.tsx'],
|
|
17
|
-
rules: { ...jsRulesCommon, ...jsRulesImportsExports },
|
|
18
|
-
},
|
|
19
|
-
configPrettier,
|
|
20
|
-
]);
|
|
21
|
-
export default configMarkdown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/configs/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKrC,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAejC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
package/dist/configs/prettier.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import configIgnores from './ignores.js';
|
|
3
|
-
const configPrettier = defineConfig([
|
|
4
|
-
configIgnores,
|
|
5
|
-
{
|
|
6
|
-
files: [
|
|
7
|
-
'**/*.js',
|
|
8
|
-
'**/*.jsx',
|
|
9
|
-
'**/*.ts',
|
|
10
|
-
'**/*.tsx',
|
|
11
|
-
'**/*.mjs',
|
|
12
|
-
'**/*.cjs',
|
|
13
|
-
],
|
|
14
|
-
rules: {
|
|
15
|
-
'prettier/prettier': 'off',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
]);
|
|
19
|
-
export default configPrettier;
|
package/dist/configs/react.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAkBrC,QAAA,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAgD9B,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
package/dist/configs/react.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import importPlugin from 'eslint-plugin-import';
|
|
3
|
-
import nodeDependencies from 'eslint-plugin-node-dependencies';
|
|
4
|
-
import prettierPlugin from 'eslint-plugin-prettier';
|
|
5
|
-
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
6
|
-
import unicorn from 'eslint-plugin-unicorn';
|
|
7
|
-
import globals from 'globals';
|
|
8
|
-
import tseslint from 'typescript-eslint';
|
|
9
|
-
import js from '@eslint/js';
|
|
10
|
-
import eslintReact from '@eslint-react/eslint-plugin';
|
|
11
|
-
import { jsRulesCommon } from '../shared-rules/js-common.js';
|
|
12
|
-
import { jsRulesImportsExports } from '../shared-rules/js-imports-exports.js';
|
|
13
|
-
import configIgnores from './ignores.js';
|
|
14
|
-
import configJavascript from './javascript.js';
|
|
15
|
-
import configPrettier from './prettier.js';
|
|
16
|
-
const configReact = defineConfig([
|
|
17
|
-
configIgnores,
|
|
18
|
-
configJavascript,
|
|
19
|
-
// --- React ---
|
|
20
|
-
{
|
|
21
|
-
files: ['**/*.{jsx,tsx,mjsx,mtsx}'],
|
|
22
|
-
plugins: {
|
|
23
|
-
import: importPlugin,
|
|
24
|
-
prettier: prettierPlugin,
|
|
25
|
-
'simple-import-sort': simpleImportSort,
|
|
26
|
-
},
|
|
27
|
-
extends: [
|
|
28
|
-
js.configs.recommended,
|
|
29
|
-
...tseslint.configs.recommended,
|
|
30
|
-
eslintReact.configs['recommended-typescript'],
|
|
31
|
-
nodeDependencies.configs['flat/recommended'],
|
|
32
|
-
unicorn.configs.recommended,
|
|
33
|
-
],
|
|
34
|
-
languageOptions: {
|
|
35
|
-
sourceType: 'module',
|
|
36
|
-
globals: {
|
|
37
|
-
...globals.browser,
|
|
38
|
-
...globals.es2022,
|
|
39
|
-
},
|
|
40
|
-
parser: tseslint.parser,
|
|
41
|
-
parserOptions: {
|
|
42
|
-
projectService: true,
|
|
43
|
-
tsconfigRootDir: import.meta.dirname,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
rules: {
|
|
47
|
-
// Common rules
|
|
48
|
-
...jsRulesCommon,
|
|
49
|
-
...jsRulesImportsExports,
|
|
50
|
-
// Unicorn
|
|
51
|
-
'unicorn/filename-case': 'off',
|
|
52
|
-
// Prettier
|
|
53
|
-
'prettier/prettier': 'error',
|
|
54
|
-
},
|
|
55
|
-
settings: {
|
|
56
|
-
react: { version: 'detect' },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
configPrettier,
|
|
60
|
-
]);
|
|
61
|
-
export default configReact;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"astro.d.ts","sourceRoot":"","sources":["../../../src/configs/recommended/astro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWrC,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAQzC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import configAstro from '../astro.js';
|
|
3
|
-
import configCSpell from '../cspell.js';
|
|
4
|
-
import configIgnores from '../ignores.js';
|
|
5
|
-
import configJson from '../json.js';
|
|
6
|
-
import configMarkdown from '../markdown.js';
|
|
7
|
-
import configPrettier from '../prettier.js';
|
|
8
|
-
import configReact from '../react.js';
|
|
9
|
-
const configRecommendedAstro = defineConfig([
|
|
10
|
-
configIgnores,
|
|
11
|
-
configCSpell,
|
|
12
|
-
configReact,
|
|
13
|
-
configAstro,
|
|
14
|
-
configJson,
|
|
15
|
-
configMarkdown,
|
|
16
|
-
configPrettier,
|
|
17
|
-
]);
|
|
18
|
-
export default configRecommendedAstro;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as configRecommendedAstro } from './astro.js';
|
|
2
|
-
export { default as configRecommendedNoSpellCheck } from './no-spellcheck.js';
|
|
3
|
-
export { default as configRecommendedNoSpellCheckAstro } from './no-spellcheck-astro.js';
|
|
4
|
-
export { default as configRecommendedNoSpellCheckReact } from './no-spellcheck-react.js';
|
|
5
|
-
export { default as configRecommendedReact } from './react.js';
|
|
6
|
-
export { default as configRecommended } from './recommended.js';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/configs/recommended/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as configRecommendedAstro } from './astro.js';
|
|
2
|
-
export { default as configRecommendedNoSpellCheck } from './no-spellcheck.js';
|
|
3
|
-
export { default as configRecommendedNoSpellCheckAstro } from './no-spellcheck-astro.js';
|
|
4
|
-
export { default as configRecommendedNoSpellCheckReact } from './no-spellcheck-react.js';
|
|
5
|
-
export { default as configRecommendedReact } from './react.js';
|
|
6
|
-
export { default as configRecommended } from './recommended.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-spellcheck-astro.d.ts","sourceRoot":"","sources":["../../../src/configs/recommended/no-spellcheck-astro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUrC,QAAA,MAAM,kCAAkC,EAAE,MAAM,CAAC,MAAM,EAOrD,CAAC;AAEH,eAAe,kCAAkC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import configAstro from '../astro.js';
|
|
3
|
-
import configIgnores from '../ignores.js';
|
|
4
|
-
import configJson from '../json.js';
|
|
5
|
-
import configMarkdown from '../markdown.js';
|
|
6
|
-
import configPrettier from '../prettier.js';
|
|
7
|
-
import configReact from '../react.js';
|
|
8
|
-
const configRecommendedNoSpellCheckAstro = defineConfig([
|
|
9
|
-
configIgnores,
|
|
10
|
-
configReact,
|
|
11
|
-
configAstro,
|
|
12
|
-
configJson,
|
|
13
|
-
configMarkdown,
|
|
14
|
-
configPrettier,
|
|
15
|
-
]);
|
|
16
|
-
export default configRecommendedNoSpellCheckAstro;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-spellcheck-react.d.ts","sourceRoot":"","sources":["../../../src/configs/recommended/no-spellcheck-react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,QAAA,MAAM,kCAAkC,EAAE,MAAM,CAAC,MAAM,EAMrD,CAAC;AAEH,eAAe,kCAAkC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import configIgnores from '../ignores.js';
|
|
3
|
-
import configJson from '../json.js';
|
|
4
|
-
import configMarkdown from '../markdown.js';
|
|
5
|
-
import configPrettier from '../prettier.js';
|
|
6
|
-
import configReact from '../react.js';
|
|
7
|
-
const configRecommendedNoSpellCheckReact = defineConfig([
|
|
8
|
-
configIgnores,
|
|
9
|
-
configReact,
|
|
10
|
-
configJson,
|
|
11
|
-
configMarkdown,
|
|
12
|
-
configPrettier,
|
|
13
|
-
]);
|
|
14
|
-
export default configRecommendedNoSpellCheckReact;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-spellcheck.d.ts","sourceRoot":"","sources":["../../../src/configs/recommended/no-spellcheck.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,QAAA,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAMhD,CAAC;AAEH,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import configIgnores from '../ignores.js';
|
|
3
|
-
import configJavascript from '../javascript.js';
|
|
4
|
-
import configJson from '../json.js';
|
|
5
|
-
import configMarkdown from '../markdown.js';
|
|
6
|
-
import configPrettier from '../prettier.js';
|
|
7
|
-
const configRecommendedNoSpellCheck = defineConfig([
|
|
8
|
-
configIgnores,
|
|
9
|
-
configJavascript,
|
|
10
|
-
configJson,
|
|
11
|
-
configMarkdown,
|
|
12
|
-
configPrettier,
|
|
13
|
-
]);
|
|
14
|
-
export default configRecommendedNoSpellCheck;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/configs/recommended/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUrC,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAOzC,CAAC;AAEH,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import configCSpell from '../cspell.js';
|
|
3
|
-
import configIgnores from '../ignores.js';
|
|
4
|
-
import configJson from '../json.js';
|
|
5
|
-
import configMarkdown from '../markdown.js';
|
|
6
|
-
import configPrettier from '../prettier.js';
|
|
7
|
-
import configReact from '../react.js';
|
|
8
|
-
const configRecommendedReact = defineConfig([
|
|
9
|
-
configIgnores,
|
|
10
|
-
configCSpell,
|
|
11
|
-
configReact,
|
|
12
|
-
configJson,
|
|
13
|
-
configMarkdown,
|
|
14
|
-
configPrettier,
|
|
15
|
-
]);
|
|
16
|
-
export default configRecommendedReact;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../../src/configs/recommended/recommended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUrC,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAapC,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config';
|
|
2
|
-
import configCSpell from '../cspell.js';
|
|
3
|
-
import configIgnores from '../ignores.js';
|
|
4
|
-
import configJavascript from '../javascript.js';
|
|
5
|
-
import configJson from '../json.js';
|
|
6
|
-
import configMarkdown from '../markdown.js';
|
|
7
|
-
import configPrettier from '../prettier.js';
|
|
8
|
-
const configRecommended = defineConfig([
|
|
9
|
-
configIgnores,
|
|
10
|
-
configCSpell,
|
|
11
|
-
configJavascript,
|
|
12
|
-
configJson,
|
|
13
|
-
configMarkdown,
|
|
14
|
-
configPrettier,
|
|
15
|
-
{
|
|
16
|
-
files: ['**/*.json', '**/*.json5', '**/*.jsonc'],
|
|
17
|
-
rules: {
|
|
18
|
-
'prettier/prettier': 'off',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
]);
|
|
22
|
-
export default configRecommended;
|
package/dist/dependencies.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../src/dependencies.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,UAAa,CAAC;AAE7C,eAAO,MAAM,YAAY,UAA0C,CAAC"}
|
package/dist/dependencies.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
/**
|
|
3
|
-
* ESLint configuration for JavaScript and TypeScript.
|
|
4
|
-
*
|
|
5
|
-
* This setup replaces the base ESLint `no-unused-vars` rule with
|
|
6
|
-
* `@typescript-eslint/no-unused-vars`, which understands TypeScript syntax
|
|
7
|
-
* (interfaces, types, enums, modules) and avoids false positives.
|
|
8
|
-
* It also enforces clean code style, safe modern JavaScript patterns,
|
|
9
|
-
* and proper documentation through **Prettier**, **Unicorn**, and **JSDoc**.
|
|
10
|
-
*
|
|
11
|
-
* **Required plugins:**
|
|
12
|
-
* - typescript
|
|
13
|
-
* - typescript-eslint
|
|
14
|
-
* - eslint-plugin-unicorn
|
|
15
|
-
* - eslint-plugin-prettier ('eslint-config-prettier' must be installed too)
|
|
16
|
-
* - eslint-plugin-jsdoc.
|
|
17
|
-
*
|
|
18
|
-
* **Register the plugins as follows:**
|
|
19
|
-
* - '@typescript-eslint': tseslint
|
|
20
|
-
* - unicorn: unicornPlugin
|
|
21
|
-
* - prettier: prettierPlugin
|
|
22
|
-
* - jsdoc: jsdoc.
|
|
23
|
-
*/
|
|
24
|
-
export declare const jsRulesCommon: Linter.RulesRecord;
|
|
25
|
-
//# sourceMappingURL=js-common.d.ts.map
|