- Research and test out ts/es and scss linting
- Document how to set up linting and JetBrains configurations
- Learn and apply typescript and scss
- Practice vue class component with typescript
- Practice CSS transitions and CSS em/rem units
- Practice responsive typography with viewport units
- Practice using Web Storage API
- Research and apply standard conventions (BEM, typescript, vue, scss)
- Create a personal website
IDE: JetBrains WebStorm Version: 2019.1
npm install
npm run serve
npm run build
npm run test
npm run lint
Following setups TS, ES, and SCSS linting
$ vue add @vue/cli-plugin-eslint
- Run the command above
- Select
Airbnb
when askedPick an ESLint config
- Select
Lint on save
when askedPick additional lint features
$ npm i -D stylelint stylelint-config-standard stylelint-config-recess-order stylelint-scss
$ touch .stylelintrc.json
{
"plugins": [
"stylelint-scss"
],
"extends": [
"stylelint-config-standard",
"stylelint-config-recess-order"
],
"rules": {
"no-empty-source": null
}
}
- styelint-scss: additional linting for scss specifically
- stylelint-config-standard: extends general css linting
- stylelint-config-recess-order: upon
--fix
auto reorders CSS property following RECESS rule no-empty-source
: to ignore empty<style></style>
in .vue files
$ stylelint "src/**/*.vue"
$ stylelint --fix "src/**/*.vue"
stylelint
module is installed and.stylelintrc.json
exists (follow prior instructions)- Install
IntelliJ Stylelint Plugin
:- Preferences > Plugins
- Go to
Marketplace
tab - On search bar, type
stylelint
and press enter - Install
IntelliJ Stylelint Plugin
- Enable stylelinting:
- Preferences > Languages & Frameworks > Style Sheets > Stylelint
- Click on
enable
box - Click OK
eslint
module is installed and.eslintrc.js
exists (follow prior instructions)- Go to: Preferences > Languages & Frameworks > JavaScript > Code Quality Tools > Eslint
- Click on
Manual ESLint Configuration
- Click OK
- Preferences > Editor > Code Style > HTML
- Go to
Other
tabs - Under
Do not indent children of
: addstyle
andscript