Skip to content

Commit 634631b

Browse files
authored
Merge pull request #826 from Kitware/deps
Upgrade most deps
2 parents 0ac6a0c + f41e8a1 commit 634631b

File tree

82 files changed

+14616
-34123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+14616
-34123
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 132 deletions
This file was deleted.

eslint.config.js

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
import js from '@eslint/js';
2+
import eslintPluginVue from 'eslint-plugin-vue';
3+
import tseslint from 'typescript-eslint';
4+
import eslintConfigPrettier from 'eslint-config-prettier';
5+
import globals from 'globals';
6+
7+
export default tseslint.config(
8+
{
9+
ignores: [
10+
'src/io/itk-dicom/emscripten-build/**',
11+
'src/io/resample/emscripten-build/**',
12+
'**/*.d.ts',
13+
'dist/**',
14+
'node_modules/**',
15+
],
16+
},
17+
js.configs.recommended,
18+
...tseslint.configs.recommended,
19+
...eslintPluginVue.configs['flat/essential'],
20+
{
21+
files: ['**/*.{js,ts,vue}'],
22+
languageOptions: {
23+
ecmaVersion: 'latest',
24+
sourceType: 'module',
25+
globals: {
26+
...globals.browser,
27+
...globals.node,
28+
globalThis: 'readonly',
29+
},
30+
parserOptions: {
31+
parser: tseslint.parser,
32+
},
33+
},
34+
rules: {
35+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
36+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
37+
'no-plusplus': 'off',
38+
'no-underscore-dangle': 'off',
39+
'lines-between-class-members': [
40+
'error',
41+
'always',
42+
{ exceptAfterSingleLine: true },
43+
],
44+
'no-shadow': 'off',
45+
'@typescript-eslint/no-shadow': 'error',
46+
'no-unused-vars': 'off',
47+
'@typescript-eslint/no-unused-vars': 'error',
48+
'no-unused-expressions': 'off',
49+
'@typescript-eslint/no-unused-expressions': 'error',
50+
'vue/multi-word-component-names': ['error', { ignores: ['Settings'] }],
51+
'prefer-destructuring': 'off',
52+
'@typescript-eslint/no-explicit-any': 'off',
53+
'@typescript-eslint/ban-ts-comment': 'off',
54+
'@typescript-eslint/no-empty-object-type': 'off',
55+
'@typescript-eslint/no-wrapper-object-types': 'off',
56+
'@typescript-eslint/no-unsafe-function-type': 'off',
57+
},
58+
},
59+
{
60+
files: ['**/tests/pageobjects/**/*.ts'],
61+
rules: {
62+
'class-methods-use-this': 'off',
63+
},
64+
},
65+
{
66+
files: ['**/__tests__/*.{js,ts}', '**/tests/unit/**/*.spec.{js,ts}'],
67+
languageOptions: {
68+
globals: globals.mocha,
69+
},
70+
rules: {
71+
'no-unused-expressions': 'off',
72+
'@typescript-eslint/no-unused-expressions': 'off',
73+
},
74+
},
75+
{
76+
files: ['src/vtk/**/*.{js,ts}'],
77+
rules: {
78+
'no-param-reassign': [
79+
'error',
80+
{
81+
props: true,
82+
ignorePropertyModificationsFor: [
83+
'publicAPI',
84+
'model',
85+
'state',
86+
'outData',
87+
],
88+
},
89+
],
90+
},
91+
},
92+
eslintConfigPrettier
93+
);

0 commit comments

Comments
 (0)