Skip to content

Commit

Permalink
chore: add prettier (material-components#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasecdb authored and Matt Goo committed May 30, 2019
1 parent 88697da commit 3ddf157
Show file tree
Hide file tree
Showing 175 changed files with 5,166 additions and 2,939 deletions.
45 changes: 21 additions & 24 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
{
"extends": [
"google",
"plugin:react/recommended"
"plugin:@typescript-eslint/eslint-recommended",
"plugin:react/recommended",
"prettier/@typescript-eslint",
"prettier",
"prettier/react"
],
"plugins": [
"react"
"@typescript-eslint",
"react",
"prettier"
],
"rules": {
"prettier/prettier": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"strict": 0,
"require-jsdoc": "off",
"valid-jsdoc": "off",
"switch-colon-spacing": 0,
"max-len": ["error", 120],
"indent": ["error", 2, {"SwitchCase":1}],
"max-len": "off",
"indent": "off",
"no-invalid-this": "off",
"object-curly-spacing": ["error", "never"]
"object-curly-spacing": "off",
"react/prop-types": ["error", { "skipUndeclared": true }]
},
"overrides": [
{
"parser": "typescript-eslint-parser",
"parserOptions": {
"jsx": true
},
"plugins": [
"typescript"
],
"rules": {
"typescript/no-unused-vars": "warn",
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-single"]
},
"files": ["**/*.+(tsx|ts)"]
}, {
"parser": "babel-eslint",
"files": ["**/*.jsx", "**/*.js"]
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
]
}
}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": false,
"jsxSingleQuote": true,
"arrowParens": "always"
}
Loading

0 comments on commit 3ddf157

Please sign in to comment.