[common/hc] Add editor configs
This commit is contained in:
parent
fc24e728e9
commit
1d8a922c4e
|
@ -0,0 +1,41 @@
|
||||||
|
extends: eslint-config-dmitmel/presets/node
|
||||||
|
env:
|
||||||
|
browser: true
|
||||||
|
plugins: ['prettier']
|
||||||
|
|
||||||
|
settings:
|
||||||
|
node:
|
||||||
|
tryExtensions: ['.tsx', '.ts', '.jsx', '.js', '.json', '.node']
|
||||||
|
|
||||||
|
globals:
|
||||||
|
hh: writable
|
||||||
|
magicrequire: writable
|
||||||
|
DiscordNative: writable
|
||||||
|
|
||||||
|
rules:
|
||||||
|
prettier/prettier:
|
||||||
|
- error
|
||||||
|
node/no-unsupported-features/es-syntax:
|
||||||
|
- error
|
||||||
|
- ignores:
|
||||||
|
- modules
|
||||||
|
|
||||||
|
overrides:
|
||||||
|
- files: '**/*.ts*'
|
||||||
|
extends:
|
||||||
|
- eslint-config-dmitmel/presets/typescript-addon
|
||||||
|
parserOptions:
|
||||||
|
project: 'tsconfig.json'
|
||||||
|
sourceType: module
|
||||||
|
rules:
|
||||||
|
eqeqeq: 0
|
||||||
|
require-await: 0
|
||||||
|
no-undefined: 0
|
||||||
|
|
||||||
|
# the only reason this is allowed is because there's no easy way to make it shut up about the custom imports
|
||||||
|
'node/no-missing-import': 0
|
||||||
|
|
||||||
|
'@typescript-eslint/no-dynamic-delete': 0
|
||||||
|
'@typescript-eslint/no-explicit-any': 0
|
||||||
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 0
|
||||||
|
'@typescript-eslint/naming-convention': 0
|
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = {
|
||||||
|
...require('eslint-config-dmitmel/prettier.config.js'),
|
||||||
|
};
|
|
@ -1,7 +1,24 @@
|
||||||
{
|
{
|
||||||
"name": "-",
|
"name": "-",
|
||||||
"description": "blblbl, blbl, wawawawa",
|
"description": "blblbl, blbl, wawawawa",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=19.9.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint ext --ext .js,.jsx,.ts,.tsx --ignore-path ../../../.gitignore",
|
||||||
|
"format": "prettier --write **/*"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"typescript": "^5.0.4"
|
"typescript": "^5.0.4"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
||||||
|
"@typescript-eslint/parser": "^5.58.0",
|
||||||
|
"eslint": "^8.41.0",
|
||||||
|
"eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel",
|
||||||
|
"eslint-plugin-node": "^11.1.0",
|
||||||
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
|
"prettier": "^2.8.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue