Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Mar 8, 2024
1 parent eaf293c commit 854c151
Show file tree
Hide file tree
Showing 3 changed files with 1,856 additions and 1,379 deletions.
147 changes: 2 additions & 145 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,154 +1,11 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const tsEslintConfig = require('./tsconfig.eslint.json');

module.exports = {
root: true,
ignorePatterns: tsEslintConfig.exclude,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: '17.0.2',
},
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
typescript: {
alwaysTryTypes: true,
},
alias: {
map: [
['@', './src'],
['@services', './src/services'],
],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'unicorn/prevent-abbreviations': [
'error',
{
allowList: {
mod: true,
Mod: true,
props: true,
Props: true,
i18n: true,
i18next: true,
i18nMainBindings: true,
'i18next-electron-fs-backend': true,
},
},
],
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false,
},
],
'react/react-in-jsx-scope': 'off',
'security-node/detect-unhandled-async-errors': 'off',
'unicorn/prefer-node-protocol': 'off',
'unicorn/prefer-module': 'off',
'@typescript-eslint/no-empty-function': 'off',
'security-node/detect-insecure-randomness': 'off',
'@typescript-eslint/method-signature-style': 'off',
'unicorn/prefer-string-slice': 'off',
'unicorn/no-array-reduce': 'off',
'@typescript-eslint/member-delimiter-style': [
'warn',
{
multiline: {
delimiter: 'semi', // 'none' or 'semi' or 'comma'
requireLast: true,
},
singleline: {
delimiter: 'semi', // 'semi' or 'comma'
requireLast: false,
},
},
],
'comma-dangle': [2, 'always-multiline'],
'no-undef': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-await-expression-member': 'off',
'multiline-ternary': 'off',
'security/detect-object-injection': 'off',
'security/detect-non-literal-fs-filename': 'off',
'unicorn/filename-case': [
0,
{
case: 'camelCase',
ignore: [/tsx$/],
},
],
'unicorn/consistent-function-scoping': [0],
'no-void': [0],
'unicorn/prefer-ternary': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
semi: [0],
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': ['warn', { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' }],
'dprint-integration/dprint': [
'warn',
// Global Config (will pass to the dprint formatter directly): Available at https://dprint.dev/config/
{
useDprintJson: true,
},
// Plugin Specific Config (will pass to the dprint plugins): Available at https://dprint.dev/plugins/
{
useDprintJson: true,
},
],
// conflict with dprint-integration/dprint, will make some line disappear, and some line duplicated
'@typescript-eslint/consistent-type-imports': 'off',
'comma-dangle': 'off'
},
extends: [
'eslint:recommended',
'standard',
'plugin:security/recommended',
'plugin:react/recommended',
'plugin:unicorn/recommended',
'standard-with-typescript',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:react-hooks/recommended',
'plugin:dprint-integration/recommended',
'plugin:dprint-integration/disable-conflict',
'plugin:security-node/recommended',
'plugin:typescript-sort-keys/recommended',
],
plugins: [
'@typescript-eslint/eslint-plugin',
'dprint-integration',
'react',
'html',
'typescript-sort-keys',
'unicorn',
'import',
'react-hooks',
'security',
'security-node',
'autofix',
'unused-imports',
],
env: {
browser: true,
es6: true,
},
extends: ['eslint-config-tidgi'],
};
53 changes: 17 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,24 @@
"node --max_old_space_size=8192 ./node_modules/eslint/bin/eslint.js --fix --color --cache --quiet"
]
},
"devDependencies": {
"eslint": "8.34.0",
"eslint-config-standard": "^17.0.0",
"eslint-config-standard-with-typescript": "34.0.0",
"eslint-import-resolver-alias": "1.1.2",
"eslint-import-resolver-typescript": "3.5.3",
"eslint-plugin-autofix": "1.1.0",
"eslint-plugin-html": "7.1.0",
"eslint-plugin-import": "npm:[email protected]",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-dprint-integration": "^0.3.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-security": "1.7.1",
"eslint-plugin-security-node": "1.1.1",
"eslint-plugin-typescript-sort-keys": "2.1.0",
"eslint-plugin-unicorn": "45.0.2",
"eslint-plugin-unused-imports": "2.0.0",
"dprint": "^0.37.1",
"@modern-js/tsconfig": "^2.24.0",
"@types/node": "^20.3.1",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"postcss": "^8.4.24",
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"tw5-typed": "^0.3.5",
"typescript": "^5.1.3"
},
"dependencies": {
"npm-check-updates": "^16.10.12",
"tiddlywiki": "^5.2.7",
"tiddlywiki-plugin-dev": "^0.0.39",
"@json-editor/json-editor": "2.9.0-beta.1",
"esbuild-sass-plugin": "^2.5.0",
"npm-check-updates": "^16.14.15",
"tiddlywiki": "^5.3.3",
"tiddlywiki-plugin-dev": "^0.0.41",
"@json-editor/json-editor": "2.14.1",
"esbuild-sass-plugin": "^3.1.0",
"spectre.css": "^0.5.9"
},
"devDependencies": {
"eslint-config-tidgi": "1.2.2",
"dprint": "^0.45.0",
"@modern-js/tsconfig": "^2.48.0",
"@types/node": "^20.11.25",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"postcss": "^8.4.35",
"rimraf": "^5.0.5",
"tw5-typed": "^0.5.1",
"typescript": "^5.4.2"
}
}
Loading

0 comments on commit 854c151

Please sign in to comment.