@curev/eslint-config 0.3.0 → 0.3.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/dist/chunk-TMQW6NVO.js +69 -0
- package/dist/dist-QAUNCL3U.js +226708 -0
- package/dist/index.cjs +228976 -0
- package/dist/index.d.cts +516 -0
- package/dist/index.d.ts +516 -0
- package/dist/index.js +2153 -0
- package/package.json +5 -2
- package/.eslintignore +0 -1
- package/.github/workflows/release.yml +0 -37
- package/.vscode/settings.json +0 -36
- package/CHANGELOG.md +0 -740
- package/eslint.config.ts +0 -3
- package/fixtures/input/css.css +0 -10
- package/fixtures/input/html.html +0 -17
- package/fixtures/input/javascript.js +0 -69
- package/fixtures/input/jsx.jsx +0 -27
- package/fixtures/input/markdown.md +0 -34
- package/fixtures/input/svelte.svelte +0 -8
- package/fixtures/input/toml.toml +0 -23
- package/fixtures/input/tsx.tsx +0 -32
- package/fixtures/input/typescript.ts +0 -84
- package/fixtures/input/vue-ts.vue +0 -35
- package/fixtures/input/vue.vue +0 -27
- package/fixtures/output/all/javascript.js +0 -72
- package/fixtures/output/all/jsx.jsx +0 -26
- package/fixtures/output/all/markdown.md +0 -33
- package/fixtures/output/all/svelte.svelte +0 -8
- package/fixtures/output/all/toml.toml +0 -23
- package/fixtures/output/all/tsx.tsx +0 -32
- package/fixtures/output/all/typescript.ts +0 -83
- package/fixtures/output/all/vue-ts.vue +0 -35
- package/fixtures/output/all/vue.vue +0 -24
- package/fixtures/output/js/javascript.js +0 -72
- package/fixtures/output/js/markdown.md +0 -33
- package/fixtures/output/js/toml.toml +0 -23
- package/fixtures/output/no-markdown-with-formatters/javascript.js +0 -72
- package/fixtures/output/no-markdown-with-formatters/jsx.jsx +0 -24
- package/fixtures/output/no-markdown-with-formatters/markdown.md +0 -33
- package/fixtures/output/no-markdown-with-formatters/toml.toml +0 -23
- package/fixtures/output/no-markdown-with-formatters/tsx.tsx +0 -23
- package/fixtures/output/no-markdown-with-formatters/typescript.ts +0 -83
- package/fixtures/output/no-style/javascript.js +0 -72
- package/fixtures/output/no-style/jsx.jsx +0 -21
- package/fixtures/output/no-style/toml.toml +0 -23
- package/fixtures/output/no-style/typescript.ts +0 -80
- package/fixtures/output/no-style/vue-ts.vue +0 -35
- package/fixtures/output/no-style/vue.vue +0 -24
- package/fixtures/output/tab-double-quotes/javascript.js +0 -72
- package/fixtures/output/tab-double-quotes/jsx.jsx +0 -26
- package/fixtures/output/tab-double-quotes/markdown.md +0 -33
- package/fixtures/output/tab-double-quotes/toml.toml +0 -23
- package/fixtures/output/tab-double-quotes/tsx.tsx +0 -32
- package/fixtures/output/tab-double-quotes/typescript.ts +0 -83
- package/fixtures/output/tab-double-quotes/vue-ts.vue +0 -35
- package/fixtures/output/tab-double-quotes/vue.vue +0 -24
- package/fixtures/output/ts-override/javascript.js +0 -72
- package/fixtures/output/ts-override/jsx.jsx +0 -26
- package/fixtures/output/ts-override/markdown.md +0 -33
- package/fixtures/output/ts-override/toml.toml +0 -23
- package/fixtures/output/ts-override/tsx.tsx +0 -32
- package/fixtures/output/ts-override/typescript.ts +0 -83
- package/fixtures/output/ts-override/vue-ts.vue +0 -35
- package/fixtures/output/ts-override/vue.vue +0 -24
- package/fixtures/output/with-formatters/css.css +0 -11
- package/fixtures/output/with-formatters/html.html +0 -28
- package/fixtures/output/with-formatters/javascript.js +0 -72
- package/fixtures/output/with-formatters/jsx.jsx +0 -26
- package/fixtures/output/with-formatters/markdown.md +0 -34
- package/fixtures/output/with-formatters/toml.toml +0 -23
- package/fixtures/output/with-formatters/tsx.tsx +0 -32
- package/fixtures/output/with-formatters/typescript.ts +0 -83
- package/fixtures/output/with-formatters/vue-ts.vue +0 -38
- package/fixtures/output/with-formatters/vue.vue +0 -24
- package/src/configs/comments.ts +0 -19
- package/src/configs/formatters.ts +0 -187
- package/src/configs/ignores.ts +0 -10
- package/src/configs/imports.ts +0 -46
- package/src/configs/index.ts +0 -21
- package/src/configs/javascript.ts +0 -277
- package/src/configs/jsdoc.ts +0 -41
- package/src/configs/jsonc.ts +0 -86
- package/src/configs/markdown.ts +0 -110
- package/src/configs/node.ts +0 -24
- package/src/configs/perfectionist.ts +0 -18
- package/src/configs/react.ts +0 -111
- package/src/configs/sort.ts +0 -223
- package/src/configs/stylistic.ts +0 -52
- package/src/configs/svelte.ts +0 -107
- package/src/configs/test.ts +0 -54
- package/src/configs/toml.ts +0 -72
- package/src/configs/typescript.ts +0 -171
- package/src/configs/unicorn.ts +0 -41
- package/src/configs/unocss.ts +0 -43
- package/src/configs/vue.ts +0 -170
- package/src/configs/yaml.ts +0 -72
- package/src/factory.ts +0 -255
- package/src/globs.ts +0 -81
- package/src/index.ts +0 -9
- package/src/plugins.ts +0 -10
- package/src/stub.d.ts +0 -3
- package/src/types.ts +0 -364
- package/src/utils.ts +0 -76
- package/src/vender/prettier-types.ts +0 -136
- package/test/cli.spec.ts +0 -90
- package/test/fixtures.test.ts +0 -127
- package/tsconfig.json +0 -17
- package/tsup.config.ts +0 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curev/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"packageManager": "pnpm@8.6.9",
|
|
6
6
|
"author": "Chizuki<chizukicn@outlook.com> (https://github.com/chizukicn/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
18
21
|
"peerDependencies": {
|
|
19
22
|
"@unocss/eslint-plugin": ">=0.50.0",
|
|
20
23
|
"eslint": ">=8.40.0",
|
|
@@ -119,7 +122,7 @@
|
|
|
119
122
|
"typescript": "^5.3.3",
|
|
120
123
|
"vitest": "^1.2.0",
|
|
121
124
|
"vue": "^3.4.14",
|
|
122
|
-
"@curev/eslint-config": "0.3.
|
|
125
|
+
"@curev/eslint-config": "0.3.1"
|
|
123
126
|
},
|
|
124
127
|
"simple-git-hooks": {
|
|
125
128
|
"pre-commit": "npx lint-staged"
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fixtures/**
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- 'v*'
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
release:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v3
|
|
13
|
-
with:
|
|
14
|
-
fetch-depth: 0
|
|
15
|
-
|
|
16
|
-
- uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: 16.x
|
|
19
|
-
registry-url: 'https://registry.npmjs.org'
|
|
20
|
-
|
|
21
|
-
- name: Set up pnpm
|
|
22
|
-
uses: pnpm/action-setup@v2.2.4
|
|
23
|
-
with:
|
|
24
|
-
version: 8.6.5
|
|
25
|
-
|
|
26
|
-
- run: npx changelogithub
|
|
27
|
-
continue-on-error: true
|
|
28
|
-
env:
|
|
29
|
-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
30
|
-
|
|
31
|
-
- name: Install Dependencies
|
|
32
|
-
run: pnpm install
|
|
33
|
-
|
|
34
|
-
- name: Publish to NPM
|
|
35
|
-
run: pnpm publish --access public --no-git-checks --registry https://registry.npmjs.org
|
|
36
|
-
env:
|
|
37
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
package/.vscode/settings.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Enable the ESlint flat config support
|
|
3
|
-
"eslint.experimental.useFlatConfig": true,
|
|
4
|
-
|
|
5
|
-
// Disable the default formatter, use eslint instead
|
|
6
|
-
"prettier.enable": false,
|
|
7
|
-
"editor.formatOnSave": false,
|
|
8
|
-
|
|
9
|
-
// Auto fix
|
|
10
|
-
"editor.codeActionsOnSave": {
|
|
11
|
-
"source.fixAll.eslint": "explicit",
|
|
12
|
-
"source.organizeImports": "never"
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
// Enable eslint for all supported languages
|
|
16
|
-
"eslint.validate": [
|
|
17
|
-
"javascript",
|
|
18
|
-
"javascriptreact",
|
|
19
|
-
"typescript",
|
|
20
|
-
"typescriptreact",
|
|
21
|
-
"vue",
|
|
22
|
-
"html",
|
|
23
|
-
"markdown",
|
|
24
|
-
"json",
|
|
25
|
-
"jsonc",
|
|
26
|
-
"yaml",
|
|
27
|
-
"toml"
|
|
28
|
-
],
|
|
29
|
-
|
|
30
|
-
"pair-diff.patterns": [
|
|
31
|
-
{
|
|
32
|
-
"source": "./fixtures/output/**/*.*",
|
|
33
|
-
"target": "./fixtures/input/<base>"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
}
|