Created
July 12, 2019 05:17
-
-
Save daothanh/584ff2115b4efdb45440560b5b2022a0 to your computer and use it in GitHub Desktop.
Eslint + Prettier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_format_on_save": true, | |
"auto_format_on_save_excludes": [ | |
"*/node_modules/*", | |
"*.scss", | |
"*.css" | |
], | |
"trailingComma": "es5", | |
"printWidth": 100, | |
"singleQuote": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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