Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Commit

Permalink
refactor: lint javascript, scss (#11)
Browse files Browse the repository at this point in the history
* Setup ESLint, stylelint

* refactor: fix style

* style: add arrow-parens
  • Loading branch information
junhoyeo authored Mar 25, 2019
1 parent 8e0d8ac commit 6a2f84a
Show file tree
Hide file tree
Showing 13 changed files with 5,514 additions and 1,406 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"parser": "babel-eslint"
},
"extends": [
"airbnb-base",
"plugin:vue/recommended"
],
"rules": {}
}
9 changes: 9 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["stylelint-config-airbnb", "stylelint-config-sass-guidelines", "stylelint-config-idiomatic-order"],
"rules": {
"selector-max-id": 1,
"max-nesting-depth": 3,
"selector-class-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
"order/properties-alphabetical-order": null
}
}
Loading

0 comments on commit 6a2f84a

Please sign in to comment.