Skip to content

Commit

Permalink
bump eslint and plugin versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Apr 7, 2024
1 parent c117a94 commit 04fc07a
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 92 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

/** @type { import("eslint").Linter.FlatConfig[] } */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
{
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.es2017,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
}
];

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

/** @type { import("eslint").Linter.FlatConfig[] } */
export default [
js.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
{
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.es2017,
...globals.node
}
}
}
];
30 changes: 0 additions & 30 deletions packages/create-svelte/shared/+eslint+typescript/.eslintrc.cjs

This file was deleted.

29 changes: 29 additions & 0 deletions packages/create-svelte/shared/+eslint+typescript/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';

/** @type { import("eslint").Linter.FlatConfig[] } */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
{
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.es2017,
...globals.node
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
}
];
15 changes: 0 additions & 15 deletions packages/create-svelte/shared/+eslint-typescript/.eslintrc.cjs

This file was deleted.

19 changes: 19 additions & 0 deletions packages/create-svelte/shared/+eslint-typescript/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';

/** @type { import("eslint").Linter.FlatConfig[] } */
export default [
js.configs.recommended,
...svelte.configs['flat/recommended'],
{
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.es2017,
...globals.node
}
}
}
];
3 changes: 2 additions & 1 deletion packages/create-svelte/shared/+eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"devDependencies": {
"@types/eslint": "^8.56.7",
"eslint": "^9.0.0",
"eslint-plugin-svelte": "^2.36.0-next.13"
"eslint-plugin-svelte": "^2.36.0-next.13",
"globals": "^15.0.0"
}
}

0 comments on commit 04fc07a

Please sign in to comment.