Skip to content

Instantly share code, notes, and snippets.

@daothanh
Created July 12, 2019 05:17
Show Gist options
  • Save daothanh/584ff2115b4efdb45440560b5b2022a0 to your computer and use it in GitHub Desktop.
Save daothanh/584ff2115b4efdb45440560b5b2022a0 to your computer and use it in GitHub Desktop.
Eslint + Prettier
{
"env": {
"browser": true
},
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"parser": "babel-eslint",
"plugins": ["prettier"],
"rules": {
"class-methods-use-this": 0,
"import/no-named-as-default": 0
}
}
{
"auto_format_on_save": true,
"auto_format_on_save_excludes": [
"*/node_modules/*",
"*.scss",
"*.css"
],
"trailingComma": "es5",
"printWidth": 100,
"singleQuote": true
}
{
"name": "watch",
"version": "1.0.0",
"description": "Watch theme",
"main": "app.js",
"scripts": {
"lint": "eslint js"
},
"author": {
"name": "Webvi Viet Nam",
"email": "lienhe@webvi.vn",
"url": "http://webvi.vn"
},
"license": "PRIVATE",
"devDependencies": {
"babel-eslint": "^10.0.2",
"eslint": "^6.0.1",
"eslint-config-airbnb-base": "^13.2.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-prettier": "^3.1.0"
"prettier": "^1.18.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment