Skip to content

Commit

Permalink
📝 add eslint-config-triple
Browse files Browse the repository at this point in the history
  • Loading branch information
yceffort committed Sep 24, 2019
1 parent cba50ec commit d122d04
Show file tree
Hide file tree
Showing 5 changed files with 335 additions and 141 deletions.
38 changes: 1 addition & 37 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,39 +1,3 @@
{
"env": {
"node": true,
"browser": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "react"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"document": false
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"prettier/prettier": "error",
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"react/prop-types": ["off"],
"react/no-unused-state": ["error"],
"react/display-name": ["off"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": true }],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }]
},
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect",
}
}
"extends": "@titicaca/eslint-config-triple"
}
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@titicaca/eslint-config-triple/prettierrc"
Loading

0 comments on commit d122d04

Please sign in to comment.