Skip to content

Commit f09494e

Browse files
committed
chore: update eslint config
1 parent a632e25 commit f09494e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4536
-6727
lines changed

.eslintignore

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
!.vuepress
2-
3-
.cache
4-
.temp
51
node_modules
62
dist
7-
docs/src/api/default/*.js
8-
quasar
3+
4+
docs/src/api/types/*
5+
docs/src/api/default/*

core/.eslintrc.cjs renamed to .eslintrc.cjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
55
root: true,
6-
'extends': [
6+
extends: [
77
'plugin:vue/vue3-essential',
88
'eslint:recommended',
99
'@vue/eslint-config-typescript',
10-
'@vue/eslint-config-prettier/skip-formatting'
10+
'plugin:prettier/recommended',
1111
],
1212
parserOptions: {
13-
ecmaVersion: 'latest'
14-
}
13+
ecmaVersion: 'latest',
14+
},
15+
env: {
16+
node: true,
17+
},
18+
plugins: ['prettier'],
1519
}

.eslintrc.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.vscode
1+
.env
22
node_modules
33
dist
44

core/.prettierrc.json renamed to .prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"tabWidth": 2,
55
"singleQuote": true,
66
"printWidth": 100,
7-
"trailingComma": "none"
7+
"trailingComma": "all"
88
}

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"Vue.volar",
4+
"Vue.vscode-typescript-vue-plugin",
5+
"dbaeumer.vscode-eslint",
6+
]
7+
}

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Semantic Release --dry-run",
11+
"skipFiles": [
12+
"<node_internals>/**"
13+
],
14+
"program": "${workspaceFolder}/node_modules/multi-semantic-release/bin/cli.js",
15+
"args": [
16+
"--dry-run",
17+
"--ignore-private-packages"
18+
],
19+
"envFile": "${workspaceFolder}/.env"
20+
}
21+
]
22+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.formatOnSave": false,
3+
"jest.autoRun": "off",
4+
"eslint.enable": true,
5+
"editor.codeActionsOnSave": [
6+
"source.organizeImports",
7+
"source.fixAll.eslint"
8+
]
9+
}

ant/build/rollup.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ export default {
55
input: 'src/index.js', // Path relative to package.json
66
output: {
77
name: 'ant',
8-
exports: 'named'
8+
exports: 'named',
99
},
1010
plugins: [
1111
css({
12-
output: 'ant.css'
12+
output: 'ant.css',
1313
}),
1414
vue({
1515
css: false, // Dynamically inject css as a <style> tag
16-
compileTemplate: false // Explicitly convert template to render function
16+
compileTemplate: false, // Explicitly convert template to render function
1717
}),
18-
commonjs()
19-
]
18+
commonjs(),
19+
],
2020
}

ant/dev/App.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<template>
22
<div id="app">
3-
43
<!-- <v-text-field label="" :model-value="value" @update:model-value="nextValue = $event" @blur="value=nextValue"></v-text-field> -->
54
<VueCronEditor v-model="value" />
6-
75
</div>
86
</template>
97

@@ -12,17 +10,17 @@ import VueCronEditor from '../src/CronEditor'
1210
1311
export default {
1412
components: {
15-
VueCronEditor
13+
VueCronEditor,
1614
},
1715
1816
data: () => {
1917
const value = '1-3,5,10-12 */4 * * *'
2018
2119
return {
2220
value,
23-
nextValue: value
21+
nextValue: value,
2422
}
25-
}
23+
},
2624
}
2725
</script>
2826

0 commit comments

Comments
 (0)