New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@amedia/eslint-config-svelte

Package Overview
Dependencies
Maintainers
0
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amedia/eslint-config-svelte - npm Package Compare versions

Comparing version 0.0.0-20240206173406 to 0.0.0-flatconf-20241107121126

32

CHANGELOG.md
# @amedia/eslint-config-svelte
## 0.0.0-20240206173406
## 0.0.0-flatconf-20241107121126
### Major Changes
- a4e7dd9: break out eslint-config-prettier to its own package
- b75c21c: configuration overhaul
this migrates all configuration to ESM where applicable, this causes
breaking changes for configuration files.
there are no cli changes.
E.g. new eslint configuration file is:
eslint.config.js
And looks like:
```
import eslintConfig from '@amedia/eslint-config';
export default eslintConfig();
```
An object can be passed to `eslintConfig()` to enable or disable project
configuration.
- cc0bb37: break out eslint-config-prettier to its own package
### Patch Changes
- 73ba203: add recommended eslint config for eslintrc
- Updated dependencies [fe27843]
- Updated dependencies [a4e7dd9]
- Updated dependencies [73ba203]
- @amedia/eslint-config-base@0.0.0-20240206173406
- eee534f: add recommended eslint config for eslintrc

@@ -17,0 +35,0 @@ ## 8.0.2

@@ -1,31 +0,21 @@

import path from 'node:path';
import { fileURLToPath } from 'node:url';
import eslintConfigBase from '@amedia/eslint-config-base';
import { FlatCompat } from '@eslint/eslintrc';
import eslintPluginSvelte from 'eslint-plugin-svelte';
import * as espree from 'espree';
import svelteParser from 'svelte-eslint-parser';
import tseslint from 'typescript-eslint';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
recommendedConfig: eslintConfigBase,
baseDirectory: __dirname,
resolvePluginsRelativeTo: __dirname,
});
export default compat.config({
extends: ['plugin:svelte/recommended', 'plugin:svelte/prettier'],
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
export default [
...eslintPluginSvelte.configs['flat/recommended'],
{
files: ['**/*.svelte', '*.svelte'],
languageOptions: {
parser: svelteParser,
parserOptions: {
extraFileExtensions: ['.svelte'],
parser: {
ts: '@typescript-eslint/parser',
js: 'espree',
ts: tseslint.parser,
js: espree,
typescript: tseslint.parser,
},
},
},
],
});
},
];
{
"name": "@amedia/eslint-config-svelte",
"version": "0.0.0-20240206173406",
"version": "0.0.0-flatconf-20241107121126",
"description": "ESLint Svelte configuration to be used by developers at Amedia",

@@ -9,3 +9,3 @@ "type": "module",

".": {
"import": "index.js"
"import": "./index.js"
}

@@ -32,8 +32,9 @@ },

"dependencies": {
"@amedia/eslint-config-base": "0.0.0-20240206173406",
"eslint-plugin-svelte": "2.32.4",
"@eslint/eslintrc": "3.0.0"
"eslint-plugin-svelte": "2.46.0"
},
"peerDependencies": {
"eslint": "8.x"
"eslint": "9.x",
"espree": "10.x",
"typescript-eslint": "8.x",
"svelte-eslint-parser": "0.x"
},

@@ -40,0 +41,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc