1.0.0 • Published 4 years ago
@modyqyw/eslint-config-ts v1.0.0
@modyqyw/eslint-config-ts
An ESLint shareable config.
Usage
- Install the config.
npm i eslint@~6.8.0 typescript@~3.8.0 @modyqyw/eslint-config-ts@~1.0.0 -D
For yarn, run scripts below.
yarn add eslint@~6.8.0 typescript@~3.8.0 @modyqyw/eslint-config-ts@~1.0.0 -D
- Set up.
// .eslintrc.js
module.exports = {
extends: ['@modyqyw/ts']
}
- For VSCode
{
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"typescript": "typescriptreact",
"json": "jsonc"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"vue-html"
],
"files.eol": "\n",
"files.associations": {
"*.js": "javascriptreact",
"*.ts": "typescriptreact",
"*.wxml": "html",
"*.wxs": "javascript",
"*.wxss": "css",
"*.axml": "html",
"*.sjs": "javascript",
"*.acss": "css",
"*.wpy": "html",
"*.json": "jsonc",
"*.nvue": "vue"
},
"vetur.format.defaultFormatterOptions": {
"prettyhtml": {
"wrapAttributes": true
}
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
}
}
- For WebStorm
- TODO
More Config
- @modyqyw/eslint-config-vue
- @modyqyw/eslint-config-vue-ts
- @modyqyw/eslint-config-react
- @modyqyw/eslint-config-react-ts
- @modyqyw/eslint-config
License
Copyright (c) 2020-present Millcloud
1.0.0
4 years ago