Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Commit

Permalink
lint: fixup linting to match other js repos
Browse files Browse the repository at this point in the history
Signed-off-by: Carson Farmer <carson.farmer@gmail.com>
  • Loading branch information
carsonfarmer committed Nov 28, 2019
1 parent f273bd7 commit 6509e92
Show file tree
Hide file tree
Showing 13 changed files with 227 additions and 176 deletions.
47 changes: 42 additions & 5 deletions .eslintrc.json
@@ -1,11 +1,48 @@
{
"extends": [ "airbnb-base", "prettier" ],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error"
},
"env": {
"browser": true,
"es6": true,
"commonjs": true,
"node": true
},
"extends": [
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:import/typescript"
],
"plugins": [
"@typescript-eslint",
"prettier",
"import"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": 0,
"@typescript-eslint/indent": [2, 2],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-unused-vars": [0, {"argsIgnorePattern": "^_"}],
"no-undefined": 0,
"default-case": 0,
"prettier/prettier": 2,
"import/no-absolute-path": 2,
"import/no-cycle": 1,
"import/export": 2,
"import/no-named-as-default": 2,
"import/no-named-as-default-member": 2,
"import/first": 2,
"import/order": 2,
"import/newline-after-import": 2,
"import/no-default-export": 2
}
}
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -65,3 +65,6 @@ typings/

# VSCode settings
.vscode

# Documentation
docs
8 changes: 8 additions & 0 deletions .prettierignore
@@ -0,0 +1,8 @@
# 2019 May 25
# https://github.com/textileio/base

**/docs/
**/dist/
**/vendor/
**/node_modules/
**/*.d.ts
7 changes: 7 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,7 @@
{
"semi": false,
"printWidth": 120,
"trailingComma": "all",
"singleQuote": true,
"tabWidth": 2
}
231 changes: 142 additions & 89 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6509e92

Please sign in to comment.