Skip to content

Commit

Permalink
enable pretter for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
yumetodo committed Jan 10, 2020
1 parent fdb162e commit fe7fbf4
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 209 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v2/
70 changes: 49 additions & 21 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,50 @@
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": [
// 'prettier',
// 'plugin:prettier/recommended',
"standard"
],
"plugins": [
// 'prettier'
],
"rules": {
// 'prettier/prettier': 'error',
"indent": ["error", "tab"],
"semi": ["error", "always"],
"no-tabs": "off"
}
}

"root": true,
"env": {
"browser": true,
"es6": true
},
"globals": {
"moment": false
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
// 'prettier'
],
"rules": {
// 'prettier/prettier': 'error',
"indent": [
"error",
"tab"
],
"semi": [
"error",
"always"
],
"no-tabs": "off",
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"camelcase": "off",
"prettier/prettier": [
"error",
{
"singleQuote": false,
"trailingComma": "es5",
"printWidth": 120,
"useTabs": true
}
]
}
}
Loading

0 comments on commit fe7fbf4

Please sign in to comment.