Skip to content

Commit

Permalink
linter test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Vacek committed Jul 15, 2020
1 parent 462c472 commit 2a364ae
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 4 deletions.
114 changes: 114 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"env": {
"es6": true,
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"quotes": [
"error"
],
"eqeqeq": [
"warn", "always"
],
"no-process-env": [
"warn"
],
"no-var": [
"warn"
],
"sort-imports": [
"off"
],
"func-style": [
"error",
"expression"
],
"prefer-arrow-callback": [
"error"
],
"@typescript-eslint/explicit-function-return-type": [
"off",
{
"allowTypedFunctionExpressions": true,
"allowExpressions": true
}
],
"@typescript-eslint/await-thenable": [
"warn"
],
"@typescript-eslint/no-use-before-define": [
"off"
],
"@typescript-eslint/explicit-module-boundary-types": [
"off"
],
"@typescript-eslint/no-angle-bracket-type-assertion": [
"off"
],
"@typescript-eslint/no-require-imports": [
"warn"
],
"@typescript-eslint/no-unnecessary-type-assertion": [
"warn"
],
"@typescript-eslint/prefer-string-starts-ends-with": [
"warn"
],
"@typescript-eslint/interface-name-prefix": [
"off"
],
"@typescript-eslint/prefer-interface": ["off"],
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "no-public"
}
],
"@typescript-eslint/no-misused-promises": [
"error"
],
"@typescript-eslint/no-floating-promises": [
"error"
],
"@typescript-eslint/consistent-type-assertions": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"prettier/prettier": [
"warn",
{
"trailingComma": "all",
"singleQuote": true,
"printWidth": 140,
"tabWidth": 2,
"arrowParens": "always"
},
{
"usePrettierrc": false
}
]
},
"overrides": [
{
"files": ["*.spec.ts", "src/**/*.ts", "types/**/*.ts"],
"excludedFiles": ["lib/*"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
}
}
]
}
193 changes: 191 additions & 2 deletions package-lock.json

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

Loading

0 comments on commit 2a364ae

Please sign in to comment.