@ntnyq/eslint-config 2.0.0-beta.1 → 2.0.0-beta.10
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/README.md +23 -1
- package/dist/index.d.ts +80 -0
- package/dist/index.js +1022 -0
- package/package.json +53 -37
- package/index.js +0 -9
- package/lib/astro.js +0 -24
- package/lib/eslint-comments.js +0 -14
- package/lib/js.js +0 -156
- package/lib/jsonc.js +0 -115
- package/lib/markdown.js +0 -44
- package/lib/presets.js +0 -24
- package/lib/prettier.js +0 -19
- package/lib/shared.js +0 -61
- package/lib/ts.js +0 -70
- package/lib/vue.js +0 -23
- package/lib/yml.js +0 -22
package/lib/vue.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import vuePlugin from 'eslint-plugin-vue'
|
|
2
|
-
import vueParser from 'vue-eslint-parser'
|
|
3
|
-
import { GLOB_EXCLUDE, GLOB_VUE } from './shared.js'
|
|
4
|
-
|
|
5
|
-
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
6
|
-
export const vue = [
|
|
7
|
-
{
|
|
8
|
-
files: [GLOB_VUE],
|
|
9
|
-
ignores: GLOB_EXCLUDE,
|
|
10
|
-
plugins: {
|
|
11
|
-
vue: vuePlugin,
|
|
12
|
-
},
|
|
13
|
-
languageOptions: {
|
|
14
|
-
parser: vueParser,
|
|
15
|
-
parserOptions: {
|
|
16
|
-
parser: '@typescript-eslint/parser',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
rules: {
|
|
20
|
-
...vuePlugin.configs['vue3-recommended'],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
]
|
package/lib/yml.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import ymlPlugin, { configs } from 'eslint-plugin-yml'
|
|
2
|
-
import ymlParser from 'yaml-eslint-parser'
|
|
3
|
-
import { GLOB_EXCLUDE, GLOB_YAML } from './shared.js'
|
|
4
|
-
|
|
5
|
-
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
6
|
-
export const yml = [
|
|
7
|
-
{
|
|
8
|
-
files: [GLOB_YAML],
|
|
9
|
-
ignores: GLOB_EXCLUDE,
|
|
10
|
-
languageOptions: {
|
|
11
|
-
parser: ymlParser,
|
|
12
|
-
},
|
|
13
|
-
plugins: {
|
|
14
|
-
yml: ymlPlugin,
|
|
15
|
-
},
|
|
16
|
-
rules: {
|
|
17
|
-
...configs.standard.rules,
|
|
18
|
-
...configs.prettier.rules,
|
|
19
|
-
'yml/no-empty-mapping-value': 'off',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
]
|