Skip to content

Commit

Permalink
INT-3313: Fixed linting and updated eslint related dependencies (#56)
Browse files Browse the repository at this point in the history
* INT-3313: Updated eslint related packages

* INT-3313: Refactored .eslintrc
  • Loading branch information
danoaky-tiny authored Jun 14, 2024
1 parent 016ef7b commit 2c875c1
Show file tree
Hide file tree
Showing 3 changed files with 742 additions and 707 deletions.
40 changes: 24 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
module.exports = {

env: {
browser: true,
node: true
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte'],
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking'],
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.svelte']
},
rules: {
"eqeqeq": "error"
}
eqeqeq: 'error',
},
},
{
files: ['*.ts'],
extends: 'plugin:@tinymce/standard',
parserOptions: {
project: "tsconfig.json",
sourceType: "module"
project: './tsconfig.json',
},
rules: {
"@tinymce/prefer-fun": "off",
"@typescript-eslint/no-duplicate-imports": "off",
"@typescript-eslint/no-parameter-properties": "off"
}
}
]
}
'@tinymce/prefer-fun': 'off',
'@typescript-eslint/no-duplicate-imports': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
},
},
],
};
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@
"@storybook/svelte-vite": "^8.1.3",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tinymce/beehive-flow": "^0.19.0",
"@tinymce/eslint-plugin": "^1.9.2",
"@tinymce/eslint-plugin": "^2.3.1",
"@tsconfig/svelte": "^5.0.4",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"babel-loader": "^8.2.2",
"eslint": "^7.32.0",
"eslint-plugin-svelte": "^2.34.0",
"eslint": "^8",
"eslint-plugin-svelte": "^2.39.3",
"gh-pages": "^6.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^18",
"react-dom": "^18",
"rollup": "^2.56.2",
"rollup-plugin-css-only": "^3.1.0",
"rollup-plugin-livereload": "^2.0.0",
Expand Down
Loading

0 comments on commit 2c875c1

Please sign in to comment.