@ntnyq/eslint-config 2.0.0-beta.2 → 2.0.0-beta.20
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 +20 -0
- package/dist/index.cjs +1329 -0
- package/dist/index.d.cts +110 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +1228 -0
- package/package.json +70 -41
- 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/ts.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import tsParser from '@typescript-eslint/parser'
|
|
2
|
-
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
|
3
|
-
import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX } from './shared.js'
|
|
4
|
-
|
|
5
|
-
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
6
|
-
export const ts = [
|
|
7
|
-
{
|
|
8
|
-
files: [GLOB_TS, GLOB_TSX],
|
|
9
|
-
ignores: GLOB_EXCLUDE,
|
|
10
|
-
languageOptions: {
|
|
11
|
-
parser: tsParser,
|
|
12
|
-
parserOptions: {
|
|
13
|
-
sourceType: 'module',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
plugins: {
|
|
17
|
-
'@typescript-eslint': tsPlugin,
|
|
18
|
-
},
|
|
19
|
-
rules: {
|
|
20
|
-
...tsPlugin.configs['eslint-recommended'].overrides[0].rules,
|
|
21
|
-
...tsPlugin.configs['recommended'].rules,
|
|
22
|
-
|
|
23
|
-
'@typescript-eslint/no-unused-vars': 'error',
|
|
24
|
-
'@typescript-eslint/no-redeclare': 'error',
|
|
25
|
-
'@typescript-eslint/consistent-type-imports': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
prefer: 'type-imports',
|
|
29
|
-
fixStyle: 'separate-type-imports',
|
|
30
|
-
disallowTypeAnnotations: false,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
'@typescript-eslint/prefer-as-const': 'warn',
|
|
34
|
-
|
|
35
|
-
'@typescript-eslint/ban-types': 'off',
|
|
36
|
-
'@typescript-eslint/camelcase': 'off',
|
|
37
|
-
'@typescript-eslint/no-namespace': 'off',
|
|
38
|
-
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
39
|
-
'@typescript-eslint/ban-ts-comment': 'off',
|
|
40
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
41
|
-
'@typescript-eslint/no-empty-function': 'off',
|
|
42
|
-
'@typescript-eslint/naming-convention': 'off',
|
|
43
|
-
'@typescript-eslint/no-empty-interface': 'off',
|
|
44
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
45
|
-
'@typescript-eslint/triple-slash-reference': 'off',
|
|
46
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
|
47
|
-
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
48
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
49
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
50
|
-
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
{
|
|
55
|
-
files: ['**/*.d.ts'],
|
|
56
|
-
ignores: GLOB_EXCLUDE,
|
|
57
|
-
rules: {
|
|
58
|
-
'import/no-duplicates': 'off',
|
|
59
|
-
'import/newline-after-import': 'off',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
files: ['**/*.{spec,test}.ts?(x)'],
|
|
65
|
-
rules: {
|
|
66
|
-
'no-unused-expressions': 'off',
|
|
67
|
-
'max-lines-per-function': 'off',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
]
|
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
|
-
]
|