eslint-config-azuriru 3.3.4 → 3.3.6
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/index.js +8 -4
- package/package.json +1 -1
- package/svelte.js +4 -6
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import globals from 'globals';
|
|
|
2
2
|
import antfu from 'eslint-plugin-antfu';
|
|
3
3
|
import imports from 'eslint-plugin-import';
|
|
4
4
|
import stylistic from '@stylistic/eslint-plugin';
|
|
5
|
-
import { plugin as tslint, parser } from 'typescript-eslint';
|
|
5
|
+
import ts, { plugin as tslint, parser } from 'typescript-eslint';
|
|
6
6
|
import { defineConfig } from 'eslint/config';
|
|
7
7
|
|
|
8
8
|
export { default as svelte } from './svelte.js';
|
|
@@ -10,8 +10,12 @@ export { default as svelte } from './svelte.js';
|
|
|
10
10
|
export default defineConfig(
|
|
11
11
|
// Shared JS/TS config
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
'extends': [
|
|
14
|
+
ts.configs.base,
|
|
15
|
+
{
|
|
16
|
+
files: ['**/*.ts', '**/*.js']
|
|
17
|
+
}
|
|
18
|
+
],
|
|
15
19
|
languageOptions: {
|
|
16
20
|
parser,
|
|
17
21
|
globals: {
|
|
@@ -20,7 +24,7 @@ export default defineConfig(
|
|
|
20
24
|
}
|
|
21
25
|
},
|
|
22
26
|
plugins: {
|
|
23
|
-
antfu: antfu,
|
|
27
|
+
'antfu': antfu,
|
|
24
28
|
'import': imports,
|
|
25
29
|
'@stylistic': stylistic,
|
|
26
30
|
'@typescript-eslint': tslint
|
package/package.json
CHANGED
package/svelte.js
CHANGED
|
@@ -6,16 +6,14 @@ import tslint from 'typescript-eslint';
|
|
|
6
6
|
export default (svelteConfig) => {
|
|
7
7
|
return defineConfig(
|
|
8
8
|
{
|
|
9
|
-
plugins: {
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
// files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
|
|
13
|
-
ignores: [], // ['svelte.config.js'],
|
|
9
|
+
plugins: { svelte },
|
|
10
|
+
files: ['**/*.svelte', '**/*.svelte.js', '**/*.svelte.ts'],
|
|
14
11
|
languageOptions: {
|
|
12
|
+
parser,
|
|
15
13
|
parserOptions: {
|
|
16
14
|
projectService: true,
|
|
17
15
|
extraFileExtensions: ['.svelte'],
|
|
18
|
-
parser:
|
|
16
|
+
parser: tslint.parser,
|
|
19
17
|
svelteConfig
|
|
20
18
|
}
|
|
21
19
|
},
|